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

Android: Accessibility causes lots of error output on startup on devices that have API level < 16.

    XMLWordPrintable

Details

    • Android
    • 2c11a492fb067cf00ae298a6e2c8af4f10d21e18

    Description

      The accessibility code in Qt is calling functions such as "Landroid/view/accessibility/AccessibilityEvent;.setSource (Landroid/view/View;I)V" aka android.view.accessibility.AccessibilityEvent.setSource(View, int) which is documented as an API level 16 function:

      http://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setSource(android.view.View, int)

      However, this code is still loaded on devices that are e.g. API level 15, such as the Huawei Ascend D1 quad XL.

      This causes the following start-up output:

      W/dalvikvm(12259): VFY: unable to resolve new-instance 194 (Lorg/qtproject/qt5/android/accessibility/QtAccessibilityDelegate$1;) in Lorg/qtproject/qt5/android/accessibility/QtAccessibilityDelegate;
      D/dalvikvm(12259): VFY: replacing opcode 0x22 at 0x000e
      I/dalvikvm(12259): Could not find method android.view.accessibility.AccessibilityEvent.setSource, referenced from method org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.getEventForVirtualViewId
      W/dalvikvm(12259): VFY: unable to resolve virtual method 264: Landroid/view/accessibility/AccessibilityEvent;.setSource (Landroid/view/View;I)V
      D/dalvikvm(12259): VFY: replacing opcode 0x6e at 0x0059
      I/dalvikvm(12259): Could not find method android.view.accessibility.AccessibilityNodeInfo.isVisibleToUser, referenced from method org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.getNodeForView
      W/dalvikvm(12259): VFY: unable to resolve virtual method 275: Landroid/view/accessibility/AccessibilityNodeInfo;.isVisibleToUser ()Z
      D/dalvikvm(12259): VFY: replacing opcode 0x6e at 0x004a
      I/dalvikvm(12259): Could not find method android.view.accessibility.AccessibilityNodeInfo.setSource, referenced from method org.qtproject.qt5.android.accessibility.QtAccessibilityDelegate.getNodeForVirtualViewId
      W/dalvikvm(12259): VFY: unable to resolve virtual method 285: Landroid/view/accessibility/AccessibilityNodeInfo;.setSource (Landroid/view/View;I)V
      D/dalvikvm(12259): VFY: replacing opcode 0x6e at 0x0035
      W/dalvikvm(12259): VFY: unable to find class referenced in signature (Landroid/view/accessibility/AccessibilityNodeProvider;)
      W/dalvikvm(12259): Unable to resolve superclass of Lorg/qtproject/qt5/android/accessibility/QtAccessibilityDelegate$1; (94)
      W/dalvikvm(12259): Link of class 'Lorg/qtproject/qt5/android/accessibility/QtAccessibilityDelegate$1;' failed
      D/dalvikvm(12259): DexOpt: unable to opt direct call 0x02a1 at 0x10 in Lorg/qtproject/qt5/android/accessibility/QtAccessibilityDelegate;.<init>
      W/Qt A11y (12259): Unknown exception: java.lang.reflect.InvocationTargetException
      W/Qt A11y (12259): Unknown exception: java.lang.reflect.InvocationTargetException
      D/libEGL  (12259): loaded /system/lib/egl/libEGL_VIVANTE.so
      D/libEGL  (12259): loaded /system/lib/egl/libGLESv1_CM_VIVANTE.so
      D/libEGL  (12259): loaded /system/lib/egl/libGLESv2_VIVANTE.so
      W/dalvikvm(12259): dvmFindClassByName rejecting 'org/qtproject/qt5/android/QtNativeInputConnection'
      W/dalvikvm(12259): dvmFindClassByName rejecting 'org/qtproject/qt5/android/QtExtractedText'
      F/libc    (12259): Fatal signal 11 (SIGSEGV) at 0x00000008 (code=1)
      

      Attachments

        Issue Links

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

          Activity

            People

              frederik Frederik Gladhorn
              esabraha Eskil Abrahamsen Blomfeldt
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes