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

QtSerialPortInfo::availablePorts crashes on MacOS 10.9.5 with Qt 5.3.2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.4.0 RC, 5.4.0
    • 5.3.2
    • Serial Port
    • None
    • Mac OS 10.9.5
      Qt 5.3.2
    • macOS

    Description

      under some circumstances the function QtSerialPort::availablePorts crashes

      • it works when running the program from withn the QtCreator
      • it crashes when double clicking on the program in the Finder
      • it crashes when running the program from within Xcode

      i can reproduce the issue with the enumerator example project from the Qt5.3.2 package

      to make it work i have done the following:

      added a function like searchProperty, just a different return type

      Bar.java
      static CFTypeRef searchProperty2(io_registry_entry_t ioRegistryEntry,
                                               const QCFString &propertyKey)
      {
          return ::IORegistryEntrySearchCFProperty(
                      ioRegistryEntry, kIOServicePlane, propertyKey, kCFAllocatorDefault, 0);
      }
      

      and used it in

      Bar.java
      static QString searchStringProperty(io_registry_entry_t ioRegistryEntry,
                                          const QCFString &propertyKey)
      {
          CFTypeRef result = searchProperty2(ioRegistryEntry, propertyKey);
          return QCFString::toQString(CFStringRef(static_cast<CFTypeRef>(result)));
      }
      

      Attachments

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

        Activity

          People

            dzedsystems Dyami Caliri
            lunatic fringe Erich Bachl
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes