Hey Guys,
First I just want to say thanks to everyone for making this finally happen. The AGC plugin is exactly what I needed. Unfortunately, I am able to crash it pretty easily. There are 2 crashes that happen, one consistently, the other I am not able to understand yet how to reproduce. Let’s start with the one that is easy to replicate.
What happens is if I have a scene up, and do something that will cause the AGC toast to show (unlock an achievement, sign in, etc.) then change scenes before the toast goes away, the app crashes. The ADB logs show that the window is somehow being abandoned. I don’t know really that this is something the plugin has control over since AGC manages the toast, but perhaps an application level context (vs activity) can be used or something? Here is a log:
10-13 23:02:27.754: W/WindowManager(575): Force-removing child win Window{42a59778 u0 SurfaceView} from container Window{42a325c0 u0 com.cluckeyetea.melodious/com.ansca.corona.CoronaActivity}
10-13 23:02:27.754: W/WindowManager(575): Failed looking up window
10-13 23:02:27.754: W/WindowManager(575): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@4291ec60 does not exist
10-13 23:02:27.754: W/WindowManager(575): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7939)
10-13 23:02:27.754: W/WindowManager(575): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7930)
10-13 23:02:27.754: W/WindowManager(575): at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1047)
10-13 23:02:27.754: W/WindowManager(575): at android.os.BinderProxy.sendDeathNotice(Binder.java:493)
10-13 23:02:27.754: W/WindowManager(575): at dalvik.system.NativeStart.run(Native Method)
10-13 23:02:27.754: I/WindowState(575): WIN DEATH: null
10-13 23:02:27.754: I/WindowState(575): WIN DEATH: Window{4295bbb0 u0 com.cluckeyetea.melodious/com.ansca.corona.CoronaActivity}
The second error I’ve run into is a little scarier for me because when that crash occurs the plugin ceases to work until I uninstall the app and sign in again. I’ve attached a screen shot. The error message is: illegal state exception, HW acceleration can only be used with a single UI thread.
Keep up the progress guys. I will post anything else I run across and hope for an update to the plugin soon. Just FYI I won’t be available after tomorrow until probably Saturday or Sunday so if you need anything more from me make sure you hit me up tomorrow.