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

QCamera stops working if device is reconnected (Linux)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9, 6.10
    • Multimedia
    • Linux/Wayland, Linux/X11

    Description

      This issue was observed on 6.9, using the FFmpeg media backend. It can easily be reproduced with the manual test in patch https://codereview.qt-project.org/c/qt/qtmultimedia/+/631733.

      When having an active QCamera and disconnecting the current device, the QCamera will stop sending frames but still be marked as active. If you then try to reconnect the device, you cannot make the QCamera object submit frames without actually calling "setCameraDevice()" with a different camera device. This is not always possible.

      I attempted to make it work again by manually setting active=false and then active=true. But this has no effect even though the property updates correctly.

      The device tested was a Lenovo ThinkPad P1 Gen 6 running Manjaro.

      What do you expect to happen
      I expect the "active" property to go false whenever I disconnect the camera-device. I expect the "active" property to not be updated to "true" if I try to set it while the device is not connected. I expect the QCamera to start submitting frames again after I reconnect the device and set active=true.

      Attachments

        Issue Links

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

          Activity

            People

              qtmultimediateam Qt Multimedia Team
              npskalerud Nils Petter Skålerud
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes