Fatal error message on andoird application startup



  • My app didn't work on android with this message: Your application encountered a fatal error and cannot continue.

    Development tools:
    Qt 5.7.0 windows x86
    Android 4.2.2
    JDK 1.7.0_80 (x86)
    NDK-r9-x86
    Android API Level : android-19

    Application output:

    Starting remote process.D/dalvikvm(  129): Zygote::ForkAndSpecialize : 32324
    D/dalvikvm(32324): Zygote::ForkAndSpecialize : 0
    D/dalvikvm(32324): zygote get new systemTid : 32324
    D/dalvikvm(32324): Late-enabling CheckJNI
    D/dalvikvm(32324): threadid=2: interp stack at 0x5a480000
    D/dalvikvm(32324): threadid=3: interp stack at 0x5a5a0000
    D/dalvikvm(32324): Elevating priority from 0 to -8
    D/jdwp    (32324): prepping for JDWP over ADB
    D/jdwp    (32324): ADB transport startup
    D/dalvikvm(32324): threadid=4: interp stack at 0x5a6c0000
    D/jdwp    (32324): JDWP: thread running
    D/jdwp    (32324): acceptConnection
    D/dalvikvm(32324): threadid=5: interp stack at 0x5cdd4000
    D/ADB_SERVICES(  158): Adding socket 22 pid 32324 to jdwp process list
    D/jdwp    (32324): trying to receive file descriptor from ADB
    I/ActivityManager(  505): Start proc org.qtproject.example.test for activity org.qtproject.example.test/org.qtproject.qt5.android.bindings.QtActivity: pid=32324 uid=10112 gids={50112, 3003, 1015, 1028}
    D/dalvikvm(32324): zygote get thread init done
    D/dalvikvm(32324): create interp thread : stack size=128KB
    D/dalvikvm(32324): create new thread
    D/dalvikvm(32324): new thread created
    D/dalvikvm(32324): update thread list
    D/dalvikvm(32324): threadid=6: interp stack at 0x5cdf4000
    D/dalvikvm(32324): threadid=6: created from interp
    D/dalvikvm(32324): start new thread
    D/dalvikvm(32324): create interp thread : stack size=128KB
    D/dalvikvm(32324): create new thread
    D/dalvikvm(32324): threadid=6: notify debugger
    D/dalvikvm(32324): new thread created
    D/dalvikvm(32324): update thread list
    D/dalvikvm(32324): threadid=6 (ReferenceQueueDaemon): calling run()
    D/dalvikvm(32324): threadid=7: interp stack at 0x5cf14000
    D/dalvikvm(32324): threadid=7: created from interp
    D/dalvikvm(32324): start new thread
    D/dalvikvm(32324): threadid=7: notify debugger
    D/dalvikvm(32324): create interp thread : stack size=128KB
    D/dalvikvm(32324): threadid=7 (FinalizerDaemon): calling run()
    D/dalvikvm(32324): create new thread
    D/dalvikvm(32324): new thread created
    D/dalvikvm(32324): update thread list
    D/dalvikvm(32324): threadid=8: interp stack at 0x5d034000
    D/dalvikvm(32324): threadid=8: created from interp
    D/dalvikvm(32324): start new thread
    D/dalvikvm(32324): threadid=8: notify debugger
    D/dalvikvm(32324): threadid=8 (FinalizerWatchdogDaemon): calling run()
    D/dalvikvm(32324): threadid=9: interp stack at 0x5d452000
    D/dalvikvm(32324): threadid=10: interp stack at 0x5d572000
    E/Trace   (32324): error opening trace file: No such file or directory (2)
    D/NetworkPolicy(  505): onRecv: MSG_FOREGROUND_ACTIVITIES_CHANGED pid:uid:act=32324:10112:true
    W/asset   (32324): AssetManager-->addDefaultAssets CIP path not exsit!
    D/dalvikvm(32324): open_cached_dex_file : /data/app/org.qtproject.example.test-2.apk /data/dalvik-cache/data@app@org.qtproject.example.test-2.apk@classes.dex
    D/dalvikvm(32324): Trying to load lib /data/data/org.qtproject.example.test/lib/libgnustl_shared.so 0x417df1a8
    D/dalvikvm(32324): Added shared lib /data/data/org.qtproject.example.test/lib/libgnustl_shared.so 0x417df1a8
    D/dalvikvm(32324): No JNI_OnLoad found in /data/data/org.qtproject.example.test/lib/libgnustl_shared.so 0x417df1a8, skipping init
    D/dalvikvm(32324): Trying to load lib /data/data/org.qtproject.example.test/lib/libQt5Core.so 0x417df1a8
    D/dalvikvm(32324): Added shared lib /data/data/org.qtproject.example.test/lib/libQt5Core.so 0x417df1a8
    D/dalvikvm(32324): Trying to load lib /data/data/org.qtproject.example.test/lib/libQt5Network.so 0x417df1a8
    D/dalvikvm(32324): Added shared lib /data/data/org.qtproject.example.test/lib/libQt5Network.so 0x417df1a8
    D/dalvikvm(32324): No JNI_OnLoad found in /data/data/org.qtproject.example.test/lib/libQt5Network.so 0x417df1a8, skipping init
    D/dalvikvm(32324): Trying to load lib /data/data/org.qtproject.example.test/lib/libQt5Qml.so 0x417df1a8
    E/linker  (32324): soinfo_relocate(linker.cpp:992): cannot locate symbol "_ZSt24__throw_out_of_range_fmtPKcz" referenced by "libQt5Qml.so"...
    E/dalvikvm(32324): dlopen("/data/data/org.qtproject.example.test/lib/libQt5Qml.so") failed: Cannot load library: soinfo_relocate(linker.cpp:992): cannot locate symbol "_ZSt24__throw_out_of_range_fmtPKcz" referenced by "libQt5Qml.so"...
    W/System.err(32324): java.lang.reflect.InvocationTargetException
    W/System.err(32324): 	at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(32324): 	at java.lang.reflect.Method.invoke(Method.java:525)
    W/System.err(32324): 	at org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:237)
    W/System.err(32324): 	at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:647)
    W/System.err(32324): 	at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:181)
    W/System.err(32324): 	at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:269)
    W/System.err(32324): 	at android.app.Activity.performCreate(Activity.java:5122)
    W/System.err(32324): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1146)
    W/System.err(32324): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2315)
    W/System.err(32324): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403)
    W/System.err(32324): 	at android.app.ActivityThread.access$600(ActivityThread.java:165)
    W/System.err(32324): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
    W/System.err(32324): 	at android.os.Handler.dispatchMessage(Handler.java:107)
    W/System.err(32324): 	at android.os.Looper.loop(Looper.java:194)
    W/System.err(32324): 	at android.app.ActivityThread.main(ActivityThread.java:5370)
    W/System.err(32324): 	at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(32324): 	at java.lang.reflect.Method.invoke(Method.java:525)
    W/System.err(32324): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
    W/System.err(32324): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
    W/System.err(32324): 	at dalvik.system.NativeStart.main(Native Method)
    W/System.err(32324): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_relocate(linker.cpp:992): cannot locate symbol "_ZSt24__throw_out_of_range_fmtPKcz" referenced by "libQt5Qml.so"...
    W/System.err(32324): 	at java.lang.Runtime.load(Runtime.java:341)
    W/System.err(32324): 	at java.lang.System.load(System.java:500)
    W/System.err(32324): 	at org.qtproject.qt5.android.QtNative.loadQtLibraries(QtNative.java:171)
    W/System.err(32324): 	at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:502)
    W/System.err(32324): 	... 20 more
    D/dalvikvm(32324): GC_CONCURRENT freed 1585K (14158), 39% free 3049K/4924K, paused 1ms+2ms, total 15ms
    I/SurfaceFlinger(  126): EventThread Client Pid (32324) created
    D/libEGL  (32324): >>> 0 0 android
    D/libEGL  (32324): >>> 0 1 mali
    D/libEGL  (32324): loaded /system/lib/egl/libEGL_mali.so
    D/libEGL  (32324): loaded /system/lib/egl/libGLESv1_CM_mali.so
    D/libEGL  (32324): loaded /system/lib/egl/libGLESv2_mali.so
    E/linker  (32324): load_library(linker.cpp:759): library "libmaliinstr.so" not found
    D/GraphicBuffer(32324): create handle(0x5cc7a0f0) (w:736, h:168, f:1)
    D/GraphicBuffer(32324): close handle(0x5cc7a0f0) (w:736 h:168 f:1)
    D/GraphicBuffer(32324): create handle(0x5cc7a0f0) (w:736, h:168, f:1)
    D/OpenGLRenderer(32324): Enabling debug mode 0
    D/GraphicBuffer(32324): create handle(0x5cc65e78) (w:800, h:1220, f:1)
    D/GraphicBuffer(32324): close handle(0x5cc65e78) (w:800 h:1220 f:1)
    D/GraphicBuffer(32324): create handle(0x5cc65e78) (w:800, h:1220, f:1)
    D/GraphicBuffer(32324): create handle(0x5cccf818) (w:736, h:168, f:1)
    I/SurfaceTextureClient(32324): [STC::queueBuffer] (this:0x5ccbfe70) fps:0.88, dur:1131.06, max:1131.06, min:1131.06
    D/GraphicBuffer(32324): create handle(0x5cca0650) (w:736, h:168, f:1)
    D/GraphicBuffer(32324): create handle(0x5cc6db28) (w:736, h:168, f:1)
    I/View    (32324): Touch down dispatch to android.widget.Button{4198c838 VFED..C. ........ 0,0-685,68 #1020019 android:id/button1}, event = MotionEvent { action=ACTION_DOWN, id[0]=0, x[0]=259.60425, y[0]=51.466797, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=69517167, downTime=69517167, deviceId=2, source=0x1002 }
    I/SurfaceTextureClient(32324): [STC::queueBuffer] (this:0x5ccbfe70) fps:1.25, dur:12014.70, max:11758.98, min:16.74
    I/SurfaceTextureClient(32324): [STC::queueBuffer] this:0x5ccbfe70, api:1, last queue time elapsed:11758.98
    I/View    (32324): Touch up dispatch to android.widget.Button{4198c838 VFED..C. ...P.... 0,0-685,68 #1020019 android:id/button1}, event = MotionEvent { action=ACTION_UP, id[0]=0, x[0]=259.60425, y[0]=51.466797, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=69517263, downTime=69517167, deviceId=2, source=0x1002 }
    V/Provider/Settings(32324): invalidate [system]: current 35 != cached 0
    D/ActivityThread(32324): hoder:android.app.IActivityManager$ContentProviderHolder@41996ae0,provider,holder.Provider:android.content.ContentProviderProxy@417dfa38
    V/Provider/Settings(32324): from db cache, name = sound_effects_enabled , value = 0
    W/ActivityManager(  505): [LTK] pid, app, 3d=32324, 3350528, 246697984
    D/OpenGLRenderer(32324): Flushing caches (mode 0)
    D/GraphicBuffer(32324): close handle(0x5cc7a0f0) (w:736 h:168 f:1)
    D/GraphicBuffer(32324): close handle(0x5cccf818) (w:736 h:168 f:1)
    D/GraphicBuffer(32324): close handle(0x5cca0650) (w:736 h:168 f:1)
    D/GraphicBuffer(32324): close handle(0x5cc6db28) (w:736 h:168 f:1)
    D/GraphicBuffer(32324): create handle(0x5ccc4ce0) (w:736, h:168, f:1)
    D/GraphicBuffer(32324): close handle(0x5ccc4ce0) (w:736 h:168 f:1)
    D/GraphicBuffer(32324): create handle(0x5cc31438) (w:800, h:1220, f:1)
    D/OpenGLRenderer(32324): Flushing caches (mode 0)
    D/GraphicBuffer(32324): close handle(0x5cc65e78) (w:800 h:1220 f:1)
    D/GraphicBuffer(32324): close handle(0x5cc31438) (w:800 h:1220 f:1)
    D/NetworkPolicy(  505): onRecv: MSG_FOREGROUND_ACTIVITIES_CHANGED pid:uid:act=32324:10112:false
    D/OpenGLRenderer(32324): Flushing caches (mode 1)
    D/OpenGLRenderer(32324): Flushing caches (mode 0)
    

    how can I fix it?



  • The normal procedure is to step the application execution in the debugger and to try to locate the piece of code that fails. Only you can do that.


  • Moderators

    @returnx said in Fatal error message on andoird application startup:

    E/dalvikvm(32324): dlopen("/data/data/org.qtproject.example.test/lib/libQt5Qml.so") failed: Cannot load library: soinfo_relocate(linker.cpp:992): cannot locate symbol "_ZSt24__throw_out_of_range_fmtPKcz" referenced by "libQt5Qml.so"...

    are you mixing Qt binaries or something?



  • @raven-worx no, i didn't.





  • Thanks...


Log in to reply
 

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