Jump to content

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


axsdenied

Recommended Posts

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

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?

  • Link to post
    Share on other sites

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

    Could you (also) post this on the github issue tracker? Makes it easier to keep track.

    Cura does not check the lock file as far as I can remember. To be honest, I wasn't even aware of it's existence, as I assumed that linux would handle this without my meddling (which makes way more sense imho).

  • Link to post
    Share on other sites

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

    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.

  • 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

      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
        • 3 replies
      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 26 replies
    ×
    ×
    • Create New...