Jump to content
Ultimaker Community of 3D Printing Experts
axsdenied

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

Recommended Posts

Hi

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.

Thoughts?

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

  • Our picks

    • How to 3D print with reinforced engineering materials
      Ultimaker is hosting a webinar where we explain how you can achieve and maintain a high print success rate using these new reinforced engineering materials. Learn from Ultimaker's Product Manager of Materials and top chemical engineer Bart van As how you can take your 3D printing to that next level.
      • 2 replies
    • "Back To The Future" using Generative Design & Investment Casting
      Designing for light-weight parts is becoming more important, and I’m a firm believer in the need to produce lighter weight, less over-engineered parts for the future. This is for sustainability reasons because we need to be using less raw materials and, in things like transportation, it impacts the energy usage of the product during it’s service life.
        • Like
      • 12 replies
×

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!