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

Android Embedded QML View: App crashes when selecting text

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.7.1, 6.8.0 FF
    • 6.7, 6.8
    • QPA: Android
    • None
    • Android
    • a87764789 (dev), d77e09920 (6.7)
    • 2024wk12FOQtforAndroid, 2024wk16FOQtforAndroid

    Description

      If you embed a QML view with a TextField into an Android application, add text to the textfield and then select the text via long press, the entire app crashes.

       

      Steps

      1. Start app
      2. Add text
      3. Select text
      4. io.qt.example.embeddingandroidapp    E  FATAL EXCEPTION: main
                                                Process: io.qt.example.embeddingandroidapp:MainActivity, PID: 3415
                                                java.lang.NullPointerException: Attempt to invoke virtual method 'void org.qtproject.qt.android.EditPopupMenu.setPosition(int, int, int, org.qtproject.qt.android.CursorHandle, org.qtproject.qt.android.CursorHandle, org.qtproject.qt.android.CursorHandle)' on a null object reference
                                                    at org.qtproject.qt.android.QtInputDelegate.updateHandleImpl(QtInputDelegate.java:410)
                                                    at org.qtproject.qt.android.QtInputDelegate.lambda$updateHandles$6$org-qtproject-qt-android-QtInputDelegate(QtInputDelegate.java:346)
                                                    at org.qtproject.qt.android.QtInputDelegate$$ExternalSyntheticLambda6.run(Unknown Source:24)
                                                    at android.os.Handler.handleCallback(Handler.java:942)
                                                    at android.os.Handler.dispatchMessage(Handler.java:99)
                                                    at android.os.Looper.loopOnce(Looper.java:201)
                                                    at android.os.Looper.loop(Looper.java:288)
                                                    at android.app.ActivityThread.main(ActivityThread.java:7872)
                                                    at java.lang.reflect.Method.invoke(Native Method)
                                                    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
                                                    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

      Attachments

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

        Activity

          People

            ahmedelkhazari Ahmed El Khazari
            pevirkku Petri Virkkunen
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes