Android Runtime error

Hey revmob,

We use your plugin for ads in our game lots. We also noticed during our latest release many run time crashes that are occurring on android devices. this is what we got from the GP Console. We can’t recreate it on our end. Maybe you can have look? Seems to only occur in .5% of our user based, still that’s lots for us. Please help/ advise.

java.lang.NullPointerException: Attempt to invoke interface method ‘boolean java.util.Map.containsKey(java.lang.Object)’ on a null object reference

at plugin.revmob.LuaLoader$RevMobListenerClass.onRevMobAdNotReceived(LuaLoader.java:259)

at com.revmob.ads.a.b.b(Unknown Source)

at com.revmob.client.RevMobClient.a(Unknown Source)

at com.revmob.client.e.run(Unknown Source)

 

Couple more…

 

java.lang.NullPointerException: Attempt to invoke interface method ‘boolean java.util.Map.containsKey(java.lang.Object)’ on a null object reference

at plugin.revmob.LuaLoader$RevMobListenerClass.onRevMobAdNotReceived(LuaLoader.java:259)

at com.revmob.ads.a.b.b(Unknown Source)

at com.revmob.client.RevMobClient.a(Unknown Source)

at com.revmob.client.e.run(Unknown Source)

java.lang.NullPointerException: Attempt to invoke virtual method ‘void com.ansca.corona.CoronaRuntimeTaskDispatcher.send(com.ansca.corona.CoronaRuntimeTask)’ on a null object reference

at plugin.revmob.LuaLoader.dispatchLuaEvent(LuaLoader.java:97)

at plugin.revmob.LuaLoader$RevMobListenerClass.onRevMobSessionNotStarted(LuaLoader.java:235)

at com.revmob.client.RevMobClient.a(Unknown Source)

at com.revmob.client.RevMobClient.a(Unknown Source)

at com.revmob.client.e.run(Unknown Source)

I’ve pinged our engineers.

Rob

thank you :) 

We are working on a fix.

The updated plugin release should be available asap, I’ll ping here when it’s done.

Thanks, for sure let us know!

All crashes have been fixed.

Btw, revmob finally fixed all their internal audio issues, so we’re releasing new plugin version with whole lot improvements and new sdks. It’s not that you have to change something, but things will be really smooth under the hood right now, a lot better then before.

Release is public already.

As always, if you have any more issues or concerns - feel free to share them here, it’s a lot easier to solve everything together!

Thank you!  Appreciate the quick the turn around.  We’ll let you know if any more RevMob crashes occur.

Oops! Snap. We re-posted an error log. Can you confirm that you’ve fixed all of these:

https://forums.coronalabs.com/topic/72158-revmob-ads-multiple-crashes-and-anrn-null-pointer-3-different-kinds/

Please!

Alex

As we’ve discussed, these issues should be fixed by latest RevMob update from March 12.

https://forums.coronalabs.com/topic/71931-android-runtime-error/?p=377030

Can you rebuild your app(s) with this latest update and give a feedback on that?

100% we’ll get back to you. This is on us now!

Alex

Hello,

The revmob plugin has worked perfectly on iOS, but on Android gives a cache error.

Look at the log (logcat) below.

04-10 09:16:25.541 20024 30972 I [rm] : Caching Banner ad... 04-10 09:16:25.542 20024 30972 W ResourceType: No package identifier when getting value for resource number 0x00000000 04-10 09:16:25.543 20024 30972 W System.err: android.content.res.Resources$NotFoundException: String resource ID #0x0 04-10 09:16:25.543 20024 30972 W System.err: at android.content.res.HwResources.getText(HwResources.java:446) 04-10 09:16:25.543 20024 30972 W System.err: at rm.com.android.sdk.a.b.a.a.d(Unknown Source) 04-10 09:16:25.543 20024 30972 W System.err: at rm.com.android.sdk.a.b.a.a.b(Unknown Source) 04-10 09:16:25.543 20024 30972 W System.err: at rm.com.android.sdk.a.b.a.a.\<init\>(Unknown Source) 04-10 09:16:25.543 20024 30972 W System.err: at rm.com.android.sdk.a.b.a.a.a(Unknown Source) 04-10 09:16:25.543 20024 30972 W System.err: at rm.com.android.sdk.a.b.a.a(Unknown Source) 04-10 09:16:25.543 20024 30972 W System.err: at rm.com.android.sdk.a.b.a.b(Unknown Source) 04-10 09:16:25.543 20024 30972 W System.err: at rm.com.android.sdk.a.b.a.a(Unknown Source) 04-10 09:16:25.543 20024 30972 W System.err: at rm.com.android.sdk.a.a.a.d.a(Unknown Source) 04-10 09:16:25.543 20024 30972 W System.err: at rm.com.android.sdk.a.a.a.a.a(Unknown Source) 04-10 09:16:25.543 20024 30972 W System.err: at rm.com.android.sdk.b.o.run(Unknown Source) 04-10 09:16:25.543 20024 30972 W System.err: at java.lang.Thread.run(Thread.java:776) 04-10 09:16:25.543 20024 30972 E [rm] : Caching Banner failed for unkown reason 04-10 09:16:25.545 30382 30495 I SuperDelight: SuperDelightDownloadMetadataParser#parse(): Manifest parsed with 314 packs 04-10 09:16:25.550 30382 30495 I Superpacks: Syncing emoji 04-10 09:16:25.550 30382 30974 I SuperpacksManagerBase: registerSuperpackManifest(): current 2018032602, required 2018032602 04-10 09:16:25.550 30382 30973 I SuperDelight: SuperDelightManager#registerSuperpacks(): current 20180212, required 20180212 04-10 09:16:25.557 20024 30975 I [rm] : Caching Fullscreen ad... 04-10 09:16:25.557 20024 30975 W ResourceType: No package identifier when getting value for resource number 0x00000000 04-10 09:16:25.557 20024 30975 W System.err: android.content.res.Resources$NotFoundException: String resource ID #0x0 04-10 09:16:25.557 20024 30975 W System.err: at android.content.res.HwResources.getText(HwResources.java:446) 04-10 09:16:25.557 20024 30975 W System.err: at rm.com.android.sdk.a.b.a.a.d(Unknown Source) 04-10 09:16:25.557 20024 30975 W System.err: at rm.com.android.sdk.a.b.a.a.b(Unknown Source) 04-10 09:16:25.557 20024 30975 W System.err: at rm.com.android.sdk.a.b.a.a.\<init\>(Unknown Source) 04-10 09:16:25.557 20024 30975 W System.err: at rm.com.android.sdk.a.b.a.a.a(Unknown Source) 04-10 09:16:25.557 20024 30975 W System.err: at rm.com.android.sdk.a.b.a.a(Unknown Source) 04-10 09:16:25.558 20024 30975 W System.err: at rm.com.android.sdk.a.b.a.b(Unknown Source) 04-10 09:16:25.558 20024 30975 W System.err: at rm.com.android.sdk.a.b.a.a(Unknown Source) 04-10 09:16:25.558 20024 30975 W System.err: at rm.com.android.sdk.a.a.c.d.a(Unknown Source) 04-10 09:16:25.558 20024 30975 W System.err: at rm.com.android.sdk.a.a.c.a.a(Unknown Source) 04-10 09:16:25.558 20024 30975 W System.err: at rm.com.android.sdk.b.o.run(Unknown Source) 04-10 09:16:25.558 20024 30975 W System.err: at java.lang.Thread.run(Thread.java:776) 04-10 09:16:25.558 20024 30975 E [rm] : Caching Fullscreen failed for unkown reason

It enters the phase “init” and soon after in “failed” and gives the error “Caching Banner failed for unkown reason”.

Anyone have any idea what it might be?

Thank you!

Hi!

First google response:

https://stackoverflow.com/questions/46135843/revmob-caching-fullscreen-failed-for-unkown-reason

Looks like a RevMob sdk bug. You’d be better writing RevMob support about it, only their team can actually fix it.

Couple more…

 

java.lang.NullPointerException: Attempt to invoke interface method ‘boolean java.util.Map.containsKey(java.lang.Object)’ on a null object reference

at plugin.revmob.LuaLoader$RevMobListenerClass.onRevMobAdNotReceived(LuaLoader.java:259)

at com.revmob.ads.a.b.b(Unknown Source)

at com.revmob.client.RevMobClient.a(Unknown Source)

at com.revmob.client.e.run(Unknown Source)

java.lang.NullPointerException: Attempt to invoke virtual method ‘void com.ansca.corona.CoronaRuntimeTaskDispatcher.send(com.ansca.corona.CoronaRuntimeTask)’ on a null object reference

at plugin.revmob.LuaLoader.dispatchLuaEvent(LuaLoader.java:97)

at plugin.revmob.LuaLoader$RevMobListenerClass.onRevMobSessionNotStarted(LuaLoader.java:235)

at com.revmob.client.RevMobClient.a(Unknown Source)

at com.revmob.client.RevMobClient.a(Unknown Source)

at com.revmob.client.e.run(Unknown Source)

I’ve pinged our engineers.

Rob

thank you :) 

We are working on a fix.

The updated plugin release should be available asap, I’ll ping here when it’s done.

Thanks, for sure let us know!

All crashes have been fixed.

Btw, revmob finally fixed all their internal audio issues, so we’re releasing new plugin version with whole lot improvements and new sdks. It’s not that you have to change something, but things will be really smooth under the hood right now, a lot better then before.

Release is public already.

As always, if you have any more issues or concerns - feel free to share them here, it’s a lot easier to solve everything together!

Thank you!  Appreciate the quick the turn around.  We’ll let you know if any more RevMob crashes occur.