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

QSerialPort can't close an unplugged device

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.5.1, 5.6.0 Beta
    • Fix Version/s: 5.6.0
    • Component/s: Serial Port
    • Labels:
      None
    • Environment:
      Windows 8, Windows 10
      Qt 5.5.1, 5.6.0 Beta

      Description

      In Qt 5.5.1 there is a bug with QSerialPortInfo::availablePorts().

      how to produce this bug :
      1 - open any serial port
      2 - unplug the device
      3 - read or write bytes

      If you read or write bytes on an open unplugged port, you can't close this port, each operation return an error like DeviceNotFound or NotOpen, and this port is always present in QSerialPortInfo::availablePorts().

      But if you close the port before Read/Write operation, everything is good.

      This bug is reproductible with Qt serial port exemple.
      This bug is not present in Qt 5.5.0.

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-50052
          # Subject Branch Project Status CR V

            Activity

              People

              • Assignee:
                kuzulis Denis Shienkov
                Reporter:
                istil Bastien Thonnat
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes