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

multimediawidgets/camera example crashes when launched from Finder

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.2, 6.3.0 Alpha
    • 6.2.0
    • Multimedia
    • None
    • macOS
    • 67fe9e4106616383ede02741cfceaec12ee1b648 (qt/qtmultimedia/dev) a6a56ee54c85835bc274472bc7063b541c8223ab (qt/qtmultimedia/6.2)

    Description

      Reported on qt-interest and reproduced:

      Build the example, don't run it from Terminal, but start the camera.app bundle by double clicking on it in Finder. This doesn't ask for permission, but crashes instead unceremoniously.

      Starting from Terminal doesn’t crash (no matter whether with ‘open’ or the binary inside the bundle directly), only starting camera.app via Finder does. Starting the camera binary inside the camera.app bundle via Finder does not crash, it asks for permission and if rejected nothing special happens (no video, obviously, also no crash).

      The multimedia/declarative-camera example however does start correctly in all cases. It doesn’t ask for microphone access, which the multimediawidgets/camera example does when launched from Terminal.

      The stack trace I get with the widgets example goes to

      12 com.apple.avfoundation 0x00007fff30bbe7a5 -[AVCaptureSession addInput:] + 71
      13 org.qt-project.QtMultimedia 0x000000010ec99f00 AVFCameraSession::attachAudioInputDevice() + 176
      14 org.qt-project.QtMultimedia 0x000000010ec9a190 AVFCameraSession::updateAudioInput() + 128 (avfcamerasession.mm:487)
      15 org.qt-project.QtMultimedia 0x000000010ec97dd0 AVFCameraService::setAudioInput(QPlatformAudioInput*) + 624 (avfcameraservice.mm:146)
      16 org.qt-project.QtMultimedia 0x000000010ec65c98 QMediaCaptureSession::setAudioInput(QAudioInput*) + 56 (qmediacapturesession.cpp:204)

      before disappearing into com.apple.Foundation. Perhaps that helps us figure out what’s going on.

      Attachments

        Issue Links

          Activity

            People

              dorisverria Doris Verria
              vhilshei Volker Hilsheimer
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: