Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-48627

QSerialPort hangs after restart

    XMLWordPrintable

Details

    • c296ae217cdb21b413b857b63961b78a65569162

    Description

      QSerialPort is using QLockFile to prevent accessing the opened serial port.
      The problem comes, when the device looses power and after a new start the still existing lock file makes the application hang, because there is no timeout on opening.

      Possible solution is to compare the system uptime and the creation time of the lock file, to decide if the lock file is valid.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              thiago Thiago Macieira
              qtcomsupport Qt Support
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes