-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Server Crashing - CNC.js #3
Comments
Bummer. I've been spoiled since it's been so reliable. It's running from systemd. To see the logs you can use journalctl
Add a '-b' to only show one processes logs. I was just trying this and I didn't see any output, but mine has been working fine. But to get more you can edit /etc/default/cncjs and add -vvv to the DAEMON_ARGS variable. |
I tried adding -vvv to the Daemon_args and when I try journalctl -u CNCJs.SERVICE I get --no enteries-- Any other advice would be appreciated! |
I can see after CNCjs starts that the ram slowly Kris fishing and after a couple minutes goes back down to approximately 10%. At that point CNCJs server seems to crash |
|
Do you have any ideas why it might be working harder or be different on your pi? |
No that's the thing, my original image I had done some tinkering ( I believe you helped me on v1engineering site) So since I kept having issues with the UI I decided to start fresh and I seem to be having the same 5 minute time and then it crashes. This is the error I see in see: <--- Last few GCs ---> 277284 ms: Mark-sweep 567.6 (716.3) -> 567.5 (716.3) MB, 8218.0 / 0 ms [allocation failure] [GC in old space requested]. <--- JS stacktrace ---> ==== JS stack trace =========================================
Security context: 0x74a79031 FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory |
@jeffeb3 could you try unplugging your CNC from the pi and clicking connect? I am playing with my pi in the house not connected to the CNC because it's easier for me and that seems to be the cause of the memory leak that crashes CNCJs server |
Hey @jeffeb3 just following up I've tried another fresh image of v1pi and tried to get through a 1.5 hour cut. After about 45minutes CNCJs server seemed to stop working. I'll keep you updated. Thanks for all your help! |
I have it on a few pi versions, including a zero. There were two CNC.js bugs related to Marlin in 0.9.20. I would suggest either trying the pre-release I just posted, or manually updating cnc.js. |
i have the same issue 5 minutes and it runs out of memory and shuts down on a pi 3b+ im on the newest beta version too Im gonna try to put it back on my 3 because that seemed to work better ill let you know |
Are you running the X server on the pi too, or just the CNC.js server? |
just the way you send it right now no x server |
Was this ever resolved? I'm getting this same issue with the most recent release of the image |
Do you have the cnc connected? The issue above was related to trying to connect, and not having a controller to connect to, so it was probably connecting via the builtin serial. |
I am using your image with no additional configuration and after about 5 minutes the server seems to crash and require a restart. Ive tried creating the image multiple times, verified the sd card is good, and its a new Pi3B+
Is there somewhere the logs are kept?
The text was updated successfully, but these errors were encountered: