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
DCS 2.0.0 Occasional hangs during printing #119
Comments
https://forum.duet3d.com/topic/15674/rrf-3-01-rc8-dwc-2-1-3-dsf-2-0-0-mid-print-hanging More hangs running DCS in foreground without debug. |
In fact I never mentioned or instructed people to change their systemd service to run DCS with the log level The hang may be related to a deadlock that I've fixed in the upcoming DSF 2.1.0 but we'll need to confirm that once it has been released (with a bit of luck later today). |
I'll be testing shortly. |
Not fixed with DSF commit d46965d Still hanging for many seconds. No messages in DCS log. EDIT: This is without Chrome and my video feed running. 95% Idle. |
Hmm, do you still see "System time has been changed" in the logs when it hangs? If yes, please have a look at your config.json and enable the deadlock detection (set MaxMachineLockTime from -1 to 2000). I wonder if that will reveal anything useful. |
No this time I saw no messages at all while printing except for normal ones...
|
Hmm, did you start seeing this problem after commit d1c7875? If yes, I suspect that the I/O read call blocks from time to time. Can you - just for testing - move your G-code file to /tmp, create a symink in /opt/dsf/sd/gcodes to it and check if the hangs still persist? |
It could have been around that time. I run from a USB3/nvme SSD but I'll try from /tmp. |
Got a pause even while printing from tmp. Strangely, it happened at exactly the top of the hour and I got the 'System time" message....
|
I just managed to reproduce this once. Did that same message occur without an exception after setting |
I didn't set it the last time. I'll set it now and try again. |
Hit the wrong button. :) Testing with MaxMachineLockTime = 2000. |
I'm about to push another commit, I hope I have figured out why the hangs occurred. Still finishing a few tests though.. |
OK. FYI... Just hung with MaxMachineLockTime = 2000. No messages or backtraces. Not even the "System time" message. |
OK, I've just pushed another commit. I haven't been able to reproduce the hang with this one so please let me know if you notice anything. |
testing in progress... |
My test print went through without any pauses so I think it's good to go! |
Great, thanks once again for testing! |
Original report but see below...
You might want to put in the documentation somewhere that running DCS with debug logging from systemd is NOT a good idea for real prints. I was just printing a long running job and noticed that the print was pausing every few minutes for up to 30 seconds with the nozzle still in contact with the part. I realized that at the same time, I was seeing this message in the journalctl -f...
I think it was flushing the journal buffer to disk and blocking stdout while it was doing it. That in turn blocked any threads that generated output.
Not much you can do about it other than documentation I think.
The text was updated successfully, but these errors were encountered: