This repository was archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
TypeError in continuous mode during gcode file processing #19
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
When octoprint process a very large gcode file to be ready for print (this one is 52.8mb) there appears to be an overflow error.
Continuous mode works fine until you either attempt to start the print, or you load the gcode viewer.
It's at this point that the layer count is generated, along with the expected print time. 582 layers, approx 7 hours in this particular case.
Doesn't happen with smaller files - still testing, but so far anything over 40mb causes the error output below:
Traceback (most recent call last):
File "/home/pi/.local/bin/octoprint-cli", line 11, in <module>
load_entry_point('octoprint-cli==3.2.2', 'console_scripts', 'octoprint-cli')()
File "/home/pi/.local/lib/python3.7/site-packages/octoprint_cli-3.2.2-py3.7.egg/octoprint_cli/__main__.py", line 669, in main
File "/home/pi/.local/lib/python3.7/site-packages/octoprint_cli-3.2.2-py3.7.egg/octoprint_cli/__main__.py", line 91, in continuous
File "/home/pi/.local/lib/python3.7/site-packages/octoprint_cli-3.2.2-py3.7.egg/octoprint_cli/api.py", line 68, in getTotalTime
TypeError: unsupported operand type(s) for //: 'NoneType' and 'int'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working