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

Calling QSerialPortInfo::availablePorts() leads to frequent crashes on OSX

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • 5.4.0
    • 5.3.2
    • Serial Port
    • None
    • OSX 10.9.4
    • macOS

    Description

      I’m calling “QList<QSerialPortInfo> ports = QSerialPortInfo::availablePorts();” once every two seconds. After an intermittent amount of time, from a few seconds up to several minutes, my program crashes and Qt Creator’s debugger and Apple's crash log both point to this static method.

      This is appears to be a regression. 5.3.1 did not have this problem.

      Relevant crash log is here:

      ===============================================
      Thread 7 Crashed:: SerialEnumerationThread
      0 libobjc.A.dylib 0x00007fff8e670097 objc_msgSend + 23
      1 QtCore 0x0000000100f10944 QCFString::toQString(__CFString const*) + 52
      2 QtSerialPort 0x000000010c1a0e86 searchStringProperty(unsigned int, QCFString const&) + 102
      3 QtSerialPort 0x000000010c19fe23 QSerialPortInfo::availablePorts() + 387
      4 libSerial.dylib 0x000000010c833bab SerialConnection::availableDevices() + 123

      Attachments

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

        Activity

          People

            kuzulis Denis Shienkov
            kubark42_ Kenz Dale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes