New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: recursion error (max call stack size exceeded) #6
Conversation
@hrueger Thank you for your feedback.
You mean you are using The I don't recommend adding an Could you provide a minimum reproduce code repo? |
Correct.
I'll see what I can do, but unfortunately not today. My application is quite complex. |
Oh, thanks for the fix 👍 |
electron/electron#33216 seems to be related to this problem. Now I found Perhaps electron/electron#33216 make Before: After: |
In my understand, the electron environment itself provides all the functionality of |
I need to require modules in there and I remember that this did not work without |
I can happily report that your fix also works. Now I'll try without |
I guess your code can work without |
That makes sense, thanks for your help 👍 |
Hi @toyobayashi,
I just updated my application from electron 17 to electron 20 and I suddenly started to get a
Maximum call stack size exceeded
error.I don't have the exact stack trace anymore, but
splitPath
callsstatSync
and this callessplitPath
again... This will go on forever until the maximum call stack size is exceeded.I don't know what introduced this problem since I did not update
asar-node
, just other packages.This PR, however, seems to fix it, although I don't know if that has sideeffects.