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

QSerialPort can't close an unplugged device

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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

    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

              kuzulis Denis Shienkov
              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