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

[REG 5.15.6 -> 5.15.9] Many ANR issues by QtAccessibility

    XMLWordPrintable

Details

    • Android
    • 2023wk16FOQtforAndroid, 2023wk18FOQtforAndroid, 2023wk32FOQtforAndroid

    Description

      since QtAccessibility in 5.15 has led to many crashes so far, we have updated relatively quickly to 5.15.9.

      the crashes have become less, but the ANR explode by 3 orders of magnitude.
      users report unusability of the app, because inputs are no longer processed and it completely stalls.

      almost all reported callstacks contain QtAccessibility in the main thread

      also noticeable is that almost all of these ANR are reported on android10 sdk29 devices

        #00  pc 000000000005a7d0  /apex/com.android.runtime/lib/bionic/libc.so (syscall+28)
        #00  pc 0000000000296e57  /data/app/de-JibtwRoV907IdkApg5BB7Q==/lib/arm/libQt5Core_armeabi-v7a.so (QThread::setPriority(QThread::Priority)+146)
        #00  pc 0000000000297f19  /data/app/de-JibtwRoV907IdkApg5BB7Q==/lib/arm/libQt5Core_armeabi-v7a.so (QReadWriteLock::~QReadWriteLock()+8)
        #00  pc 0000000000297ebb  /data/app/de-JibtwRoV907IdkApg5BB7Q==/lib/arm/libQt5Core_armeabi-v7a.so (???)
        at org.qtproject.qt5.android.accessibility.QtNativeAccessibility.descriptionForAccessibleObject (Native method)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.getEventForVirtualViewId (QtAccessibilityDelegate.java:298)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.sendEventForVirtualViewId (QtAccessibilityDelegate.java:269)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.invalidateVirtualViewId (QtAccessibilityDelegate.java:276)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.notifyLocationChange (QtAccessibilityDelegate.java:198)
        at org.qtproject.qt5.android.QtActivityDelegate.notifyAccessibilityLocationChange (QtActivityDelegate.java:901)
        at org.qtproject.qt5.android.QtNative$15.run (QtNative.java:953)
        at android.os.Handler.handleCallback (Handler.java:883)
        at android.os.Handler.dispatchMessage (Handler.java:100)
        at android.os.Looper.loop (Looper.java:214)
        at android.app.ActivityThread.main (ActivityThread.java:7540)
        at java.lang.reflect.Method.invoke (Native method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:980)
      
        #00  pc 000000000005a7d0  /apex/com.android.runtime/lib/bionic/libc.so (syscall+28)
        #00  pc 00000000000e44e5  /apex/com.android.runtime/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+80)
        #00  pc 00000000002a07af  /apex/com.android.runtime/lib/libart.so (art::JNI::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+366)
        #00  pc 000000000003cad7  /data/app/de-JibtwRoV907IdkApg5BB7Q==/lib/arm/libplugins_platforms_qtforandroid_armeabi-v7a.so (???)
        at org.qtproject.qt5.android.accessibility.QtNativeAccessibility.populateNode (Native method)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.getNodeForVirtualViewId (QtAccessibilityDelegate.java:385)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.access$800 (QtAccessibilityDelegate.java:64)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate$1.createAccessibilityNodeInfo (QtAccessibilityDelegate.java:432)
        at android.view.ViewRootImpl.handleWindowContentChangedEvent (ViewRootImpl.java:8375)
        at android.view.ViewRootImpl.requestSendAccessibilityEvent (ViewRootImpl.java:8298)
        at android.view.ViewGroup.requestSendAccessibilityEvent (ViewGroup.java:1077)
        at android.view.ViewGroup.requestSendAccessibilityEvent (ViewGroup.java:1077)
        at android.view.ViewGroup.requestSendAccessibilityEvent (ViewGroup.java:1077)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.sendEventForVirtualViewId (QtAccessibilityDelegate.java:270)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.invalidateVirtualViewId (QtAccessibilityDelegate.java:276)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.notifyLocationChange (QtAccessibilityDelegate.java:198)
        at org.qtproject.qt5.android.QtActivityDelegate.notifyAccessibilityLocationChange (QtActivityDelegate.java:901)
        at org.qtproject.qt5.android.QtNative$15.run (QtNative.java:953)
        at android.os.Handler.handleCallback (Handler.java:883)
        at android.os.Handler.dispatchMessage (Handler.java:100)
        at android.os.Looper.loop (Looper.java:214)
        at android.app.ActivityThread.main (ActivityThread.java:7540)
        at java.lang.reflect.Method.invoke (Native method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:980)
      
        #00  pc 000000000005a7d0  /apex/com.android.runtime/lib/bionic/libc.so (syscall+28)
        #00  pc 00000000000e44e5  /apex/com.android.runtime/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+80)
        #00  pc 000000000028ef09  /apex/com.android.runtime/lib/libart.so (art::JNI::FindClass(_JNIEnv*, char const*)+660)
        #00  pc 000000000003bb49  /data/app/de-JibtwRoV907IdkApg5BB7Q==/lib/arm/libplugins_platforms_qtforandroid_armeabi-v7a.so (???)
        at org.qtproject.qt5.android.accessibility.QtNativeAccessibility.screenRect (Native method)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.getNodeForVirtualViewId (QtAccessibilityDelegate.java:397)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.access$800 (QtAccessibilityDelegate.java:64)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate$1.createAccessibilityNodeInfo (QtAccessibilityDelegate.java:432)
        at android.view.ViewRootImpl.handleWindowContentChangedEvent (ViewRootImpl.java:8375)
        at android.view.ViewRootImpl.requestSendAccessibilityEvent (ViewRootImpl.java:8298)
        at android.view.ViewGroup.requestSendAccessibilityEvent (ViewGroup.java:1077)
        at android.view.ViewGroup.requestSendAccessibilityEvent (ViewGroup.java:1077)
        at android.view.ViewGroup.requestSendAccessibilityEvent (ViewGroup.java:1077)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.sendEventForVirtualViewId (QtAccessibilityDelegate.java:270)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.invalidateVirtualViewId (QtAccessibilityDelegate.java:276)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.notifyLocationChange (QtAccessibilityDelegate.java:198)
        at org.qtproject.qt5.android.QtActivityDelegate.notifyAccessibilityLocationChange (QtActivityDelegate.java:901)
        at org.qtproject.qt5.android.QtNative$15.run (QtNative.java:953)
        at android.os.Handler.handleCallback (Handler.java:883)
        at android.os.Handler.dispatchMessage (Handler.java:100)
        at android.os.Looper.loop (Looper.java:214)
        at android.app.ActivityThread.main (ActivityThread.java:7540)
        at java.lang.reflect.Method.invoke (Native method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:980)
      
        #00  pc 000000000005a7d0  /apex/com.android.runtime/lib/bionic/libc.so (syscall+28)
        #00  pc 00000000000e44e5  /apex/com.android.runtime/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+80)
        #00  pc 0000000000416f01  /apex/com.android.runtime/lib/libart.so (art::GoToRunnable(art::Thread*) (.llvm.12369370306581232504)+324)
        #00  pc 0000000000416d95  /apex/com.android.runtime/lib/libart.so (art::JniMethodEnd(unsigned int, art::Thread*)+8)
        at org.qtproject.qt5.android.accessibility.QtNativeAccessibility.parentId (Native method)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.getNodeForVirtualViewId (QtAccessibilityDelegate.java:394)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.access$800 (QtAccessibilityDelegate.java:64)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate$1.createAccessibilityNodeInfo (QtAccessibilityDelegate.java:432)
        at android.view.ViewRootImpl.handleWindowContentChangedEvent (ViewRootImpl.java:8375)
        at android.view.ViewRootImpl.requestSendAccessibilityEvent (ViewRootImpl.java:8298)
        at android.view.ViewGroup.requestSendAccessibilityEvent (ViewGroup.java:1077)
        at android.view.ViewGroup.requestSendAccessibilityEvent (ViewGroup.java:1077)
        at android.view.ViewGroup.requestSendAccessibilityEvent (ViewGroup.java:1077)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.sendEventForVirtualViewId (QtAccessibilityDelegate.java:270)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.invalidateVirtualViewId (QtAccessibilityDelegate.java:276)
        at org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.notifyLocationChange (QtAccessibilityDelegate.java:198)
        at org.qtproject.qt5.android.QtActivityDelegate.notifyAccessibilityLocationChange (QtActivityDelegate.java:901)
        at org.qtproject.qt5.android.QtNative$15.run (QtNative.java:953)
        at android.os.Handler.handleCallback (Handler.java:883)
        at android.os.Handler.dispatchMessage (Handler.java:100)
        at android.os.Looper.loop (Looper.java:214)
        at android.app.ActivityThread.main (ActivityThread.java:7540)
        at java.lang.reflect.Method.invoke (Native method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:980)
      

      Attachments

        Issue Links

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

          Activity

            People

              qtandroidteam Qt Android Team
              bitspree Steffen Schulze
              Votes:
              15 Vote for this issue
              Watchers:
              28 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: