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

JNI error when closing an Android application

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.7.0 FF
    • 6.7
    • QPA: Android
    • None
    • Android
    • 2023wk42FOQtforAndroid

    Description

      Steps to reproduce: 

      1. In Qt Creator, select Dynamic Layouts Example (or any other example that you can easily close)

      2. Build and Run the application on an Android emulator, I used Pixel 3a

      3. Press the Close button on the application

      Result:
      ...
      F .dynamiclayouts: runtime.cc:691]   native: #45 pc 000cd10a  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start+58) (BuildId: fdd97bce94d2a5e6408dc0732250fe4c)
      F .dynamiclayouts: runtime.cc:691]   native: #46 pc 00062dd8  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+56) (BuildId: fdd97bce94d2a5e6408dc0732250fe4c)
      F .dynamiclayouts: runtime.cc:691]   at org.qtproject.qt.android.QtNative.startQtApplication(Native method)
      F .dynamiclayouts: runtime.cc:691]   at org.qtproject.qt.android.QtNative$7.run(QtNative.java:465)
      F .dynamiclayouts: runtime.cc:691]   at org.qtproject.qt.android.QtThread$1.run(QtThread.java:25)
      F .dynamiclayouts: runtime.cc:691]   at java.lang.Thread.run(Thread.java:1012)
      F .dynamiclayouts: runtime.cc:691]
      F .dynamiclayouts: runtime.cc:699] JNI DETECTED ERROR IN APPLICATION: JNI ERROR (app bug): jobject is an invalid global reference: 0x2c66 (deleted reference at index 355)
      F .dynamiclayouts: runtime.cc:699]     in call to DeleteGlobalRef
      F .dynamiclayouts: runtime.cc:699]     from void org.qtproject.qt.android.QtNative.startQtApplication()
      16:54:52: 

      "org.qtproject.example.dynamiclayouts" died.

      Attachments

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

        Activity

          People

            qtandroidteam Qt Android Team
            jannej Janne Juntunen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes