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

Audiorecorder example crashes on desktop (Windows,MacOS) with constant bitrate setting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.3, 5.15.6
    • Qt 5.15.3 / Windows 10 / MacOS 10.15
    • macOS, Windows

    Description

      Steps to reproduce:

      1. Run the project https://doc.qt.io/qt-5/qtmultimedia-multimedia-audiorecorder-example.html on Windows or MacOS.

      2. Check the constant bitrate option (set Default on MacOS, on Windows it doesn't matter what is the value)

      3. Click 'Record' button. 

       

      Actual: Application crashes.

      Expected: Application should not crash, it should start recording.

      Notes: Works fine on Android, iOS, Linux

      CRASH REPORT (MacOS):

      Process:               audiorecorder [93354]Process:               audiorecorder [93354]Path:                  /Users/USER/*/audiorecorder.app/Contents/MacOS/audiorecorderIdentifier:            com.digia.${PRODUCT_NAME:rfc1034identifier}Version:               1.0 (1.0)Code Type:             X86-64 (Native)Parent Process:        Qt Creator [30490]Responsible:           Qt Creator [30490]User ID:               503
      Date/Time:             2021-02-25 12:57:38.106 +0100OS Version:            Mac OS X 10.15.7 (19H114)Report Version:        12Bridge OS Version:     5.1 (18P3030)Anonymous UUID:        61835326-67DD-41FD-805C-EB3AC16E554B
      Sleep/Wake UUID:       468995DB-5AA8-4354-A086-CBBBAF33BF5B
      Time Awake Since Boot: 170000 secondsTime Since Wake:       15000 seconds
      System Integrity Protection: enabled
      Crashed Thread:        0  Dispatch queue: com.apple.main-thread
      Exception Type:        EXC_ARITHMETIC (SIGFPE)Exception Codes:       EXC_I386_DIV (divide by zero)Exception Note:        EXC_CORPSE_NOTIFY
      Termination Signal:    Floating point exception: 8Termination Reason:    Namespace SIGNAL, Code 0x8Terminating Process:   exc handler [93354]
      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread0   org.qt-project.QtMultimedia    0x000000010c249920 QAudioDeviceInfo::nearestFormat(QAudioFormat const&) const + 2512 (qaudiodeviceinfo.cpp:319)1   libqtmedia_audioengine.dylib   0x000000010e26250b AudioCaptureSession::record() + 235 (audiocapturesession.cpp:278)2   com.digia.${PRODUCT_NAME:rfc1034identifier} 0x000000010c1fd9c9 AudioRecorder::toggleRecord() + 777 (audiorecorder.cpp:208)3   com.digia.${PRODUCT_NAME:rfc1034identifier} 0x000000010c2051f0 AudioRecorder::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 144 (moc_audiorecorder.cpp:105)4   org.qt-project.QtCore          0x000000010d3af7b5 void doActivate<false>(QObject*, int, void**) + 1477 (qobject.cpp:3918)5   org.qt-project.QtWidgets       0x000000010c41c09f QAbstractButtonPrivate::emitClicked() + 111 (qabstractbutton.cpp:417)6   org.qt-project.QtWidgets       0x000000010c41bf19 QAbstractButtonPrivate::click() + 233 (qabstractbutton.cpp:409)7   org.qt-project.QtWidgets       0x000000010c41d0cf QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 271 (qabstractbutton.cpp:1045)8   org.qt-project.QtWidgets       0x000000010c36ca7d QWidget::event(QEvent*) + 445 (qwidget.cpp:8659)9   org.qt-project.QtWidgets       0x000000010c4c29d5 QPushButton::event(QEvent*) + 85 (qpushbutton.cpp:718)10  org.qt-project.QtWidgets       0x000000010c33269a QApplicationPrivate::notify_helper(QObject*, QEvent*) + 266 (qapplication.cpp:3639)11  org.qt-project.QtWidgets       0x000000010c335405 QApplication::notify(QObject*, QEvent*) + 6965 (qapplication.cpp:3082)12  org.qt-project.QtCore          0x000000010d37c114 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212 (qcoreapplication.cpp:1064)13  org.qt-project.QtWidgets       0x000000010c332fc0 QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) + 89614  org.qt-project.QtWidgets       0x000000010c38bc72 QWidgetWindow::handleMouseEvent(QMouseEvent*) + 3266 (qwidgetwindow.cpp:683)15  org.qt-project.QtWidgets       0x000000010c38a339 QWidgetWindow::event(QEvent*) + 233 (qwidgetwindow.cpp:300)16  org.qt-project.QtWidgets       0x000000010c33269a QApplicationPrivate::notify_helper(QObject*, QEvent*) + 266 (qapplication.cpp:3639)17  org.qt-project.QtWidgets       0x000000010c333ac1 QApplication::notify(QObject*, QEvent*) + 49718  org.qt-project.QtCore          0x000000010d37c114 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212 (qcoreapplication.cpp:1064)19  org.qt-project.QtGui           0x000000010c9944fe QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 3534 (qguiapplication.cpp:2283)20  org.qt-project.QtGui           0x000000010c9793bb QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 219 (qwindowsysteminterface.cpp:1175)21  libqcocoa.dylib                0x000000010d9611d0 QCocoaEventDispatcherPrivate::processPostedEvents() + 320 (qcocoaeventdispatcher.mm:907)22  libqcocoa.dylib                0x000000010d961938 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 4023  com.apple.CoreFoundation       0x00007fff2de0ad52 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 1724  com.apple.CoreFoundation       0x00007fff2de0acf1 __CFRunLoopDoSource0 + 10325  com.apple.CoreFoundation       0x00007fff2de0ab0b __CFRunLoopDoSources0 + 20926  com.apple.CoreFoundation       0x00007fff2de0983a __CFRunLoopRun + 92727  com.apple.CoreFoundation       0x00007fff2de08e3e CFRunLoopRunSpecific + 46228  com.apple.HIToolbox            0x00007fff2ca35abd RunCurrentEventLoopInMode + 29229  com.apple.HIToolbox            0x00007fff2ca356f4 ReceiveNextEventCommon + 35930  com.apple.HIToolbox            0x00007fff2ca35579 _BlockUntilNextEventMatchingListInModeWithFilter + 6431  com.apple.AppKit               0x00007fff2b07b039 _DPSNextEvent + 88332  com.apple.AppKit               0x00007fff2b079880 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 135233  com.apple.AppKit               0x00007fff2b06b58e -[NSApplication run] + 65834  libqcocoa.dylib                0x000000010d96059f QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2495 (qcocoaeventdispatcher.mm:438)35  org.qt-project.QtCore          0x000000010d37819f QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431 (qeventloop.cpp:231)36  org.qt-project.QtCore          0x000000010d37c722 QCoreApplication::exec() + 130 (qcoreapplication.cpp:1375)37  com.digia.${PRODUCT_NAME:rfc1034identifier} 0x000000010c1f7f00 main + 80 (main.cpp:62)38  libdyld.dylib                  0x00007fff67ebacc9 start + 1
      Thread 1:: AMCP Logging Spool0   libsystem_kernel.dylib         0x00007fff67ffbe36 semaphore_wait_trap + 101   com.apple.audio.caulk          0x00007fff61a90b16 caulk::mach::semaphore::wait() + 162   com.apple.audio.caulk  
      

      Attachments

        1. crash.txt
          63 kB
          lukasz.kosiorowski
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            johanseg Jøger Hansegård
            lukasz.kosiorowski lukasz.kosiorowski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes