Jump to content
Ultimaker Community of 3D Printing Experts

Cura, serial port and lock files on linux - possible bug

Recommended Posts


I was printing from simplify3D (on linux) via USB to UM2 when I loaded Cura (15.06.01) to check another design. At startup Cura connected to the printer (which was already printing) which lead to head crashing into the right wall and the belt skipping and then the print resumed several centimeters to the side (in the air). While there was no damage to the printer, a 4h print was ruined.

I am not sure what Cura's default behaviour is but, as far as I know, Cura should not try to connect to a printer which is in use.

Simplify3D created the lock file var/lock/LCK..ttyACM0 meaning it needs exclusive access to the tty port. Cura should have checked for this file (and for the PID of the process which created it) before trying to connect to the printer. More details on serial port locking on linux can be found here. Unless I got everything wrong, cura should be following this.


Share this post

Link to post
Share on other sites

Will post it on the github, have to make an account first.

By the way, on linux serial port is a terminal, just like text terminals. They don't get locked automatically on opening as, in some cases, it is useful to have access to a terminal from multiple programs. For example if you are using a text terminal and someone wants to send you a message. I can also see use of this for debugging devices connected via virtual serial port.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!