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

Qt Notifier app is crashing immediately after being launched for the first time after deployment

    XMLWordPrintable

Details

    • Android
    • ff6a6d328 (dev), 8c5ea5b36 (6.7)
    • 2024wk06FOQtforAndroid

    Description

      MacOS 14.2.1

      Qt Creator 12.0.1

       

      Devices: Samsung Galaxy S22 13.0, Pixel 3a 12.0

      Steps to reproduce:

      1. Open Qt Notifier example - https://doc.qt.io/qt-6/qtcore-platform-androidnotifier-example.html 
      2. Lunch the app on an Android device (A12 or A13)

      Expected: The app should be launched.

      Actual: The app crashes immediately after launch. When I tried again to launch the app - it worked, but it happened again after clearing the app's data/cache from the app info. 

      Reproducibility:  100%

      NOTE: It's not reproducible with Qt 6.6.1 - the app build with this version works well and is launched without any crash. 

      E AndroidRuntime: FATAL EXCEPTION: main
      E AndroidRuntime: Process: org.qtproject.example.androidnotifier, PID: 14170
      E AndroidRuntime: java.lang.UnsatisfiedLinkError: No implementation found for int[] org.qtproject.qt.android.ExtractStyle.extractNativeChunkInfo20(long) (tried Java_org_qtproject_qt_android_ExtractStyle_extractNativeChunkInfo20 and Java_org_qtproject_qt_android_ExtractStyle_extractNativeChunkInfo20__J) - is the library loaded, e.g. System.loadLibrary?
      E AndroidRuntime:     at org.qtproject.qt.android.ExtractStyle.extractNativeChunkInfo20(Native Method)
      E AndroidRuntime:     at org.qtproject.qt.android.ExtractStyle.findPatchesMarings(ExtractStyle.java:590)
      E AndroidRuntime:     at org.qtproject.qt.android.ExtractStyle.getDrawable(ExtractStyle.java:900)
      E AndroidRuntime:     at org.qtproject.qt.android.ExtractStyle.getStateListDrawable(ExtractStyle.java:454)
      E AndroidRuntime:     at org.qtproject.qt.android.ExtractStyle.getAnimatedStateListDrawable(ExtractStyle.java:646)
      E AndroidRuntime:     at org.qtproject.qt.android.ExtractStyle.getDrawable(ExtractStyle.java:805)
      E AndroidRuntime:     at org.qtproject.qt.android.ExtractStyle.extractSwitch(ExtractStyle.java:1528)
      E AndroidRuntime:     at org.qtproject.qt.android.ExtractStyle.<init>(ExtractStyle.java:233)
      E AndroidRuntime:     at org.qtproject.qt.android.ExtractStyle.runIfNeeded(ExtractStyle.java:191)
      E AndroidRuntime:     at org.qtproject.qt.android.ExtractStyle.setup(ExtractStyle.java:181)
      E AndroidRuntime:     at org.qtproject.qt.android.QtActivityLoader.setupStyleExtraction(QtActivityLoader.java:106)
      E AndroidRuntime:     at org.qtproject.qt.android.QtActivityLoader.extractContextMetaData(QtActivityLoader.java:118)
      E AndroidRuntime:     at org.qtproject.qt.android.QtActivityLoader.<init>(QtActivityLoader.java:32)
      E AndroidRuntime:     at org.qtproject.qt.android.QtActivityBase.onCreate(QtActivityBase.java:102)
      E AndroidRuntime:     at org.qtproject.qt.android.bindings.QtActivity.onCreate(QtActivity.java:16)
      E AndroidRuntime:     at android.app.Activity.performCreate(Activity.java:8054)
      E AndroidRuntime:     at android.app.Activity.performCreate(Activity.java:8034)
      E AndroidRuntime:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1341)
      E AndroidRuntime:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3688)
      E AndroidRuntime:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3864)
      E AndroidRuntime:     at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
      E AndroidRuntime:     at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
      E AndroidRuntime:     at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
      E AndroidRuntime:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2253)
      E AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:106)
      E AndroidRuntime:     at android.os.Looper.loopOnce(Looper.java:201)
      E AndroidRuntime:     at android.os.Looper.loop(Looper.java:288)
      E AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:7870)
      E AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)
      E AndroidRuntime:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
      E AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) 

       

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-121667
          # Subject Branch Project Status CR V

          Activity

            People

              assam Assam Boudjelthia
              lkos Łukasz Kosiorowski
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes