Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.0
-
None
-
-
d6861926a (dev)
-
2023wk46FOQtforAndroid
Description
MacOS 14.1
Qt Creator 12.0.0-rc1 (11.0.84)
Device: Samsung Galaxy S22 13.0 / Samsung Galaxy S9 9.0
Qt Version:
Qt 6.7.0 2023-11-13 sha1: eadc7461ca268e97d9cec885cee9c5a59cc365f8
Steps to reproduce:
- Create a new application or open an existing example, e.g. gallery quick controls example
- Run the app on an Android device.
- Rotate the device from portrait to landscape.
Expected: The app rotates and works without any problems.
Actual: The app crashes.
On Android 9 the app works until I rotate the screen. On Android 13 it crashed without rotating the device few seconds after launch.
Reproducibility: 100%
E AndroidRuntime: FATAL EXCEPTION: main E AndroidRuntime: Process: org.qtproject.example.appuntitled2, PID: 9942 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.qtproject.qt.android.QtLayout.setActivityDisplayRotation(int)' on a null object reference E AndroidRuntime: at org.qtproject.qt.android.QtDisplayManager$1.onDisplayChanged(QtDisplayManager.java:80) E AndroidRuntime: at android.hardware.display.DisplayManagerGlobal$DisplayListenerDelegate.handleMessage(DisplayManagerGlobal.java:1652) E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106) 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)
Attachments
Issue Links
- is required for
-
QTBUG-118985 The screen becomes blank after unlocking the screen in the app with Vulkan content rendered under a Qt Quick scene
- Closed
- relates to
-
QTBUG-119007 Android: QtDisplayManager.onDisplayChanged() can lead to a null pointer exception
- Closed
-
QTQAINFRA-5914 Qt Test Attack - Q4, 2023
- Open
-
QTBUG-119430 Top flaky test: tst_android::orientationChange on Android_ANY X86_64.
- Closed
- resulted from
-
QTBUG-116884 Redesign Android QPA
- Closed
For Gerrit Dashboard: QTBUG-119134 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
518519,6 | Android: set displayManager listener after QtLayout is initialized | dev | qt/qtbase | Status: MERGED | +2 | 0 |