-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Uploading while printing #357
Comments
Is this on a raspberry pi? Because it might just be a bit too much to |
It's on an Olimex Olinuxino A20, but might be because of the IO processing, i will try to investigate it when I have some time left. |
Hello, I guess I found the problem, it's because of the gcode interpreter, the analysis is running as a thread, this thread seems to slow down other operations. As I know python has no option to priorise a thread. Any Ideas how to solve the problem? Is it an option to make the analysis an own program and just parsing the metadata in octoprint? I hope my english is readable, I haven't used it for nearly 5 years now... |
I investigated the problem further and found the problem: While printing the analysis of gcode files should have been paused. In gcodefiles.py there is a "def work(self)" function in there is the problem:
needs to be changed into:
Explaination: |
Thanks for spotting this. I was wondering why gcode analysis might be to blame here, since it's -- as you pointed out -- actually supposed to be paused while printing. Didn't yet come around to take a closer look though (busy on another branch), so thanks for doing that for me :) |
Evaluate active flag on gcode analyzer AFTER fetching an item from the work queue, otherwise it will always start working once it finds something if the active flag was true once but then switched to false while the queue was still empty. Thanks to @Salandora for spotting this. Fixes #357
Evaluate active flag on gcode analyzer AFTER fetching an item from the work queue, otherwise it will always start working once it finds something if the active flag was true once but then switched to false while the queue was still empty. Thanks to @Salandora for spotting this. Fixes #357 (manually cherry-picked from 592f3dc)
Hello,
I'm using the devel branch, and encountered the following problem.
When uploading a gcode file while octoprint is printing, it stops streaming the commands to the printer so that the printer stops moving. After a couple of seconds everything runs as usual.
The text was updated successfully, but these errors were encountered: