WIN DEATH on Android 4.2.2 phone



  • I have an application that works well on Android 5.1.1 and Android 7 (I only have these 2 phones to test) however it strangely "disappears" on Android 4.2.2 after splash screen.

    I'm using Qt 5.9.2 with NDK r10e (tried both android-18 and android-19 platforms) with SDK version 17 and/or 26 but still the same results.

    Basically the application starts up, my splash screen appears then suddenly the whole app closes. Here is the log I see from logcat

    W/ActivityThread(11715): Application org.myappname can be debugged on port 8100...
    D/dalvikvm(11715): Trying to load lib /data/data/org.myappname/lib/libgnustl_shared.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/data/org.myappname/lib/libgnustl_shared.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/data/org.myappname/lib/libgnustl_shared.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/data/org.myappname/lib/libQt5Core.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/data/org.myappname/lib/libQt5Core.so 0x4231bf70
    I/QtCore  (11715): Start
    D/dalvikvm(11715): Trying to load lib /data/data/org.myappname/lib/libQt5Gui.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/data/org.myappname/lib/libQt5Gui.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/data/org.myappname/lib/libQt5Gui.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/data/org.myappname/lib/libQt5Widgets.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/data/org.myappname/lib/libQt5Widgets.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/data/org.myappname/lib/libQt5Widgets.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/data/org.myappname/lib/libQt5Svg.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/data/org.myappname/lib/libQt5Svg.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/data/org.myappname/lib/libQt5Svg.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/data/org.myappname/lib/libQt5Network.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/data/org.myappname/lib/libQt5Network.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/data/org.myappname/lib/libQt5Network.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/data/org.myappname/lib/libQt5Qml.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/data/org.myappname/lib/libQt5Qml.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/data/org.myappname/lib/libQt5Qml.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/data/org.myappname/lib/libQt5Quick.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/data/org.myappname/lib/libQt5Quick.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/data/org.myappname/lib/libQt5Quick.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/data/org.myappname/lib/libQt5AndroidExtras.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/data/org.myappname/lib/libQt5AndroidExtras.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/data/org.myappname/lib/libQt5AndroidExtras.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/data/org.myappname/lib/libQt5QuickParticles.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/data/org.myappname/lib/libQt5QuickParticles.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/data/org.myappname/lib/libQt5QuickParticles.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/data/org.myappname/lib/libQt5QuickTemplates2.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/data/org.myappname/lib/libQt5QuickTemplates2.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/data/org.myappname/lib/libQt5QuickTemplates2.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/data/org.myappname/lib/libQt5QuickControls2.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/data/org.myappname/lib/libQt5QuickControls2.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/data/org.myappname/lib/libQt5QuickControls2.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/data/org.myappname/lib/libQt5RemoteObjects.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/data/org.myappname/lib/libQt5RemoteObjects.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/data/org.myappname/lib/libQt5RemoteObjects.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/data/org.myappname/qt-reserved-files/plugins/platforms/android/libqtforandroid.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/data/org.myappname/qt-reserved-files/plugins/platforms/android/libqtforandroid.so 0x4231bf70
    I/Qt      (11715): qt start
    D/dalvikvm(11715): Trying to load lib /data/data/org.myappname/qt-reserved-files/plugins/bearer/libqandroidbearer.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/data/org.myappname/qt-reserved-files/plugins/bearer/libqandroidbearer.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/data/org.myappname/qt-reserved-files/plugins/bearer/libqandroidbearer.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/data/org.myappname/lib/libQt5QuickParticles.so 0x4231bf70
    D/dalvikvm(11715): Shared lib '/data/data/org.myappname/lib/libQt5QuickParticles.so' already loaded in same CL 0x4231bf70
    D/dalvikvm(11715): Trying to load lib /data/data/org.myappname/lib/libssl.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/data/org.myappname/lib/libssl.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/data/org.myappname/lib/libssl.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/data/org.myappname/lib/libcrypto.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/data/org.myappname/lib/libcrypto.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/data/org.myappname/lib/libcrypto.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/app-lib/org.myappname-2/libffi.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/app-lib/org.myappname-2/libffi.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/app-lib/org.myappname-2/libffi.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/app-lib/org.myappname-2/libcrypto.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/app-lib/org.myappname-2/libcrypto.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/app-lib/org.myappname-2/libcrypto.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/app-lib/org.myappname-2/libssl.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/app-lib/org.myappname-2/libssl.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/app-lib/org.myappname-2/libssl.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/app-lib/org.myappname-2/libstlport_shared.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/app-lib/org.myappname-2/libstlport_shared.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/app-lib/org.myappname-2/libstlport_shared.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/app-lib/org.myappname-2/libopenvpn.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/app-lib/org.myappname-2/libopenvpn.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/app-lib/org.myappname-2/libopenvpn.so 0x4231bf70, skipping init
    D/dalvikvm(11715): Trying to load lib /data/app-lib/org.myappname-2/libopvpnutil.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/app-lib/org.myappname-2/libopvpnutil.so 0x4231bf70
    D/dalvikvm(11715): Trying to load lib /data/app-lib/org.myappname-2/libMyAppName.so 0x4231bf70
    D/dalvikvm(11715): Added shared lib /data/app-lib/org.myappname-2/libMyAppName.so 0x4231bf70
    D/dalvikvm(11715): No JNI_OnLoad found in /data/app-lib/org.myappname-2/libMyAppName.so 0x4231bf70, skipping init
    D/libEGL  (11715): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
    D/libEGL  (11715): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
    D/libEGL  (11715): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
    D/OpenGLRenderer(11715): Enabling debug mode 0
    I/ActivityManager(  401): Displayed org.myappname/.MyAppNameActivity: +739ms
    W/ThrottleService(  401): unable to find stats for iface pdp0
    D/AudioHardware(  143): AudioHardware pcm playback is going to standby.
    V/AudioHardware(  143): closeMixer_l() mMixerOpenCnt: 1
    D/AudioHardware(  143): closePcmOut_l() mPcmOpenCnt: 1
    I/WindowState(  401): WIN DEATH: Window{4268cba0 u0 org.myappname/org.myappname.MyAppNameActivity}
    I/ActivityManager(  401): Process org.myappname (pid 11715) has died.
    D/Zygote  (  141): Process 11715 exited cleanly (1)
    

    Has anyone experienced anything similar in the past or has any idea? I know that the phone is kinda old but according to this it is still supported (api lvl 16 is Android 4.1). My initial thought was that the app might be too resource intensive but looking at the logs my own Qt app doesn't even start so I don't think it's that (on the other phones I see the log message in logcat). Thanks for any help in advance.



  • This is weird but I removed a setlocale call from my code and added logging to the very beginning and it works now...

    edit.: actually I had an exception that I didn't catch that is why I had these issues ... (it looks like setting locale on Android 4 doesn't work)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.