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

Potential crash when calling QInputDialogue::getText()

    XMLWordPrintable

Details

    • Android
    • 33ef9330f (dev), 07807794f (6.8)
    • 2024wk44s3FOQtforAndroid, 2024wk46s3FOQtforAndroid

    Description

      I am using qt6.7.1 for Android.
      When the app is being built and running.
      When I use QInputDialogue::getText().
      The app sometimes crashes!
      Error content:

      E libEGL : eglGetCurrentDisplayImpl: EGLContext is nullptr.
      ...
      E AndroidRuntime: FATAL EXCEPTION: main
      E AndroidRuntime: Process: org.qtproject.jld_mes2024, PID: 28892
      E AndroidRuntime: java.lang.NullPointerException: Attempt to write to field 'boolean org.qtproject.qt.android.QtEditText.m_optionsChanged' on a null object reference in method 'void org.qtproject.qt.android.QtInputDelegate.lambda$resetSoftwareKeyboard$0$org-qtproject-qt-android-QtInputDelegate()'
      E AndroidRuntime: at org.qtproject.qt.android.QtInputDelegate.lambda$resetSoftwareKeyboard$0$org-qtproject-qt-android-QtInputDelegate(QtInputDelegate.java:167)
      E AndroidRuntime: at org.qtproject.qt.android.QtInputDelegate$$ExternalSyntheticLambda4.run(Unknown Source:2)
      E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:942)
      E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
      E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:223)
      E AndroidRuntime: at android.os.Looper.loop(Looper.java:324)
      E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8680)
      E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
      E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:582)
      E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1061)

      ...
      I can only solve it by recompiling Qt6Android.jar,Repair process(Look at the two pictures):

       

      Attachments

        Issue Links

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

          Activity

            People

              assam Assam Boudjelthia
              vcplay wencheng wei
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes