Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.7.0
-
-
6d2db42f7 (dev)
Description
If the embedding Activity is recreated, for example due to orientation change, resources don't seem to be properly cleared up, leading to a crash after enough recreations have happened.
When the Activity is recreated, for example due to not-overridden orientation change, the app gets stuck.
Before https://codereview.qt-project.org/c/qt/qtbase/+/557217 whenever the Activity got destroyed, we also called system.exit(), hence quitting the whole app, and it just got restarted with the new Activity, making it look like it worked, for a while. However, removing the system.exit() call lead to other issues, like the QtThread instance already being stopped.
Steps to reproduce:
- Remove the line android:configChanges="orientation|screenLayout|screenSize" from the example's (qtquickview_java or another embedded QML example) AndroidManifest.xml
- start the example
- switch the orientation of the emulator/device
Attachments
Issue Links
- is blocked by
-
QTBUG-124114 QtLoader: only try to load the libraries once
- Closed
- is required for
-
QTBUG-125088 Embedded QML and Qt Quick for Android on Qt 6.9
- Open
-
QTBUG-125086 Embedded QML and Qt content as Android View work for Qt 6.8
- Closed
- relates to
-
QTBUG-125145 Starting a new Activity with embedded QML crashes when one already exists
- Reported
- resulted from
-
QTBUG-123306 Orientation issues with embedding QML to Android Java application
- Closed
1.
|
Known issue update | Open | Nicholas Bennett |
Gerrit Reviews
For Gerrit Dashboard: QTBUG-123711 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
557217,4 | Android: Do not call exit when embedded Qt application is stopped | dev | qt/qtbase | Status: MERGED | +2 | 0 |