Qt App crashes after a few seconds (Activity_idle)



  • Hi
    I am deploying an application (QML + C++) to an android device for testing. (my Device has Android 6.0.1, patch level April1-2016)
    The application runs for a short period (less than 1 minute), and it is not enough to allow me to test the different screens.
    The last message printed on the debug console is:

    I Timeline: Timeline: Activity_idle id: android.os.BinderProxy@c02af8f time:5971627

    Just before that message gets printed "Sometimes" i see the following errors (see below). I believe there may be 2 separate problems.
    Can someone tell me what might be wrong with my setup or deployment ?
    I have not changed anything in the default deployment settings that come with Qt 5.7.
    Thank you.

    W System.err: java.lang.reflect.InvocationTargetException
    W System.err: at java.lang.reflect.Method.invoke(Native Method)
    W System.err: at org.qtproject.qt5.android.QtActivityDelegate.onSaveInstanceState(QtActivityDelegate.java:1038)
    W System.err: at java.lang.reflect.Method.invoke(Native Method)
    W System.err: at org.qtproject.qt5.android.bindings.QtApplication.invokeDelegateMethod(QtApplication.java:156)
    W System.err: at org.qtproject.qt5.android.bindings.QtApplication.invokeDelegate(QtApplication.java:145)
    W System.err: at org.qtproject.qt5.android.bindings.QtActivity.onSaveInstanceState(QtActivity.java:644)
    W System.err: at android.app.Activity.performSaveInstanceState(Activity.java:1307)
    W System.err: at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1290)
    W System.err: at android.app.ActivityThread.callCallActivityOnSaveInstanceState(ActivityThread.java:4187)
    W System.err: at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4149)
    W System.err: at android.app.ActivityThread.access$1000(ActivityThread.java:154)
    W System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397)
    W System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
    W System.err: at android.os.Looper.loop(Looper.java:234)
    W System.err: at android.app.ActivityThread.main(ActivityThread.java:5526)
    W System.err: at java.lang.reflect.Method.invoke(Native Method)
    W System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    W System.err: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Handler android.app.FragmentHostCallback.getHandler()' on a null object reference
    W System.err: at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1510)
    W System.err: at android.app.FragmentManagerImpl.saveAllState(FragmentManager.java:1718)
    W System.err: at android.app.FragmentController.saveAllState(FragmentController.java:112)
    W System.err: at android.app.Activity.onSaveInstanceState(Activity.java:1378)
    W System.err: at org.qtproject.qt5.android.bindings.QtActivity.super_onSaveInstanceState(QtActivity.java:649)
    W System.err: ... 18 more


Log in to reply
 

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