App crashes when Google Play store popup closed by tapping outside of it

I can get the store/IAP overlay to fire correctly and prompt for purchase…  The Google icon and item title/desc and price show up along with the “BUY” button.  If I tap BUY and go through the process, all is good.  However, if I tap in the black overlay OUTSIDE of the popup dialog, the dialog closes and my game freezes completely, then crashes.  Is anyone else experiencing this?  

I am using daily build 2707 but also have tried with the latest public build with same results.  The device I am on is an older HTC first, running Android 4.1.2.

Thanks,

Nate

Ok… this is happening also for closing down any alert popup in my app.  For example, when a native.showAlert is fired, and I tap the button to close it, the app freezes and crashes.

Testing more… will update here if I find anything else more on my end.  Would love to know if anyone else is having this problem.

So… I reverted back to the previous public release build 2511.  All works FINE - just as expected.

When I tap outside of the popup dialog as if I changed my mind and don’t want to purchase the IAP, I a “failed” transaction is fired and all works as normal.  In the latest public release and daily build, this transaction doesn’t seem to be fired and just errors out, then the app crashes.

If it’s working good in build 2511, I’m going to release in 2511 as I’m under time crunch for getting a few builds submitted to Google Play.  But this build is nearly 10 months old.  Corona folks - any idea why this is happening in latest releases??

Just built for my Kindle Fire HDX device with the latest daily build 2707…  Closing the GameCircle dialog using the “x” button in the corner of the popup caused the app to freeze up.

Anyone else experiencing this??

Hi Nate,

Do you have a simplified project for this which can be submitted as a bug report? I think just including how you’re doing a “showAlert()” would suffice for our testing purposes, assuming you’re getting a consistent crash on tapping outside it.

Thanks,

Brent

Hey, just to add to this – yes, we are experiencing this now too.  2702 is the last build that works for us.  It seems like any native popup will cause our app to freeze on return.  We noticed with the “social” popup.

We saw this in the 2705 release notes:

  • Android: fixed case where audio would continue to play after the device enters sleep mode via timeout on Android 5.1.X; casenum 42340.
  • Core: making BitmapPaint’s scaleX and scaleY properties to be consistent for accessing and setting them (casenum 42497)
  • All - Fixing a race condition on transition resume. Casenum 42440.
  • Core Graphics: fixed horizontal gradients for rounded rects and circles (casenum 39683)

Maybe it’s something to do with the Android audio fix and suspending/resuming apps or something? Or perhaps it’s something to do with fixing the transition.resume race condition?

Thanks,

Dave

Brent, this can be reproduced with the ComposeSMSAndEmail sample code in the latest build - 2716.  The last time it worked was Build 2702.

 

This is a serious problem.

Thanks,

Dave

More info now that I have debug working:

V/Corona  ( 1469): > Class.forName: plugin.fuse.LuaLoader

W/linker  ( 1469): liblicensing.so has text relocations. This is wasting memory and prevents security hardening. Please fix.

V/Corona  ( 1469): > Class.forName: CoronaProvider.licensing.google.LuaLoader

V/Corona  ( 1469): < Class.forName: CoronaProvider.licensing.google.LuaLoader

V/Corona  ( 1469): Loading via reflection: CoronaProvider.licensing.google.LuaLoader

W/Bundle  ( 1469): Key android.intent.extra.TEXT expected ArrayList<CharSequence> but value was a android.text.SpannableStringBuilder.  The default value <null> was returned.

W/Bundle  ( 1469): Attempt to cast generated internal exception:

W/Bundle  ( 1469): java.lang.ClassCastException: android.text.SpannableStringBuilder cannot be cast to java.util.ArrayList

W/Bundle  ( 1469):      at android.os.BaseBundle.getCharSequenceArrayList(BaseBundle.java:1060)

W/Bundle  ( 1469):      at android.os.Bundle.getCharSequenceArrayList(Bundle.java:884)

W/Bundle  ( 1469):      at android.content.Intent.getCharSequenceArrayListExtra(Intent.java:5172)

W/Bundle  ( 1469):      at android.content.Intent.migrateExtraStreamToClipData(Intent.java:7853)

W/Bundle  ( 1469):      at android.app.Instrumentation.execStartActivity(Instrumentation.java:1494)

W/Bundle  ( 1469):      at android.app.Activity.startActivityForResult(Activity.java:3745)

W/Bundle  ( 1469):      at android.app.Activity.startActivityForResult(Activity.java:3706)

W/Bundle  ( 1469):      at com.ansca.corona.CoronaActivity.showSendMailWindowUsing(CoronaActivity.java:1860)

W/Bundle  ( 1469):      at com.ansca.corona.CoronaShowApiHandler.showSendMailWindowUsing(CoronaShowApiHandler.java:52)

W/Bundle  ( 1469):      at com.ansca.corona.Controller$11.run(Controller.java:1075)

W/Bundle  ( 1469):      at android.os.Handler.handleCallback(Handler.java:739)

W/Bundle  ( 1469):      at android.os.Handler.dispatchMessage(Handler.java:95)

W/Bundle  ( 1469):      at android.os.Looper.loop(Looper.java:135)

W/Bundle  ( 1469):      at android.app.ActivityThread.main(ActivityThread.java:5254)

W/Bundle  ( 1469):      at java.lang.reflect.Method.invoke(Native Method)

W/Bundle  ( 1469):      at java.lang.reflect.Method.invoke(Method.java:372)

W/Bundle  ( 1469):      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)

W/Bundle  ( 1469):      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Hey guys sorry for not keeping up with this thread - been super busy over the past week…  I’ve had to resort to building with public build 2511 (two public builds ago) to find one that doesn’t break.  If I use the latest public build or latest daily this bug occurs.   Using an Android phone with Android v 4.1.2 on it if my Google Play store popup dialog (one with IAP item price and “Buy” button) is visible, and I tap outside of it (as if I changed my mind to purchase iAP), the app fully freezes up then crashes hard.  Using build 2511, if I do this the store callback is called with a “failed” command and it’s caught and all works as expected.  Using the recent builds it appears this is never called - or not really sure what happens.  

Not sure what code I can show that’d help - this is from the Google Play layer - the store popup dialog which I don’t have any control over in lua…

Dave - you experiencing this bug too?

@borderleap - I think it’s probably the same bug or very similar. The app my team is working on at the moment doesn’t have any IAP, and I haven’t put out a new android version of Puzzlewood in a month or so, so I can’t verify at the moment.

Dave

I put in a bug for this. (Case 42778)

Hi guys,

Thanks for filing the reports. We’re aware of this issue and are looking into fixes for it.

Brent

Hi everyone,

This issue has been fixed in build 2015.2718.

Excellent!  Thanks Brent, Dave and Ajay :slight_smile:  Going to dig into this latest daily build later today and give it a try.

My team has confirmed that all is well in 2718.  :-)

Thanks!

Dave

Thanks Dave!

Ok… this is happening also for closing down any alert popup in my app.  For example, when a native.showAlert is fired, and I tap the button to close it, the app freezes and crashes.

Testing more… will update here if I find anything else more on my end.  Would love to know if anyone else is having this problem.

So… I reverted back to the previous public release build 2511.  All works FINE - just as expected.

When I tap outside of the popup dialog as if I changed my mind and don’t want to purchase the IAP, I a “failed” transaction is fired and all works as normal.  In the latest public release and daily build, this transaction doesn’t seem to be fired and just errors out, then the app crashes.

If it’s working good in build 2511, I’m going to release in 2511 as I’m under time crunch for getting a few builds submitted to Google Play.  But this build is nearly 10 months old.  Corona folks - any idea why this is happening in latest releases??

Just built for my Kindle Fire HDX device with the latest daily build 2707…  Closing the GameCircle dialog using the “x” button in the corner of the popup caused the app to freeze up.

Anyone else experiencing this??

Hi Nate,

Do you have a simplified project for this which can be submitted as a bug report? I think just including how you’re doing a “showAlert()” would suffice for our testing purposes, assuming you’re getting a consistent crash on tapping outside it.

Thanks,

Brent