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

QCamera stops working entirely if device is disconnected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9.0
    • Multimedia
    • None
    • Motorola Razr 40 Ultra, running Android 15
    • Android
    • Multimedia, weeks 11-12, Multimedia, weeks 13-14

    Description

      Under certain scenarios, a QCamera instance will become entirely unusable, even if you try to switch camera-device. This can happen if you either try to select a camera-device that is not currently connected, or if you disconnect a camera-device while it is active. In these cases, the QCamera will become unable to establish a new feed on different camera-devices even if they are currently connected, and will be stuck in the last frame.

      Steps to reproduce:

      1. Have at least one camera-device connected, such that QMediaDevices::videoInputs.length() > 0
      2. Create a QCamera instance
      3. Set QCamera to your camera-device
      4. Set it to active
      5. Disconnect the active camera-device (i.e unplug the physical cable)
      6. Select another connected camera-device

      What I expect to happen:
      I expect to get a working camera-feed on the newly selected camera-device.

      What actually happens
      The new camera-feed never starts on the newly selected camera-device.

      Attachments

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

        Activity

          People

            npskalerud Nils Petter Skålerud
            npskalerud Nils Petter Skålerud
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes