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

Android: Stack overflow when hovering widgets with Galaxy Note SPen

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • 5.3.2
    • 5.2.0, 5.3.0 Beta1
    • QPA
    • Android 4.3 on Samsung Galaxy Note 3,
      Android 4.2.2 on Samsung Galaxy Note 8.0 (GT-N5110)
      Android 4.3 on Samsung Galaxy Note 10.0 (GT-N8010)
    • Android
    • 50cf698b76bd140a4ada4058f9abbee837289a75

    Description

      In a widget-based app, hovering with the pen over the screen created a lot of stack overflows. The reason was that in src/android/jar/src/org/qtproject/qt5/android/QtSurface.java, dispatchHoverEvent() is called when hovering, and in this method the first method invocation on the m_accessibilityDelegate returned false. The second method invocation there then happened on dispatchHoverEvent() of the same object, leading to endless recursion. I don't know what this is supposed to do, but as a temporary fix, the three lines doing the endless recursion can be commented out:

      //                SurfaceView view = (SurfaceView) this;
      //                Method dispHoverView = view.getClass().getMethod("dispatchHoverEvent", MotionEvent.class);
      //                return (Boolean) dispHoverView.invoke(view, event);
      

      The pen seems to work fine in the "Qt5 Everywhere" app I downloaded from the Google Play, so it seems to be widget-related.

      (Second issue from original report moved to QTBUG-38379.)

      Attachments

        Issue Links

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

          Activity

            People

              stromme Christian
              puzzlepaint Thomas Schöps
              Votes:
              4 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes