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. How to stop application from crashing at runtime
Forum Updated to NodeBB v4.3 + New Features

How to stop application from crashing at runtime

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 4 Posters 1.2k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by A Former User
    #1

    Hello, I'm receiving a bunch of error messages upon deploying the program to a mobile device. It was working before but since reinstalling QT, I've started to have this problem

    Using Android QT 6.8.0 Clang arm64-v8a
    Deploying to ARM Android device

    JDK: jdk-21.0.3.9-hotspot
    Android NDK list (same error regardless of NDK):
    25.1.8937393
    26.1.10909125
    27.0.127077973

    Full output from program run to crash:

    I ance_Syllabuse: Late-enabling -Xcheck:jni
    I ance_Syllabuse: Using CollectorTypeCC GC.
    D ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
    D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10051; state: ENABLED
    W ziparchive: Unable to open '/data/app/~~1YgBkKCrpZWB-lXn5t54cw==/org.qtproject.example.appDance_Syllabuses-bPtRRkYpkqkoiS2HXYm5Dw==/base.dm': No such file or directory
    W ziparchive: Unable to open '/data/app/~~1YgBkKCrpZWB-lXn5t54cw==/org.qtproject.example.appDance_Syllabuses-bPtRRkYpkqkoiS2HXYm5Dw==/base.dm': No such file or directory
    D nativeloader: Configuring clns-4 for other apk /data/app/~~1YgBkKCrpZWB-lXn5t54cw==/org.qtproject.example.appDance_Syllabuses-bPtRRkYpkqkoiS2HXYm5Dw==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~1YgBkKCrpZWB-lXn5t54cw==/org.qtproject.example.appDance_Syllabuses-bPtRRkYpkqkoiS2HXYm5Dw==/lib/arm64:/data/app/~~1YgBkKCrpZWB-lXn5t54cw==/org.qtproject.example.appDance_Syllabuses-bPtRRkYpkqkoiS2HXYm5Dw==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/org.qtproject.example.appDance_Syllabuses
    V GraphicsEnvironment: ANGLE Developer option for 'org.qtproject.example.appDance_Syllabuses' set to: 'default'
    V GraphicsEnvironment: Neither updatable production driver nor prerelease driver is supported.
    D NetworkSecurityConfig: No Network Security Config specified, using platform default
    D NetworkSecurityConfig: No Network Security Config specified, using platform default
    W ziparchive: Unable to open '/data/app/~~1YgBkKCrpZWB-lXn5t54cw==/org.qtproject.example.appDance_Syllabuses-bPtRRkYpkqkoiS2HXYm5Dw==/base.dm': No such file or directory
    W ziparchive: Unable to open '/data/app/~~1YgBkKCrpZWB-lXn5t54cw==/org.qtproject.example.appDance_Syllabuses-bPtRRkYpkqkoiS2HXYm5Dw==/base.dm': No such file or directory
    D QtLoader: Could not instantiate class org.qtproject.qt.android.multimedia.QtAudioDeviceManager, java.lang.IllegalAccessException: java.lang.Class<org.qtproject.qt.android.multimedia.QtAudioDeviceManager> is not accessible from java.lang.Class<org.qtproject.qt.android.QtLoader>
    D QtLoader: Could not instantiate class org.qtproject.qt.android.multimedia.QtMultimediaUtils, java.lang.IllegalAccessException: java.lang.Class<org.qtproject.qt.android.multimedia.QtMultimediaUtils> is not accessible from java.lang.Class<org.qtproject.qt.android.QtLoader>
    I QtLoader: Sleeping for 3000ms, helping the native debugger to settle. Use the env QT_ANDROID_DEBUGGER_MAIN_THREAD_SLEEP_MS variable to change this value.
    I QtCore  : Start
    W qt.multimedia.symbolsresolver: : Couldn't load ssl library
    W qt.multimedia.symbolsresolver: : Couldn't resolve ssl symbols
    E AndroidRuntime: FATAL EXCEPTION: qtMainLoopThread
    E AndroidRuntime: Process: org.qtproject.example.appDance_Syllabuses, PID: 20698
    E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot find "_parse_sequence_header" from verneed[0] in DT_NEEDED list for "/data/app/~~1YgBkKCrpZWB-lXn5t54cw==/org.qtproject.example.appDance_Syllabuses-bPtRRkYpkqkoiS2HXYm5Dw==/lib/arm64/libavformat.so"
    E AndroidRuntime: 	at java.lang.Runtime.load0(Runtime.java:933)
    E AndroidRuntime: 	at java.lang.System.load(System.java:1625)
    E AndroidRuntime: 	at org.qtproject.qt.android.QtLoader.loadLibraryHelper(QtLoader.java:476)
    E AndroidRuntime: 	at org.qtproject.qt.android.QtLoader.lambda$loadLibraries$1$org-qtproject-qt-android-QtLoader(QtLoader.java:549)
    E AndroidRuntime: 	at org.qtproject.qt.android.QtLoader$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
    E AndroidRuntime: 	at org.qtproject.qt.android.QtThread.lambda$run$0(QtThread.java:57)
    E AndroidRuntime: 	at org.qtproject.qt.android.QtThread$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
    E AndroidRuntime: 	at org.qtproject.qt.android.QtThread$1.run(QtThread.java:25)
    E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:1012)
    
    1 Reply Last reply
    0
    • Felix van de DonkF Felix van de Donk

      So what did you do to solve it?

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #7

      @Felix-van-de-Donk said in How to stop application from crashing at runtime:

      So what did you do to solve it?

      Removed QT beta version (6.8.0-beta 3)
      Removed old kits
      Removed Android Emulator
      Removed Android SDKs I installed as I'll be deploying to Android device from now (Emulator is too unreliable)

      Installed QT stable version (6.7.2)
      Ignored red crybaby messages from

      • W ziparchive
      • W qt.multimedia
      • W Qt A11Y
      • W libEGL
      • W QtAudioDeviceManager
      • E BufferQueueProducer
        Since I'm not sure how to stop them from appearing and everything seems to be working how it should
      1 Reply Last reply
      0
      • Axel SpoerlA Offline
        Axel SpoerlA Offline
        Axel Spoerl
        Moderators
        wrote on last edited by
        #2

        Looks like you are installing an older binary with a newer host build. Probably something on the host also changed, because no ssl certificates are found.

        Software Engineer
        The Qt Company, Oslo

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by A Former User
          #3

          Perhaps it's also to do with the installation of MSVC 2022 ARM64
          Receiving some errors during installation

          Error during installation process (qt.qt6.680.win64_msvc2022_arm64): Could not find the required QmakeOutputInstallerKey(qt.qt6.680.win64_msvc2022_arm64_qmakeoutput) value on the installer object. The ConsumeOutput operation on the valid qmake needs to be called first.
          
          
          Error during installation process (qt.qt6.680.addons.qtgraphs.win64_msvc2022_arm64): Could not find the required QmakeOutputInstallerKey(qt.qt6.680.win64_msvc2022_arm64_qmakeoutput) value on the installer object. The ConsumeOutput operation on the valid qmake needs to be called first.
          
          1 Reply Last reply
          0
          • M Offline
            M Offline
            mvuori
            wrote on last edited by
            #4

            You are using an unreleased Qt version that is still in beta testing, so bugs and problems are expected.

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by A Former User
              #5

              Yeah, I'll downgrade down to the stable version (like install the Qt 6.7.2 version and uninstall the Qt 6.8.0-beta 2 version. Since perhaps the problem I'm facing is to do with that or at least with how it installed. Removed all old kits)

              Update:
              Yeah, the program is running now at least. The only red messages I'm still seeing in the output are

              W ziparchive: Unable to open '/data/app/~~TPLys828LGV77Cfb-pcCIg==/org.qtproject.example.appDance_Syllabuses-drSHIPi0qo6T3gUlB53ucg==/base.dm': No such file or directory
              
              W qt.multimedia.symbolsresolver: : Couldn't load ssl library
              W qt.multimedia.symbolsresolver: : Couldn't resolve ssl symbols
              
              W Qt A11Y : Could not (yet) activate platform accessibility.
              
              E BufferQueueProducer: [SurfaceView[org.qtproject.example.appDance_Syllabuses/org.qtproject.qt.android.bindings.QtActivity]#1(BLAST Consumer)1](id:1e8400000001,api:0,p:-1,c:7812) disconnect: not connected (req=1)
              W libEGL  : EGLNativeWindowType 0xb4000072864ef7d0 disconnect failed
              W Qt A11Y : AccessibilityEvent with empty description
              W Qt A11Y : AccessibilityNodeInfo with empty contentDescription: -2147483644
              
              E AudioSystem: invalid attributes { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_UNKNOWN Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  } when converting to stream
              

              Not sure if there's something I should be doing to make them disappear seems like it's primarily related to QT Multimedia
              I mean at least the thing runs

              1 Reply Last reply
              0
              • Felix van de DonkF Offline
                Felix van de DonkF Offline
                Felix van de Donk
                wrote on last edited by
                #6

                So what did you do to solve it?

                ? 1 Reply Last reply
                0
                • Felix van de DonkF Felix van de Donk

                  So what did you do to solve it?

                  ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #7

                  @Felix-van-de-Donk said in How to stop application from crashing at runtime:

                  So what did you do to solve it?

                  Removed QT beta version (6.8.0-beta 3)
                  Removed old kits
                  Removed Android Emulator
                  Removed Android SDKs I installed as I'll be deploying to Android device from now (Emulator is too unreliable)

                  Installed QT stable version (6.7.2)
                  Ignored red crybaby messages from

                  • W ziparchive
                  • W qt.multimedia
                  • W Qt A11Y
                  • W libEGL
                  • W QtAudioDeviceManager
                  • E BufferQueueProducer
                    Since I'm not sure how to stop them from appearing and everything seems to be working how it should
                  1 Reply Last reply
                  0
                  • System has marked this topic as solved on

                  • Login

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