-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[4.8.0]Intermittent freeze when trying to save gcode file #8984
Comments
Does saving large files to t he disk from other programs work? |
Yes. I can save large files with other programs. A file of several or tens
of Mbytes is not that large for a 3 TB disk. The disk is "smart" in the
sense that when has not been accessed for some minutes, it spins down, so
there can be a delay while it spins up again. It's an intermittent problem
in 4.8.0, and often, but not always, closing Cura and restarting it lets me
save the gcode file. I have not done a careful study of whether it only
happens when I save gcode files.
|
That file dialogue is created by your operating system, through Qt, and we have relatively little control over it from our application. I can imagine that a disk spindown can cause it to freeze for a few (<5) seconds as the disk spins up again. That used to happen to me too until I made it spin down less aggressively. But then it would happen for all applications that use the disk. For me it happened also with the Ubuntu file explorer, Firefox accessing its cache, everything. And it shouldn't be too long. Maybe we can see if other people have the same problem and discover what the common denominator is between the users where it freezes for longer than a few seconds. |
I notice that other applications will freeze for the few seconds it takes to
spin up the drive, but it's only for a few seconds as you mention. When
Cura freezes, I give up after about a minute, so I really don't know if it
will recover at some point. Next time it happens, I will set a timer, and
post what I find.
I have Python 3.9 and wxPython 4.1.1 installed on my computer, although I
was not using either when Cura froze.. Maybe that's a clue?
|
cura.zip |
Cura doesn't use Python installations on your system. It comes built-in with its own Python installation. And it doesn't use wxWidgets at all (we use Qt). |
The log file doesn't seem to contain any information relevant to this issue as far as I could find. That sort of makes sense. Cura instructs Windows to open that file dialogue, and then the Windows File Dialogue freezes the application for some reason. While Cura is frozen it also can't write anything to the log. Nobody else has seen the issue so far as far as we know and it doesn't occur in our own testing either. This makes it hard to fix; we can't get debug information from Qt, and we can't test if things we change fix the issue. |
If I'm the only one who's reported this, then it's probably reasonable to
assume that it's my laptop and possibly nothing related to Cura. I guess
I'll just need to keep track of this to see if I can correlate it to
anything else the computer is doing. So far, all other running programs
continue to run, and the USB disk remains accessible.
I mentioned Python and wxPython in the hope that that was a distinguishing
feature of my system. If that's not it, then that's not it.
You can close the issue or not, as you see fit.
|
I'm having the same issue in Cura 5.3.1 |
Returning to say that I'm having the same issue in Prusa Slicer 2.6.0 too. |
@davidgilson Most likely it's an issue with the computer/operating system. My laptop (Lenovo Yoga 14, ~5 yrs old) does this sometimes when downloading or copying files, and other times when doing things unrelated to Cura, like using Acrobat Reader, or Microsoft Office products. |
Is this still an issue in current Cura versions (5.8.0 and up)? Can this be closed? |
Yes, this can be closed w.r.t. 4.8 a) because I’ve moved past that version a while ago, and b) I’m having no problems with a newly installed 5.9.0.
From: GregValiant ***@***.***>
Sent: Tuesday, November 19, 2024 9:38 PM
To: Ultimaker/Cura ***@***.***>
Cc: bellzw ***@***.***>; Author ***@***.***>
Subject: Re: [Ultimaker/Cura] [4.8.0]Intermittent freeze when trying to save gcode file (#8984)
Is this still an issue in current Cura versions (5.8.0 and up)? Can this be closed?
—
Reply to this email directly, view it on GitHub <#8984 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AMFTMUMAS4HGJ5GEY2VYJ6L2BPYZRAVCNFSM6AAAAABSDQMG2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBXGIZDAMZXGE> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AMFTMUJ5ZRAZAZY7GWGXJJ32BPYZRA5CNFSM6AAAAABSDQMG2SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUUH74JG.gif> Message ID: ***@***.*** ***@***.***> >
|
Thanks. |
Application version
4.8.0
Platform
Windows 10 64-bit running on Lenovo Yoga 14
Printer
BIBO2 Dual
Reproduction steps
Screenshot(s)

Actual results
Cura stops responding and I must close it, restart it and hope I can save the gcode. Cura seems to remember the profile and settings from just before the freeze, including settings I've changed with respect to the profile.
Expected results
File dialog box lets me select a file name and save the gcode file.
Project file
Unfortunately, I didn't get far enough to save a 3mf before the freeze. This 3mf was saved after restarting Cura and saving it before trying to save the gcode. Save to file was successful. Maybe after the 3mf was saved, future gcode saves work?
I've included the stl, project file, and gcode that were eventually saved by Cura in the zip.
Base test.zip
Log file
cura.log
Additional information
This is an intermittent problem and usually a restart of Cura resolves the it, but sometimes it requires a few restarts. In this case, Cura is trying to access a 3 TB USB disk. When Cura hangs up, I am still able to access this disk via Windows, so I don't think it is caused by the destination being a USB disk.
The text was updated successfully, but these errors were encountered: