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

Android: QWindgetAction-Based Custom Context Menu Broken in 5.2RC

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • 5.3.0 Beta1, 5.3.0 RC1
    • 5.2.0 Beta1
    • QPA
    • None
    • Snapshot:
      qt-linux-opensource-5.2.0-rc1-android-x86-offline_2013-11-22_00-39-33-167.run

      Plugins: raster

      Nexus-7-2, 2013, Android-4.3.
      Build for API-18 without QML-debugging
    • Android

    Description

      5.2-beta1 had an issue only with positioning of QWindgetAction-Based Custom Context Menu: (QTBUG-33588) Android: Context Menu Not Functioning.

      5.2-rc1 adds more issues.

      1. Start the application attached;
      2. Write some words across the area;
      3. Touch the words.

      Expected: context menu appears right-down the touched words (in-context) with a list of suggested word and the size of the context menu wraps-around the suggested words;

      Observed: context menu appears in the mid of the device screen,
      the suggested words are not seen (text labels of push-buttons)
      and the menu size is pre-defined and not defined by the width of the suggested words.

      Yet another issue appeared when the example was
      built with
      QT += opengl

      The QTextEdit area appeared as not editable (failed to set cursor
      and write there) with errors as below:

      W/Qt (17960): kernel/qcoreapplication.cpp:416 (QCoreApplicationPrivate::QCoreApplicationPrivate(int&, char**, uint)): WARNING: QApplication was not created in the main() thread.
      W/dalvikvm(17960): dvmFindClassByName rejecting 'org/qtproject/qt5/android/QtNativeInputConnection'
      W/dalvikvm(17960): dvmFindClassByName rejecting 'org/qtproject/qt5/android/QtExtractedText'
      D/libEGL (17960): loaded /system/lib/egl/libEGL_adreno200.so
      D/libEGL (17960): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
      D/libEGL (17960): loaded /system/lib/egl/libGLESv2_adreno200.so
      D/dalvikvm(17960): GC_CONCURRENT freed 256K, 4% free 9047K/9340K, paused 4ms+32ms, total 87ms
      I/Adreno200-EGL(17960): <qeglDrvAPI_eglInitialize:265>: EGL 1.4 QUALCOMM Build: Iabe52cfaeae4c5fab1acacfe6f056ba15fa93274
      W/IInputConnectionWrapper(17960): getTextBeforeCursor on inactive InputConnection
      W/dalvikvm(17960): Stack overflow on call to interp (req=76 top=0x6d47f000 cur=0x6d479334 size=24576 Ljava/lang/reflect/Method;.<init>)
      I/dalvikvm(17960): threadid=1: stack overflow on call to Ljava/lang/reflect/Method;.<init>:VLLLLLI
      I/dalvikvm(17960): method requires 32+20+4=56 bytes, fp is 0x6d479320 (32 left)
      I/dalvikvm(17960): expanding stack end (0x6d479300 to 0x6d479000)
      D/dalvikvm(17960): Method class init threw exception
      I/dalvikvm(17960): Shrank stack (to 0x6d479300, curFrame is 0x6d479400)
      W/Qt A11y (17960): EXCEPTION in dispatchHoverEvent for Accessibility: java.lang.reflect.InvocationTargetException
      I/dalvikvm(17960): threadid=1: stack overflow on call to Ljava/lang/reflect/AccessibleObject;.<init>:V
      I/dalvikvm(17960): method requires 8+20+4=32 bytes, fp is 0x6d479310 (16 left)
      I/dalvikvm(17960): expanding stack end (0x6d479300 to 0x6d479000)
      I/dalvikvm(17960): Shrank stack (to 0x6d479300, curFrame is 0x6d479324)
      D/dalvikvm(17960): Method class init threw exception
      W/Qt A11y (17960): EXCEPTION in dispatchHoverEvent for Accessibility: java.lang.reflect.InvocationTargetException
      I/dalvikvm(17960): threadid=1: stack overflow on call to Ljava/lang/reflect/AccessibleObject;.<init>:V
      I/dalvikvm(17960): method requires 8+20+4=32 bytes, fp is 0x6d479310 (16 left)
      I/dalvikvm(17960): expanding stack end (0x6d479300 to 0x6d479000)
      I/dalvikvm(17960): Shrank stack (to 0x6d479300, curFrame is 0x6d479324)
      D/dalvikvm(17960): Method class init threw exception
      W/Qt A11y (17960): EXCEPTION in dispatchHoverEvent for Accessibility: java.lang.reflect.InvocationTargetException
      D/dalvikvm(17960): GC_CONCURRENT freed 428K, 5% free 9052K/9520K, paused 2ms+1ms, total 17ms

      Attachments

        1. cm-action.cpp
          2 kB
        2. cm-action.h
          0.6 kB
        3. ctxcustommenu.pro
          0.4 kB
        4. main.cpp
          2 kB
        5. mainwindow.cpp
          4 kB
        6. mainwindow.h
          1 kB

        Issue Links

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

          Activity

            People

              taipan BogDan Vatra
              coroberti Robert Iakobashvili
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes