kliment/Printrun — Issue #69: Random freezes while printer from Serial port
Author: misan
Created: 2011-10-25 17:44:10+00:00
State: open

I cannot finish almost any of my prints as they stop after a few minutes (or seconds). The error message I get at the console is:

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/misan/Documentos/prusa/Printrun/printcore.py", line 79, in _listen
line=self.printer.readline()
File "/usr/lib/python2.6/dist-packages/serial/serialutil.py", line 60, in readline
c = self.read(1)
File "/usr/lib/python2.6/dist-packages/serial/serialposix.py", line 320, in read
buf = os.read(self.fd, size-len(read))
OSError: [Errno 11] Recurso no disponible temporalmente

I'm running 10.4 64bit Ubuntu with python-serial 2.3.1. Problem happens with or without power in the RAMPS board (I guess it is not an EMI problem). Firmware is Sprinter.

As I understand it, it seems the serial port device vanishes temporarily so serialposix cannot complete a read. dmesg however, does not show a USB disconnect/connect cycle and USB device responds happily. I guess it might be an OS or pyserial problem, but I'm reporting it here just in case.