Random call stack size exceeded in binaries complied with node v12.2.0 #681
Comments
Same error occurs on Linux / Ubuntu. Indeed it seems to be VERY random. Here are some of my stack traces:
Besides: You do a great job with |
Because "randomness" of bugs is a pain in the *** for a programmer (and nothing to work with easily) I compiled our product code together with a set of round about 300 unit tests. I ran them multiple times hoping to provide a better error description: BUT every time the error occurs at different tests and code segments. So I cannot provide a better description. |
Same here. Ubuntu. Not using the file system. It happens at random moments and I'm on 12.2. If I run the program with Node 12.2 without pkg, it works every time. It's only when the app is packaged with pkg using 12.2. |
Same here, getting this error in heavy load loops ONLY when program packed with PKG: |
Well, tried to create custom build with latest master version of Node 12.x branch and got the same STACK SIZE error... So maybe its patch related. Waiting for fix or workaround, because on this moment it is almost impossible to work with Node 12 in PKG. |
I can confirm this happens on Debian 9.8 too. Downgrade to nodeJS 10 removes the issues. |
Same here on Amazon Linux AMI. My script is running through the lines of a file and generates for each line several async Mongo calls. I didn't use callbacks but the async & await syntax. |
CentOS Linux release 7.6.1810, node v12, same problem. node v10 - ok |
@igorklopov Any thoughts on this issue? |
Can confirm the same issue on 5.1.11-arch1-1-ARCH #1 SMP PREEMPT x86_64 GNU/Linux. Works fine with node10. |
node v12.6.0 macOS 10.14 |
@peakji |
@itayayuichiro I'm using the latest pkg v4.4.0 which depends on pkg-fetch v2.6.2. |
Many thanks. |
Facing similar random crashes with this error:
OS: Ubuntu 19.04 x86_64 pkg version: pkg@4.4.0 code that was running:
binary created with:
Happens between 1-3hrs after running. |
I'm running into a
too, with packaged binaries. On windows 7 Edit: I cannot reproduce the issue using Node 10.16.0. I have switched back to 10.X for now. |
I can also confirm the
Using node v12.7.0 Rolling back to node v10 made the error go away. |
Having the same issue as well, with a very simple script. Works in command line, doesn't work compiled with pkg.
The output shows
|
Same error for me. |
@theebasso The only currently known workaround is to downgrade to nodejs 10. |
Same error for me. |
We have encountered the same exception using 12.2 x86 build on Windows. It happens after some time (several hours later most of the time), but always in the same place in Cosmos DB library. The stack trace is (for RangeError - Maximum call stack size exceeded): | 0 | {"assembly":"at new ParallelQueryExecutionContextBase (node_modules\@Azure\cosmos\dist\index.js:2866:24)","method":"new ParallelQueryExecutionContextBase (node_modules\","level":0,"line":2866,"fileName":"azure\cosmos\dist\index.js"} What is interesting, when it happens once, the exception is now on always triggered in the same place in every case until the node process is restarted. We now also downgraded to node 10 to confirm it is node 12 related. |
The same error for me but with a little difference : Node version : 12.6.0 |
We're getting the same thing on our code compiled with pkg - and it isn't clear why or how, but downgrade to node10 seems to be the magic key. :) |
Downgrade to node 10 is not such a magic key when dependent on features in node 11+. |
I added the --public flag the pkg options, it seems to make the "RangeError: Maximum call stack size exceeded" error less frequent, but it does still happen. |
@igorklopov are there any plans to address this? |
The root cause is found. Shipping soon |
Great. Nexe is a cool alternative but there's a fatal bug right now on Windows machines 💀 Can't wait for the update to switch back to pkg |
Since a lot of people have moved to |
Causes the application to only be runnable in specific instances. I should say 'not usable for production' rather than 'fatal' because it does not cause the application to crash, but rather not to start at all. For me, my project relies on being able to actually run when it needs to. It appears that the nexe repo is relatively inactive recently and I fear that it will take a while for those merges to happen. |
@igorklopov Thanx, compiled and tested on MacOS Catalina, so far so good without random call stack exceeded! Finally we can move on. |
please update npm package. |
* copy * update versions * add to patches.json * fix for vercel/pkg#681
Fixed in 4.4.1. Please try |
@igorklopov |
I have tested this for a bit now, and so far it works like a charm. Will update if it ever comes up again. Hoorayy @igorklopov ! |
Running all our product test cases again: works like charm (node version 12.13) Thanks @igorklopov !! |
Updated to 4.4.1, haven't seen this error again after testing. Thank you for resolving this, and for the rest of pkg! |
I can confirm the error persists on pkg 4.4.1 with node12.2.0-linux-armv7 |
@geomad As per https://github.com/zeit/pkg-fetch/pull/76/files?file-filters%5B%5D=.json, it looks like the fix was applied to the following:
|
pkg v4.4.1 with node v12.3.1 has been working fine for me.. Thanks @igorklopov !! |
also confirmed fixed in pkg 4.4.2 with node 12.4.0 |
…ix the following bug: vercel/pkg#681
…ix the following bug: vercel/pkg#681
…ix the following bug: vercel/pkg#681
I guess it is safe to close the issue now 🚀 |
I can confirm the error persists on pkg 4.4.8 with node12.2.0-linux-armv7 |
@denoww you can see from these comments that the fix was not applied to 12.2.0. It's on 12.13.1 and above. |
@ataft Unfortunately, I myself was bitten by this issue just now. |
I'm having the same issue. The latest release available for ARMv7 is 12.2.0 and it's very old and affected by this issue. thank u. |
Thanks for updating pkg to support node v12!
It seems that there is a weird bug causing random Maximum call stack size exceeded errors ONLY in binaries complied by pkg targeting node v12.2.0:
pkg
node
Maximum call stack size exceeded
(Tested on Linux / CentOS 7)
Unfortunately, the original code is part of a proprietary software so I could not post it here. But since it does not deal with files, I'm pretty sure the issue is not related to the snapshot file system.
Here are some stack trace samples, seems fully random, the only thing in common is the
RangeError: Maximum call stack size exceeded
:The text was updated successfully, but these errors were encountered: