How to stop application from crashing at runtime
-
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 deviceJDK: jdk-21.0.3.9-hotspot
Android NDK list (same error regardless of NDK):
25.1.8937393
26.1.10909125
27.0.127077973Full 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)
-
@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
-
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.
-
Perhaps it's also to do with the installation of MSVC 2022 ARM64
Receiving some errors during installationError 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.
-
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 areW 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 -
So what did you do to solve it?
-
@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
-