Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt based android application is crashing during startup on one specific device. "dlopen failed: libqtforandroid"

My application is crashing during startup only on one specific device: Huawei Tablet AGS2-W09. Qt 5.12.3.

I have a logcat dump from device:

07-01 10:53:09.327  6135  6156 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: file offset for the library "/data/data/pl.domain.appname/qt-reserved-files/plugins/platforms/android/libqtforandroid.so" >= file size: 0 >= 0
07-01 10:53:09.327  6135  6156 E AndroidRuntime:    at java.lang.Runtime.load0(Runtime.java:928)
07-01 10:53:09.327  6135  6156 E AndroidRuntime:    at java.lang.System.load(System.java:1624)
07-01 10:53:09.327  6135  6156 E AndroidRuntime:    at org.qtproject.qt5.android.QtNative$2.run(QtNative.java:183)
07-01 10:53:09.327  6135  6156 E AndroidRuntime:    at org.qtproject.qt5.android.QtThread$2.run(QtThread.java:87)
07-01 10:53:09.327  6135  6156 E AndroidRuntime:    at org.qtproject.qt5.android.QtThread$1.run(QtThread.java:61)
07-01 10:53:09.327  6135  6156 E AndroidRuntime:    at java.lang.Thread.run(Thread.java:784)
07-01 10:53:09.330  1184  1922 W ActivityManager:   Force finishing activity pl.domain.appname/.AppActivity

What could I do next to find the problem?

like image 677
Rajju Avatar asked Dec 06 '25 08:12

Rajju


1 Answers

Problem solved. If you are running into similar problem, it's because you are trying to run 32bit application on 64 bit device. Qt is not yet supporting AAB, so you need to compile 32 bit (armeabi v7a), and 64 bit (armeabi v8a) separately.

like image 177
Rajju Avatar answered Dec 07 '25 21:12

Rajju



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!