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

Mac OSX Serial port infinte loop when disconnected from device

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • 5.6.0
    • 5.5.1
    • Serial Port
    • None
    • Mac OS X el capitan 10.11 64 bit
      3GB RAM
      Intel CPU
      FTDI USB device
    • macOS

      In Qt 5.5.1 whilst using the serial port, if the connection is open and then the USB device is removed from the mac, an error is emitted (ResourceError), in which an attempt is made to close the port if PortOpen is true, when this is called another error is emitted (ResourceError) which then does the same thing until the stack limit is reached and the application crashes.

      In Linux and Windows, this issue does not occur. I have not tried but looking at the code for the sample terminal application looks like it too will cause the issue: http://doc.qt.io/qt-5/qtserialport-terminal-example.html

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

            kuzulis Denis Shienkov
            thedjnk Mr nK
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes