Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
5.15.12
-
None
-
-
33ff8f93a (tqtc/lts-5.15), bf4825b31 (tqtc/lts-6.5), 6ef5ac9e0 (tqtc/lts-6.2)
-
2024wk18FOQtforAndroid
Description
We recently upgraded from Qt 5.15.2 to 5.15.12 and are now seeing crashes like the following:
Exception java.lang.NullPointerException: Attempt to invoke virtual method 'void org.qtproject.qt5.android.QtLayout.setActivityDisplayRotation(int)' on a null object reference at org.qtproject.qt5.android.QtActivityDelegate$4.onDisplayChanged (QtActivityDelegate.java:603) at android.hardware.display.DisplayManagerGlobal$DisplayListenerDelegate.handleMessage (DisplayManagerGlobal.java:736) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loop (Looper.java:268) at android.app.ActivityThread.main (ActivityThread.java:8023) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:635) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:947)
From the lifecycle events in Sentry we can see that this seems to happen when the app is either resumed from background or moved to background.
Affected OS versions include Android 8–13.
Affected devices include the following:
- TECNO SPARK 7P
- TECNO KG5k
- POCO M3
- Redmi Note 8 pro
- realme 8
- POCO X3 Pro
- Pixel 7 Pro
Attachments
Issue Links
- relates to
-
QTBUG-80766 Android app installed from Google Play store crashes
- Closed
For Gerrit Dashboard: QTBUG-111960 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
559343,2 | Android: Register displayListener after QtLayout initialization | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
559705,6 | Android: Register displayListener after QtLayout initialization | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
559783,2 | Android: Register displayListener after QtLayout initialization | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |