Don’t know if you noticed, but Fishies example android app crashes on exit.
Are there steps we must take care of for safe exiting from the application?
Don’t know if you noticed, but Fishies example android app crashes on exit.
Are there steps we must take care of for safe exiting from the application?
Here is the crash report I am getting with the slightly different version of Fishies app.
As I mentioned above, this crash occurs on exit…
11-07 15:24:18.350 1299-1299/com.example.app E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.example.app, PID: 1299 java.lang.NullPointerException: Attempt to invoke virtual method 'long com.ansca.corona.CoronaRuntime.getJavaToNativeBridgeAddress()' on a null object reference at com.ansca.corona.CoronaView.onSaveInstanceState(CoronaView.java:95) at android.view.View.dispatchSaveInstanceState(View.java:13550) at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2859) at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2865) at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2865) at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2865) at android.view.View.saveHierarchyState(View.java:13533) at com.android.internal.policy.impl.PhoneWindow.saveHierarchyState(PhoneWindow.java:1940) at android.app.Activity.onSaveInstanceState(Activity.java:1365) at android.app.Activity.performSaveInstanceState(Activity.java:1297) at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1272) at android.app.ActivityThread.callCallActivityOnSaveInstanceState(ActivityThread.java:3923) at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:3334) at android.app.ActivityThread.handleStopActivity(ActivityThread.java:3390) at android.app.ActivityThread.access$1100(ActivityThread.java:144) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1307) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5221) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
What version of Corona SDK are you building with?
What device and Android OS are you testing on?
Rob
Corona Cards
Samsung Galaxy Note 10.1
Android 4.4.2
As I’ve said in my first post. It is Fishies example from github that crashes.
(my test project crashes on exit too but it is most likely caused by the same issue)
Can you attach the apk you’re running?
Here is the crash report I am getting with the slightly different version of Fishies app.
As I mentioned above, this crash occurs on exit…
11-07 15:24:18.350 1299-1299/com.example.app E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.example.app, PID: 1299 java.lang.NullPointerException: Attempt to invoke virtual method 'long com.ansca.corona.CoronaRuntime.getJavaToNativeBridgeAddress()' on a null object reference at com.ansca.corona.CoronaView.onSaveInstanceState(CoronaView.java:95) at android.view.View.dispatchSaveInstanceState(View.java:13550) at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2859) at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2865) at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2865) at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2865) at android.view.View.saveHierarchyState(View.java:13533) at com.android.internal.policy.impl.PhoneWindow.saveHierarchyState(PhoneWindow.java:1940) at android.app.Activity.onSaveInstanceState(Activity.java:1365) at android.app.Activity.performSaveInstanceState(Activity.java:1297) at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1272) at android.app.ActivityThread.callCallActivityOnSaveInstanceState(ActivityThread.java:3923) at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:3334) at android.app.ActivityThread.handleStopActivity(ActivityThread.java:3390) at android.app.ActivityThread.access$1100(ActivityThread.java:144) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1307) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5221) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
What version of Corona SDK are you building with?
What device and Android OS are you testing on?
Rob
Corona Cards
Samsung Galaxy Note 10.1
Android 4.4.2
As I’ve said in my first post. It is Fishies example from github that crashes.
(my test project crashes on exit too but it is most likely caused by the same issue)
Can you attach the apk you’re running?