Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-140236

Locking the device causes the QML app to crash

XMLWordPrintable

    • Android
    • 2025wk40s2-3QtforAndroid

      MacOS 15.6.1

      Qt Creator 18.0.0

      Qt 6.10.0

       

      Device: Pixel 5 13.0, Samsung Galaxy S22 14.0

      Steps to reproduce:

      1. Run any Qt Quick app. 
      2. Lock the screen and unlock it. 

      Sample:

      import QtQuickWindow {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      }
       

      Expected: The app should be working fine without any issues.

      Actual: The app crashes when the device is locked. 

      F/larative_camera: runtime.cc:709] Runtime aborting...
      F/larative_camera: runtime.cc:709] native: #01 pc 00201230 /apex/com.android.art/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks+136)
      F/larative_camera: runtime.cc:709] native: #04 pc 000df878 /system/lib64/libandroid_runtime.so (_JNIEnv::CallObjectMethod+120)
      F/larative_camera: runtime.cc:709] native: #05 pc 0014c180 /system/lib64/libandroid_runtime.so (android::NativeDisplayEventReceiver::dispatchVsync+64)
      F/larative_camera: runtime.cc:709]   at android.os.MessageQueue.nativePollOnce(Native method)
      F/larative_camera: runtime.cc:709]   at android.os.Looper.loopOnce(Looper.java:187)
      F/larative_camera: runtime.cc:709]   at android.app.ActivityThread.main(ActivityThread.java:9063)F/larative_camera: runtime.cc:709] "main" prio=10 tid=1 Native
      F/larative_camera: runtime.cc:709]   | state=S schedstat=( 853412283 468653233 1802 ) utm=65 stm=19 core=7 HZ=100F/larative_camera: runtime.cc:709] "ReferenceQueueDaemon" prio=5 tid=7 Waiting
      F/larative_camera: runtime.cc:709] "FinalizerDaemon" prio=5 tid=8 Waiting
      F/larative_camera: runtime.cc:709] "FinalizerWatchdogDaemon" prio=5 tid=9 Sleeping 

      Reproducibility:  100% 

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtandroidteam Qt Android Team
            lkos Łukasz Kosiorowski
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes