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

[Android][Crash] The widgets camera example app crashes when trying to open the devices list in video mode on android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.0
    • Examples and Demos
    • None
    • Android

    Description

      MacOS 14.4

      Qt Creator 13.0.0

      Qt 6.7.0

       

      Device: Samsung Galaxy S22 13.0, Pixel 3a 12.0

      Steps to reproduce:

      1. Open widgets camera example app - https://doc.qt.io/qt-6/qtmultimedia-camera-example.html
      2. Run the app on android device.
      3. Change mode to Video.
      4. Tap on 3-dot icon 
      5. Select Devices 

      Expected: The devices list appears.

      Actual: The app crashes.

      Reproducibility:  100% ** 

       

      Log: 

      E AndroidRuntime: FATAL EXCEPTION: main
      E AndroidRuntime: Process: org.qtproject.example.camera, PID: 27975
      E AndroidRuntime: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
      E AndroidRuntime:     at android.view.ViewGroup.addViewInner(ViewGroup.java:5477)
      E AndroidRuntime:     at android.view.ViewGroup.addView(ViewGroup.java:5296)
      E AndroidRuntime:     at android.view.ViewGroup.addView(ViewGroup.java:5268)
      E AndroidRuntime:     at org.qtproject.qt.android.QtLayout.setLayoutParams(QtLayout.java:212)
      E AndroidRuntime:     at org.qtproject.qt.android.QtActivityDelegate.lambda$openContextMenu$8$org-qtproject-qt-android-QtActivityDelegate(QtActivityDelegate.java:286)
      E AndroidRuntime:     at org.qtproject.qt.android.QtActivityDelegate$$ExternalSyntheticLambda0.run(Unknown Source:10)
      E AndroidRuntime:     at android.os.Handler.handleCallback(Handler.java:942)
      E AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:99)
      E AndroidRuntime:     at android.os.Looper.loopOnce(Looper.java:226)
      E AndroidRuntime:     at android.os.Looper.loop(Looper.java:313)
      E AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:8741)
      E AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)
      E AndroidRuntime:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
      E AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
      I Process : Sending signal. PID: 27975 SIG: 9 

      Attachments

        Issue Links

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

          Activity

            People

              artemiy Artem Dyomin
              lkos Łukasz Kosiorowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes