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

QSerialPort can't close an unplugged device

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.6.0
    • 5.5.1, 5.6.0 Beta
    • Serial Port
    • None
    • Windows 8, Windows 10
      Qt 5.5.1, 5.6.0 Beta

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes