-
Notifications
You must be signed in to change notification settings - Fork 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
MemoryError for large gcode files #1252
Comments
You can zip the files and attach the zip file here. What is your printrun version and operating system? Can you remember , what exactly you did after you start opening the file? Did you maybe try to open the gcode view while printrun was in the process loading the file? |
@matthewelmer , are you using precompiled binary or running from source. |
I'm pretty sure I'm using the precompiled binary since this is my windows machine. (I get that there may be ways to compile for windows, but I've never done so.) I should add that I was wiggling the graphical view before it had finished loading, and when I let it load without wiggling it there are no problems. Here's the gcode! |
@matthewelmer, OS is Windows, Windows 10 x64 I guess? What is the version of Printrun? :) You need to give Printrun time to open the file completely. This is also the workaround for your problem. You will recognize the progress of loading on the red marked areas below: As soon as loading is complete you will see that the status bar at the bottom left is empty and terminal window on the right will tell you the stats of your model as highlighted below: Please try not to view layers in the Gcode view window during the time where Printrun load the model because, as you find out, there is a not solved user action that will cause an error report. The model will nerveless load correctly in case you wait for finishing the import of the model. |
@volconst, @kliment I will mark this issue as an bug so that we can fix it as soon we find some time (can't quickly see/find the point where this need to be fixed). I'm a bit in hurry for now and quite busy this week. |
Yeah, there's no need to fix this quickly. I'll just wait till my model is done before viewing :) Thanks all! |
….model exist. In addition adding logging.info in case a user try to move the slider.
….model exist. In addition adding logging.info in case a user try to move the slider.
it is quite some time ago but we finally got around it. As mentioned those errors came from a not completely loaded Gcode model. I did change the behavior for the Gcode Viewer so that is do not process the view if the slider move to an not existing position while loading the model. An additional information printed in the console window inform the user to wait until the model is loaded completely. Here is a link to the latest dev build: https://github.com/kliment/Printrun/actions/runs/4152400998 I will close the issue and mark as completed. (0c296ba) Thanks for your report |
Sorry about the images. I found it extremely difficult to copy the console logs. The number of layers and time estimation was always the same between the three attempts, but only the third attempt ran without errors and showed the full model in the preview. Please let me know if I can provide any more info!
Gcode is attached as a .txt (hopefully? github doesn't seem to like it.)
Exception in thread Thread-12:
Traceback (most recent call last):
File "threading.pyc", line 808, in __bootstrap_inner
File "threading.pyc", line 761, in run
File "printrun\pronterface.pyc", line 1452, in loadviz
File "printrun\gcview.pyc", line 338, in addfile_perlayer
File "printrun\gl\libtatlin\actors.pyc", line 429, in load_data
MemoryError: cannot allocate memory for array
Loaded F:\Documents\3D Printer Files\LANL\0.6mm nozzle gcode
The text was updated successfully, but these errors were encountered: