Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.7.2, 6.8.0 Beta4, 6.8.0 RC
Description
MacOS 14.6.1
Qt Creator 14.0.2
Qt 6.8.0
Device: Samsung Galaxy S22 14.0
Steps to reproduce:
- Open the attached sample project.
- Run the app on Android device.
- Once the app is launched tap on the center on the screen, so that the windows 'gets the focus'
- Open context menu and select any option.
Expected: The app should not crash.
Actual: The app crashes:
E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: Process: org.qtproject.example.widget_contex, PID: 1071
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:5509)
E AndroidRuntime: at android.view.ViewGroup.addView(ViewGroup.java:5328)
E AndroidRuntime: at android.view.ViewGroup.addView(ViewGroup.java:5300)
E AndroidRuntime: at org.qtproject.qt.android.QtLayout.setLayoutParams(QtLayout.java:212)
E AndroidRuntime: at org.qtproject.qt.android.QtActivityDelegate.lambda$openContextMenu$9$org-qtproject-qt-android-QtActivityDelegate(QtActivityDelegate.java:302)
E AndroidRuntime: at org.qtproject.qt.android.QtActivityDelegate$$ExternalSyntheticLambda9.run(D8$$SyntheticClass:0)
E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:958)
E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:230)
E AndroidRuntime: at android.os.Looper.loop(Looper.java:319)
E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8919)
E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
Reproducibility: 100% **
Attachments
Issue Links
- relates to
-
QTQAINFRA-6591 Qt Test Attack - Q3, 2024
- Open
-
QTBUG-129094 [Boot2Qt][Wayland] Showing context menu in widgets application causes the wayland connection to break
- Closed
-
QTBUG-129201 tst_qwidget_window crashes on Android in nightly health check
- Closed