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

QML camera crashes always on OS X

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.5.0
    • Fix Version/s: 5.5.0
    • Component/s: Multimedia
    • Labels:
      None
    • Platform/s:
      macOS
    • Commits:
      762bce7a06de20d87425a363a83a01bd0be9159a

      Description

      ASSERT: "m_session->state() == QCamera::ActiveState" in file avfcameraflashcontrol.mm, line 160

      Latest 5.5 branch, OS X 10.10, MBP mid-2009.

      * thread #1: tid = 0x47cdb, 0x00007fff8a369286 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
        * frame #0: 0x00007fff8a369286 libsystem_kernel.dylib`__pthread_kill + 10
          frame #1: 0x00007fff885b642f libsystem_pthread.dylib`pthread_kill + 90
          frame #2: 0x00007fff910adb53 libsystem_c.dylib`abort + 129
          frame #3: 0x00000001029a8638 libQt5Core_debug.5.dylib`qt_message_fatal((null)=QtFatalMsg, context=0x00007fff5fbfee18, message=0x00007fff5fbfede8) + 24 at qlogging.cpp:1575
          frame #4: 0x00000001029aa95e libQt5Core_debug.5.dylib`QMessageLogger::fatal(this=0x00007fff5fbfee18, msg=0x0000000102e5bb60) const + 446 at qlogging.cpp:777
          frame #5: 0x00000001029a1812 libQt5Core_debug.5.dylib`qt_assert(assertion=0x000000010b33e62c, file=0x000000010b33e551, line=160) + 82 at qglobal.cpp:2960
          frame #6: 0x000000010b335c29 libqavfcamera_debug.dylib`AVFCameraFlashControl::applyFlashSettings(this=0x00000001036d7fa0) + 73 at avfcameraflashcontrol.mm:160
          frame #7: 0x000000010b336312 libqavfcamera_debug.dylib`AVFCameraFlashControl::cameraStateChanged(this=0x00000001036d7fa0, newState=ActiveState) + 498 at avfcameraflashcontrol.mm:154
          frame #8: 0x000000010b339afe libqavfcamera_debug.dylib`AVFCameraFlashControl::qt_static_metacall(_o=0x00000001036d7fa0, _c=InvokeMetaMethod, _id=0, _a=0x00007fff5fbff3d0) + 78 at moc_avfcameraflashcontrol.cpp:72
          frame #9: 0x0000000102cde3cb libQt5Core_debug.5.dylib`QMetaObject::activate(sender=0x00000001044d8050, signalOffset=3, local_signal_index=1, argv=0x00007fff5fbff3d0) + 2955 at qobject.cpp:3718
          frame #10: 0x0000000102cdd82d libQt5Core_debug.5.dylib`QMetaObject::activate(sender=0x00000001044d8050, m=0x000000010b34fe80, local_signal_index=1, argv=0x00007fff5fbff3d0) + 61 at qobject.cpp:3583
          frame #11: 0x000000010b3179c9 libqavfcamera_debug.dylib`AVFCameraSession::stateChanged(this=0x00000001044d8050, _t1=ActiveState) + 73 at moc_avfcamerasession.cpp:220
          frame #12: 0x000000010b3173dd libqavfcamera_debug.dylib`AVFCameraSession::setState(this=0x00000001044d8050, newState=ActiveState) + 381 at avfcamerasession.mm:299
          frame #13: 0x000000010b30fc0e libqavfcamera_debug.dylib`AVFCameraControl::setState(this=0x00000001044cd700, state=ActiveState) + 62 at avfcameracontrol.mm:66
          frame #14: 0x0000000100ad50d5 libQt5Multimedia_debug.5.dylib`QCameraPrivate::setState(this=0x00000001044cfde0, newState=ActiveState) + 133 at qcamera.cpp:118
          frame #15: 0x0000000100ad8147 libQt5Multimedia_debug.5.dylib`QCamera::start(this=0x00000001044cb130) + 39 at qcamera.cpp:824
          frame #16: 0x000000010b1e72a8 libdeclarative_multimedia_debug.dylib`QDeclarativeCamera::setCameraState(this=0x00000001044d9c60, state=ActiveState) + 120 at qdeclarativecamera.cpp:590
          frame #17: 0x000000010b1e721c libdeclarative_multimedia_debug.dylib`QDeclarativeCamera::componentComplete(this=0x00000001044d9c60) + 28 at qdeclarativecamera.cpp:237
          frame #18: 0x000000010b1e72fc libdeclarative_multimedia_debug.dylib`non-virtual thunk to QDeclarativeCamera::componentComplete(this=0x00000001044d9c70) + 28 at qdeclarativecamera.cpp:238
          frame #19: 0x0000000101d8840f libQt5Qml_debug.5.dylib`QQmlObjectCreator::finalize(this=0x00000001044d9fc0, interrupt=0x00007fff5fbff688) + 719 at qqmlobjectcreator.cpp:1207
          frame #20: 0x0000000101cde74c libQt5Qml_debug.5.dylib`QQmlComponentPrivate::complete(enginePriv=0x000000010441afb0, state=0x00000001044a5310) + 60 at qqmlcomponent.cpp:928
          frame #21: 0x0000000101cdcd4b libQt5Qml_debug.5.dylib`QQmlComponentPrivate::completeCreate(this=0x00000001044a5270) + 75 at qqmlcomponent.cpp:964
          frame #22: 0x0000000101cde802 libQt5Qml_debug.5.dylib`QQmlComponent::completeCreate(this=0x00000001044a4d00) + 34 at qqmlcomponent.cpp:957
          frame #23: 0x0000000101cddf8c libQt5Qml_debug.5.dylib`QQmlComponent::create(this=0x00000001044a4d00, context=0x00000001044a7a30) + 156 at qqmlcomponent.cpp:791
          frame #24: 0x000000010027b79e libQt5Quick_debug.5.dylib`QQuickView::continueExecute(this=0x00007fff5fbffa38) + 654 at qquickview.cpp:476
          frame #25: 0x000000010027b490 libQt5Quick_debug.5.dylib`QQuickViewPrivate::execute(this=0x000000010441e140) + 560 at qquickview.cpp:124
          frame #26: 0x000000010027bcc0 libQt5Quick_debug.5.dylib`QQuickView::setSource(this=0x00007fff5fbffa38, url=0x00007fff5fbffa28) + 64 at qquickview.cpp:253
          frame #27: 0x0000000100003c6f declarative-camera`main(argc=1, argv=0x00007fff5fbffaa0) + 239 at qmlcamera.cpp:53
          frame #28: 0x0000000100003b74 declarative-camera`start + 52
      

        Attachments

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

          Activity

            People

            Assignee:
            ylopes Yoann Lopes
            Reporter:
            lagocs Laszlo Agocs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes