kliment/Printrun — Issue #125: Trouble when loading some gcode files
Author: jridley
Created: 2011-12-09 18:07:58+00:00
State: open

When loading GCode files, the load terminates unexpectedly. I've noticed this particularly on gcode from Slic3r but I have not confirmed whether or not it happens with SF generated GCode. If I comment out pronterface.py line 1306 giving estimated duration, the file loads and prints fine.

Here's the error. GCode file available on request.
layer z: 13.5 will take: 00:05:50
Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Program Files (x86)\Python27\lib\threading.py", line 552, in __bootst
rap_inner
self.run()
File "C:\Program Files (x86)\Python27\lib\threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "D:\apps\reprap\Printrun-2011-12-09\pronterface.py", line 1307, in loadviz
print _("Estimated duration (pessimistic): "), pronsole.estimate_duration(self.f)
File "D:\apps\reprap\Printrun-2011-12-09\pronsole.py", line 129, in estimate_duration
f = get_coordinate_value("F", parts[1:])
File "D:\apps\reprap\Printrun-2011-12-09\pronsole.py", line 88, in get_coordinate_value
return float(i[1:])
ValueError: invalid literal for float(): 900 ;Retract