question

Paolo Brandoli avatar image
Paolo Brandoli asked

Crash in Amazon devices: I believe is in the modified Android OS

I get this stack trace: java.lang.RuntimeException at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2120) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:957) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3683) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:850) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.IllegalArgumentException at android.app.Activity.missingDialog(Activity.java:2636) at android.app.Activity.dismissDialog(Activity.java:2621) at com.amazon.android.framework.prompt.Prompt.dismissDialog(Unknown Source) at com.amazon.android.framework.prompt.Prompt.showDialog(Unknown Source) at com.amazon.android.framework.prompt.Prompt.show(Unknown Source) at com.amazon.android.framework.prompt.PromptManagerImpl.show(Unknown Source) at com.amazon.android.framework.prompt.PromptManagerImpl.onResume(Unknown Source) at com.amazon.android.framework.prompt.PromptManagerImpl.a(Unknown Source) at com.amazon.android.framework.prompt.f.a(Unknown Source) at com.amazon.android.n.e.a(Unknown Source) at com.amazon.android.n.b.a(Unknown Source) at com.amazon.android.framework.context.d.a(Unknown Source) at com.amazon.android.framework.context.d.onResume(Unknown Source) at com.amazon.android.Kiwi.onResume(Unknown Source) at com.zzzalarm.activities.MainActivity.onResume(MainActivity.java) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1150) at android.app.Activity.performResume(Activity.java:3868) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2110) ... 10 more java.lang.RuntimeException at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2120) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:957) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3683) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:850) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.IllegalArgumentException at android.app.Activity.missingDialog(Activity.java:2636) at android.app.Activity.dismissDialog(Activity.java:2621) at com.amazon.android.framework.prompt.Prompt.dismissDialog(Unknown Source) at com.amazon.android.framework.prompt.Prompt.showDialog(Unknown Source) at com.amazon.android.framework.prompt.Prompt.show(Unknown Source) at com.amazon.android.framework.prompt.PromptManagerImpl.show(Unknown Source) at com.amazon.android.framework.prompt.PromptManagerImpl.onResume(Unknown Source) at com.amazon.android.framework.prompt.PromptManagerImpl.a(Unknown Source) at com.amazon.android.framework.prompt.f.a(Unknown Source) at com.amazon.android.n.e.a(Unknown Source) at com.amazon.android.n.b.a(Unknown Source) at com.amazon.android.framework.context.d.a(Unknown Source) at com.amazon.android.framework.context.d.onResume(Unknown Source) at com.amazon.android.Kiwi.onResume(Unknown Source) at com.zzzalarm.activities.MainActivity.onResume(MainActivity.java) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1150) at android.app.Activity.performResume(Activity.java:3868) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2110) ... 10 more java.lang.IllegalArgumentException at android.app.Activity.missingDialog(Activity.java:2636) at android.app.Activity.dismissDialog(Activity.java:2621) at com.amazon.android.framework.prompt.Prompt.dismissDialog(Unknown Source) at com.amazon.android.framework.prompt.Prompt.showDialog(Unknown Source) at com.amazon.android.framework.prompt.Prompt.show(Unknown Source) at com.amazon.android.framework.prompt.PromptManagerImpl.show(Unknown Source) at com.amazon.android.framework.prompt.PromptManagerImpl.onResume(Unknown Source) at com.amazon.android.framework.prompt.PromptManagerImpl.a(Unknown Source) at com.amazon.android.framework.prompt.f.a(Unknown Source) at com.amazon.android.n.e.a(Unknown Source) at com.amazon.android.n.b.a(Unknown Source) at com.amazon.android.framework.context.d.a(Unknown Source) at com.amazon.android.framework.context.d.onResume(Unknown Source) at com.amazon.android.Kiwi.onResume(Unknown Source) at com.zzzalarm.activities.MainActivity.onResume(MainActivity.java) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1150) at android.app.Activity.performResume(Activity.java:3868) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2110) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:957) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3683) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:850) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608) at dalvik.system.NativeStart.main(Native Method) It complains about a missing dialog (which I don't use at all in my app). I believe that the Amazon OS is responsible for that, and I've found the same stack on the net complaining about the same thing. Can somebody confirm that?
fire tablet
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dave avatar image
Dave answered
I get a report that my app on Kindle Fire HD 7(3rd Gen) forced to close after reviewer started it and clicked a button. But my app works fine in any my available physical mobiles and emulators. I installed Kindle Fire HD 7 emulator yesterday. My app works fine, too. I am downloading Kindle Fire HD 7 emulator now. But I am not clear where to find the bug. :-(
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dixith@Amazon avatar image
Dixith@Amazon answered
Please let us know your app details including version name. If you give the reproducible steps, its really helpful to us. This information would help us to troubleshoot the issue further.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dave avatar image
Dave answered
My app is ASIN: B00E9S6PZS , version is 1.54. I fnished to download Kindle Fire HD 7(3rd Generation) emulator this noon. And I am testing my app now.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dave avatar image
Dave answered
My question has been located and fixed. It's so strange that the bug is only on Kindle Fire HD 7(3rd Gen) device. In fact, the app works fine on any other devices including Kindle Fire HD 7 or 8.9. At last, I found that the bug results from that ItemSelected event of Spinner does not fire at the first time after it shows. But on any other devices, this event do fire at the first time without user operation. Perhaps, this is a defect or "new feature" of Kindle Fire HD 7(3rd Gen) ? Good luck to any other developers.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Andrey Maklakov avatar image
Andrey Maklakov answered
Hello, we are getting crash reports for Amazon. We have same app in Google Play and there are no such errors. So I beleive that's because of amazon custom android. java.lang.RuntimeException: Unable to destroy activity {com.playrix.township.amazon/com.playrix.township.amazon.AmazonActivity}: java.lang.IllegalArgumentException: no dialog with id 991525697 was ever shown via Activity#showDialog at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3198) at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3216) at android.app.ActivityThread.access$1200(ActivityThread.java:127) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4532) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.IllegalArgumentException: no dialog with id 991525697 was ever shown via Activity#showDialog at android.app.Activity.missingDialog(Activity.java:3068) at android.app.Activity.dismissDialog(Activity.java:3053) at com.amazon.android.framework.prompt.Prompt.dismissDialog(Unknown Source) at com.amazon.android.framework.prompt.Prompt.dismiss(Unknown Source) at com.amazon.android.framework.prompt.PromptManagerImpl.finish(Unknown Source) at com.amazon.android.framework.prompt.PromptManagerImpl.a(Unknown Source) at com.amazon.android.framework.prompt.i.a(Unknown Source) at com.amazon.android.o.e.a(Unknown Source) at com.amazon.android.o.b.a(Unknown Source) at com.amazon.android.framework.context.d.a(Unknown Source) at com.amazon.android.framework.context.d.onDestroy(Unknown Source) at com.amazon.android.Kiwi.onDestroy(Unknown Source) at com.playrix.township.amazon.AmazonActivity.onDestroy(AmazonActivity.java) at android.app.Activity.performDestroy(Activity.java:4819) at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1079) at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3185) ... 11 more Reports sent by devices with android 4.0.3 ++
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi eyenie, Could you send us the app details through ContactUs So that we can investigate further.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Thanks Paolo, I have received the case (id:193261901) that you have created through ContactUs. I can see that you have below synchronized block in LifeCycleActivity.onDestroy method. synchronized (this.mActivityLifecycleCallbacks) { int i = this.mActivityLifecycleCallbacks.size(); Object[] arrayOfObject = null; if (i > 0) arrayOfObject = this.mActivityLifecycleCallbacks.toArray(); return arrayOfObject; } We do certain maintenance jobs in all the life cycle methods of the apps what are published in Amazon App store. And our job does not work when there is a sync block on those methods and crashes in runtime. In order to fix this issue we would request you to do a modification in your code to remove the sync block from onDestroy() Thanks.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

yhercouet avatar image
yhercouet answered
I also received dozens of this error for my app, [b]only from Amazon devices[/b]: [i]java.lang.IllegalArgumentException: no dialog with id 1858687372 was ever shown via Activity#showDialog : at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3524)[/i] Here is my code is onDestroy(), there is nothing fancy (adView is Google's adview): [i]@Override public void onDestroy() { if (adView != null) { adView.removeAllViews(); adView.destroy(); } if(isChangingConfigurations()){ mPrefs.setConfigurationChanged(true); } super.onDestroy(); }[/i] This topic has been viewed more than 700 times, this is obviously a specific bug from Amazon. Thank you Message was edited by: yhercouet
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Yhercouet, I was checking the crash reports 2 of your live apps and I did not find above error in the reports. Are you getting this report somewhere else? Can you please file a ContactUs with all your app details and put a reference of the url of this thread there so that I can take a deeper look? Thanks.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.