-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.9.2
-
None
-
-
2025wk38s2QtforAndroid
On Qt 6.9.2 pushing WebView QML component to the StackView crashes the application with the exception:
E/AndroidRuntime( 9575): FATAL EXCEPTION: main E/AndroidRuntime( 9575): Process: org.qtproject.example.minibrowser, PID: 9575 E/AndroidRuntime( 9575): java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. E/AndroidRuntime( 9575): at android.view.ViewGroup.addViewInner(ViewGroup.java:5361) E/AndroidRuntime( 9575): at android.view.ViewGroup.addView(ViewGroup.java:5190) E/AndroidRuntime( 9575): at android.view.ViewGroup.addView(ViewGroup.java:5130) E/AndroidRuntime( 9575): at org.qtproject.qt.android.QtWindow.lambda$addChildWindow$9$org-qtproject-qt-android-QtWindow(QtWindow.java:299) E/AndroidRuntime( 9575): at org.qtproject.qt.android.QtWindow$$ExternalSyntheticLambda14.run(D8$$SyntheticClass:0) E/AndroidRuntime( 9575): at android.os.Handler.handleCallback(Handler.java:900) E/AndroidRuntime( 9575): at android.os.Handler.dispatchMessage(Handler.java:103) E/AndroidRuntime( 9575): at android.os.Looper.loop(Looper.java:219) E/AndroidRuntime( 9575): at android.app.ActivityThread.main(ActivityThread.java:8676) E/AndroidRuntime( 9575): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime( 9575): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) E/AndroidRuntime( 9575): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109) E/ActivityManager( 1697): do not add repeated dropbox, mLastAppCrashedPid==9575
The same code works fine on Qt 6.6.3 and Qt 6.10.0 beta3.
Code to reproduce: see attached main.qml (adapted from example "minibrowser")