Hi,
This seems to be my first post on these forums, so it’s about time!
We published our game RGB Express on Android this week and we’re seeing a few problems mostly with the plug-ins - and mostly with Android 5.0 Lollipop. At least Google Play Game Services, Google IAP v3 and Admob-v2 plugins all seem to have problems. The game is built with Corona Pro v2014.2506.
I can make the bug reports for these, but I can’t supply code to always reproduce the problems. Also, please tell if these already have been reported.
Summary of the bugs:
-
Google Play Game Services plugin - init or sign-in crashes occasionally on Android 5.0.0 Lollipop devices
-
Google IAP v3 - Initiating store doesn’t always seem to work: store.isActive is not neccessarily true after store.init (seems to be related to this topic: http://forums.coronalabs.com/topic/49095-google-iap-v3-crash/))
-
Google IAP v3 - Occasional crashing when using IAPs
-
Admob (ads-admob-v2) - loading the plugin can fail, occuring at least on Android 5.0.0 Lollipop
… and a bit more details:
1) Google Play Game Services related crash. Only seen on Android 5.0.0 Lollipop devices, sign-in and/or opening achievements seems to crash sometimes. Problem usually disappears if the device and app are restarted based on player feedback:
Process: com.google.android.gms.ui, PID: 7823 java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.ViewGroup.getLocationInWindow(int[])' on a null object reference [12-04 19:01:41.915 25055:25339 E/GooglePlayServicesUtil] The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
2) Google IAP v3 init fails:
java.lang.IllegalStateException: Lua state is closed at com.naef.jnlua.LuaState.check(Unknown Source) at com.naef.jnlua.LuaState.rawGet(Unknown Source) at plugin.google.iap.v3.LuaLoader$1.onIabSetupFinished(LuaLoader.java:167) at plugin.google.iap.v3.util.IabHelper$1.onServiceConnected(IabHelper.java:262) at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1203) at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1220) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) 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)
3) Google IAP v3 Crash (reported on Android 4.4):
java.lang.NullPointerException at plugin.google.iap.v3.util.IabHelper.queryPurchases(IabHelper.java:817) at plugin.google.iap.v3.util.IabHelper.queryInventory(IabHelper.java:540) at plugin.google.iap.v3.util.IabHelper$2.run(IabHelper.java:613) at java.lang.Thread.run(Thread.java:864)
4) AdMob-v2 load/init fail on Android 5.0.0:
ava.lang.RuntimeException: /Users/jenkins/slaveroot/workspace/Templates/label/android/librtt/Corona/CoronaLibrary.lua:94: ERROR: Could not load provider (admob) due to the following reason: /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:820: module 'CoronaProvider.ads.admob' not found:resource (CoronaProvider.ads.admob.lu) does not exist in archive no field package.preload['CoronaProvider.ads.admob'] no file '(null)/CoronaProvider.ads.admob.lua' no file '(null)/CoronaProvider.ads.admob.lua' no file '/data/app/com.badcrane.rgbexpress-1/lib/arm/libCoronaProvider.ads.admob.so' no file './CoronaProvider.ads.admob.so' no file '(null)/CoronaProvider.ads.admob.so' no file '/data/app/com.badcrane.rgbexpress-1/lib/arm/libCoronaProvider.so' no file './CoronaProvider.so' no file '(null)/CoronaProvider.so'. stack traceback: [C]: ? [C]: in function 'assert' /Users/jenkins/slaveroot/workspace/Templates/label/android/librtt/Corona/CoronaLibrary.lua:94: in function 'requireProvider' /Users/jenkins/slaveroot/workspace/Templates/label/android/librtt/Corona/CoronaLibrary.lua:119: in function 'setCurrentProvider' ?: in function 'init' ?: in function 'listener' /Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/timer/timer.lua:173: in function 'method' /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:253: in function \</Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:221\>
I wanted to write this summary that there are problems with the plugins at the moment, especially on the Lollipop. Maybe it’ll be best to start own threads to continue handling these bugs. Please tell if these threads already exist, at least the issue #2 seems to be reported here too: http://forums.coronalabs.com/topic/49095-google-iap-v3-crash/ and please tell if bug reports already exist for these bugs. Thanks!
Markus // Bad Crane