Skip to content
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

Random freezes while printing from Serial port #69

Closed
misan opened this issue Oct 25, 2011 · 2 comments
Closed

Random freezes while printing from Serial port #69

misan opened this issue Oct 25, 2011 · 2 comments

Comments

@misan
Copy link

misan commented Oct 25, 2011

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.

@misan
Copy link
Author

misan commented Oct 25, 2011

It seems similar to the reported (and closed?) error on pyserial http://sourceforge.net/tracker/index.php?func=detail&aid=1043420&group_id=46487&atid=446302

@misan
Copy link
Author

misan commented Oct 27, 2011

I've used other (unrelated) Java code to upload the G-CODE to my printer. I can see that at a (random) given point my board fails to return "Ok". So printing is stopped.

Because of this I do not think Printrun is to blame and I'm closing this issue.

@misan misan closed this as completed Oct 27, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant