QT 5.15.2 app crashes on Android 5.1

My QT 5.15.2 app crashes on Android 5.1 with the following call stack:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Android/sdk_google_phone_x86_64/generic_x86_64:5.1.1/LMY48X/6402608:userdebug/test-keys'
Revision: '0'
ABI: 'x86_64'
pid: 3954, tid: 3998, name: qtMainLoopThrea  >>> net.geographx.LinesGame <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'art/runtime/mirror/art_method.cc:356] Check failed: !IsFastNative() int java.lang.Character.digitImpl!(int, int)'
    rax 0000000000000000  rbx 0000000000000f9e  rcx ffffffffffffffff  rdx 0000000000000006
    rsi 0000000000000f9e  rdi 0000000000000f72
    r8  0000000000000022  r9  0000000000000002  r10 0000000000000008  r11 0000000000000206
    r12 000000000000000b  r13 0000000000000006  r14 00007f747b51a000  r15 0000000000000051
    cs  0000000000000033  ss  000000000000002b
    rip 00007f7488099e37  rbp 00007f7467007b70  rsp 00007f74670063e8  eflags 0000000000000206
backtrace:
    #00 pc 0000000000076e37  /system/lib64/libc.so (tgkill+7)
    #01 pc 0000000000028b0f  /system/lib64/libc.so (pthread_kill+143)
    #02 pc 0000000000029de1  /system/lib64/libc.so (raise+17)
    #03 pc 000000000002356d  /system/lib64/libc.so (abort+61)
    #04 pc 000000000034f34a  /system/lib64/libart.so (art::Runtime::Abort()+250)
    #05 pc 00000000000fce7c  /system/lib64/libart.so (art::LogMessage::~LogMessage()+1852)
    #06 pc 00000000002ee856  /system/lib64/libart.so (art::mirror::ArtMethod::RegisterNative(art::Thread*, void const*, bool)+358)
    #07 pc 00000000002d68bf  /system/lib64/libart.so (art::JNI::RegisterNativeMethods(_JNIEnv*, _jclass*, JNINativeMethod const*, int, bool)+607)
    #08 pc 000000000011881c  /system/lib64/libart.so (art::CheckJNI::RegisterNatives(_JNIEnv*, _jclass*, JNINativeMethod const*, int)+108)
    #09 pc 0000000000002331  /system/lib64/libnativehelper.so (jniRegisterNativeMethods+97)
    #10 pc 000000000001b124  /system/lib64/libjavacore.so (JNI_OnLoad+100)
    #11 pc 00000000001f60f0  /data/app/net.geographx.LinesGame-1/lib/x86_64/libQt5Core_x86_64.so
    #12 pc 00000000001f3115  /data/app/net.geographx.LinesGame-1/lib/x86_64/libQt5Core_x86_64.so
    #13 pc 00000000001f3009  /data/app/net.geographx.LinesGame-1/lib/x86_64/libQt5Core_x86_64.so
    #14 pc 00000000001f2f31  /data/app/net.geographx.LinesGame-1/lib/x86_64/libQt5Core_x86_64.so
    #15 pc 00000000001f0aa7  /data/app/net.geographx.LinesGame-1/lib/x86_64/libQt5Core_x86_64.so (QFactoryLoader::instance(int) const+103)
    #16 pc 0000000000137e68  /data/app/net.geographx.LinesGame-1/lib/x86_64/libQt5Gui_x86_64.so
    #17 pc 0000000000137a9f  /data/app/net.geographx.LinesGame-1/lib/x86_64/libQt5Gui_x86_64.so (QPlatformIntegrationFactory::create(QString const&, QStringList const&, int&, char**, QString const&)+107)
    #18 pc 000000000013f3cc  /data/app/net.geographx.LinesGame-1/lib/x86_64/libQt5Gui_x86_64.so (QGuiApplicationPrivate::createPlatformIntegration()+2078)
    #19 pc 000000000013faf6  /data/app/net.geographx.LinesGame-1/lib/x86_64/libQt5Gui_x86_64.so (QGuiApplicationPrivate::createEventDispatcher()+26)
    #20 pc 00000000001f9a82  /data/app/net.geographx.LinesGame-1/lib/x86_64/libQt5Core_x86_64.so (QCoreApplicationPrivate::init()+542)
    #21 pc 000000000013cb23  /data/app/net.geographx.LinesGame-1/lib/x86_64/libQt5Gui_x86_64.so (QGuiApplicationPrivate::init()+41)
    #22 pc 000000000013cadd  /data/app/net.geographx.LinesGame-1/lib/x86_64/libQt5Gui_x86_64.so (QGuiApplication::QGuiApplication(int&, char**, int)+83)
    #23 pc 000000000009cb86  /data/app/net.geographx.LinesGame-1/lib/x86_64/libLinesGameQt_x86_64.so (main+118)
    #24 pc 0000000000033ca2  /data/app/net.geographx.LinesGame-1/lib/x86_64/libplugins_platforms_qtforandroid_x86_64.so
    #25 pc 00000000002f21e9  /data/dalvik-cache/x86_64/data@app@net.geographx.LinesGame-1@base.apk@classes.dex

There is a QT bug that is probably fixed in QT 5.15.3, but it is available only for commercial license holders.

Links:

Leave a Reply

Your email address will not be published. Required fields are marked *