Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. The latest version of QT6 has a bug
Forum Updated to NodeBB v4.3 + New Features

The latest version of QT6 has a bug

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 364 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vcplay
    wrote on last edited by
    #1

    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):
    0a70017a-14bf-4128-af5c-45c69833fa36-5ea0dd7f1f91b6bf729e8b57c07c5fa.png
    67f10815-4269-4107-8ade-6e79be4dd885-cb2fcfa19e8d6bdda69b555e8cdd31c.png

    1 Reply Last reply
    0
    • aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @vcplay: Bugreports need to go to https://bugreports.qt.io with a minimal reproducer example. Please also search if such an report already exists (and please leave a link to the report here so others can follow.)
      This is a user forum and not monitored by the developers.

      Qt has to stay free or it will die.

      1 Reply Last reply
      1
      • V Offline
        V Offline
        vcplay
        wrote on last edited by
        #3

        ok,thanks.

        1 Reply Last reply
        0
        • Axel SpoerlA Offline
          Axel SpoerlA Offline
          Axel Spoerl
          Moderators
          wrote on last edited by
          #4

          Before you file a bug report: Can you boil this down to a simple reproducer?
          I am asking, because I can't help the feeling that the issue is caused by the application. The crash happens, when the input connection dies, before the delayed restart is executed. That shouldn't be the case under normal circumstances.

          => Is there a Qt version where this didn't happen?
          Even if there is, a small change in event processing can uncover this issue.

          Software Engineer
          The Qt Company, Oslo

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved