I am sorry to report that the error has not been fully resolved even with adding the proper code on applicationResume.
This is an excerpt from the log…
E/Sensors ( 761): requested_sensors(70) from kernel
D/KeyguardUpdateMonitor( 9257): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 9257): handleKeyguardVisibilityChanged(1)
D/KeyguardUpdateMonitor( 9257): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 9257): handleKeyguardVisibilityChanged(1)
D/PhoneStatusBar( 9257): setTransGradationMode=false, mTransparentMode=false, mSemiTransparentMode=false, mMultiWindowMode=false
D/StatusBarManagerService( 761): tr p:31166,o:f
D/AndroidRuntime(31166): Shutting down VM
W/dalvikvm(31166): threadid=1: thread exiting with uncaught exception (group=0x41716da0)
E/AndroidRuntime(31166): FATAL EXCEPTION: main
E/AndroidRuntime(31166): Process: com.gmail.popalzie.TinyCanoeV2, PID: 31166
E/AndroidRuntime(31166): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gmail.popalzie.TinyCanoeV2/com.chartboost.sdk.CBImpressionActivity}: java.lang.NullPointerException: uriString
E/AndroidRuntime(31166): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2334)
E/AndroidRuntime(31166): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2392)
E/AndroidRuntime(31166): at android.app.ActivityThread.access$900(ActivityThread.java:169)
E/AndroidRuntime(31166): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1280)
E/AndroidRuntime(31166): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(31166): at android.os.Looper.loop(Looper.java:146)
E/AndroidRuntime(31166): at android.app.ActivityThread.main(ActivityThread.java:5487)
E/AndroidRuntime(31166): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(31166): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(31166): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
E/AndroidRuntime(31166): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
E/AndroidRuntime(31166): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(31166): Caused by: java.lang.NullPointerException: uriString
E/AndroidRuntime(31166): at android.net.Uri$StringUri.<init>(Uri.java:467)
E/AndroidRuntime(31166): at android.net.Uri$StringUri.<init>(Uri.java:457)
E/AndroidRuntime(31166): at android.net.Uri.parse(Uri.java:429)
E/AndroidRuntime(31166): at com.chartboost.sdk.impl.ao.a(SourceFile:381)
E/AndroidRuntime(31166): at com.chartboost.sdk.impl.ai$a.<init>(SourceFile:177)
E/AndroidRuntime(31166): at com.chartboost.sdk.impl.ai$a.<init>(SourceFile:73)
E/AndroidRuntime(31166): at com.chartboost.sdk.impl.ai.b(SourceFile:546)
E/AndroidRuntime(31166): at com.chartboost.sdk.f.c(SourceFile:286)
E/AndroidRuntime(31166): at com.chartboost.sdk.Model.a.k(SourceFile:299)
E/AndroidRuntime(31166): at com.chartboost.sdk.e.e(SourceFile:75)
E/AndroidRuntime(31166): at com.chartboost.sdk.e.a(SourceFile:55)
E/AndroidRuntime(31166): at com.chartboost.sdk.Chartboost.a(SourceFile:920)
E/AndroidRuntime(31166): at com.chartboost.sdk.c.a(SourceFile:336)
E/AndroidRuntime(31166): at com.chartboost.sdk.Chartboost.a(SourceFile:255)
E/AndroidRuntime(31166): at com.chartboost.sdk.CBImpressionActivity.onStart(SourceFile:56)
E/AndroidRuntime(31166): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1177)
E/AndroidRuntime(31166): at android.app.Activity.performStart(Activity.java:5461)
E/AndroidRuntime(31166): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2307)
E/AndroidRuntime(31166): … 11 more
I/SpenGestureManager( 761): setFocusWindow21030
D/PointerIcon( 761): setMouseIconStyle1 pointerType: 1001iconType:101 flag:0
D/PointerIcon( 761): setMouseCustomIcon IconType is same.101
W/ActivityManager( 761): Force finishing activity com.gmail.popalzie.TinyCanoeV2/com.chartboost.sdk.CBImpressionActivity
W/ActivityManager( 761): Force finishing activity com.gmail.popalzie.TinyCanoeV2/com.ansca.corona.CoronaActivity
I/dumpstate(31288): begin
I/dalvikvm-heap( 761): Grow heap (frag case) to 50.128MB for 1127536-byte allocation
I/ServiceKeeper( 761): In getseinfo pid = 761 uid = 1000 seinfo= system
I/ServiceKeeper( 761): In getseinfo pid = 761 uid = 1000 seinfo= system
V/AudioPolicyManagerBase( 183): stopOutput() output 2, stream 3, session 11723
It is definitely not occurring as much without the other code but it is still happening and I am confident that it doesn’t have to do with the resuming anything. I have attached the entire log to the thread. I have been testing this on Android today and it has crashed multiple times and it seems to only be triggered with me clicking on any button that will load an ad.
An example of my code for displaying the ad is as follows:
function showInterstitialAd() if not chartboost.hasCachedInterstitial() then chartboost.cache( "interstitial" ) storyboard.gotoScene( "start" ) else chartboost.show( "interstitial" ) end end function scene:enterScene(event) --cache the interstitial ad chartboost.cache( "interstitial") storyboard.removeScene("game") Runtime:addEventListener( "key", onBackButtonPressed ); saveScore() timer.performWithDelay(500,showGameOver,1) timer.performWithDelay(500,loadScore, 1) end
I don’t know what I am doing wrong. If I can’t get some stability though, I will have to go back to Admob which is not something I want to do.