question

iainconnor avatar image
iainconnor asked

Crash on older Kindle devices

When submitting any of our applications, we are seeing consistent behaviour where the app is working on any newer Amazon devices; Non-Amazon Android (Samsung - 4.2.X) Fire HDX 7 WAN (3rd Gen) Kindle Fire HD 7 (3rd Gen) Fire HDX 7 WiFi (3rd Gen) Fire HDX 8.9 WAN (3rd Gen) Fire HDX 8.9 WiFi (3rd Gen) Fire phone But the testers report that it's crashing at launch with any of the older devices; Fire HD 8.9 WAN (2nd Gen) Fire HD 8.9 Wifi (2nd Gen) Kindle Fire (1st Gen) Kindle Fire (2nd Gen) Kindle Fire HD 7 (2nd Gen) Example logs of the crash have been provided to us; https://venezia-avs-artifacts-prod.s3.amazonaws.com/20100523%2Fa87ff679a2f3e71d9181a67b7542122c%2Fc4ca4238a0b923820dcc509a6f75849b%2FLOG_11-Launch-Logcat_tate-shell.log?Expires=1413621605&AWSAccessKeyId=AKIAJSH3O3FZJUHZ63XA&Signature=%2BPcxlI1Ix%2BbJn5vbXLiIRLHjnHg%3D https://venezia-avs-artifacts-prod.s3.amazonaws.com/20100523%2F1679091c5a880faf6fb5e6087eb1b2dc%2Fc4ca4238a0b923820dcc509a6f75849b%2FLOG_11-Launch-Logcat_otter2-shell.log?Expires=1413621605&AWSAccessKeyId=AKIAJSH3O3FZJUHZ63XA&Signature=XG1ZDZ1eJHGV5iaCrGbJ%2F80L8%2F0%3D https://venezia-avs-artifacts-prod.s3.amazonaws.com/20100523%2Fe4da3b7fbbce2345d7772b0674a318d5%2Fc4ca4238a0b923820dcc509a6f75849b%2FLOG_11-Launch-Logcat_jem_wifi-shell.log?Expires=1413621605&AWSAccessKeyId=AKIAJSH3O3FZJUHZ63XA&Signature=99YnzV2rbrqkMwlrvINZvHwfHH4%3D And the crash always seems to occur in a similar spot low level in the Android OS to do with reflection processing; #00 pc 00079126 /system/lib/ libdvm.so #01 pc 00079286 /system/lib/ libdvm.so (_Z26dvmGetParameterAnnotationsPK6Method) #02 pc 00073c8a /system/lib/ libdvm.so #03 pc 00030b0c /system/lib/ libdvm.so #04 pc 00034370 /system/lib/ libdvm.so (_Z12dvmInterpretP6ThreadPK6MethodP6JValue) #05 pc 0006ca46 /system/lib/ libdvm.so (_Z14dvmCallMethodVP6ThreadPK6MethodP6ObjectbP6JValueSt9__va_list) #06 pc 0006ca68 /system/lib/ libdvm.so (_Z13dvmCallMethodP6ThreadPK6MethodP6ObjectP6JValuez) #07 pc 0005fb7c /system/lib/ libdvm.so #08 pc 00012d1c /system/lib/ libc.so (__thread_entry) #09 pc 00012870 /system/lib/ libc.so (pthread_create) And seems to be the same or at least a similar crash as was reported in this thread; https://forums.developer.amazon.com/forums/thread.jspa?threadID=3886&tstart=0 Was any resolution found?
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.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi iainconnor , We are able to reproduce the issue in 2nd generation Kindle fire devices in the build that you have submitted earlier. We are looking at the issue and will get back once we find any resolution. 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.

iainconnor avatar image
iainconnor answered
Hello Sujoy, Any update on this issue? We recieved our older device here in the office today to test with -- [i]Build fingerprint: 'Android/blaze_tablet/blaze_tablet:4.0.3/IML74K/10.5.0_user_5060020:user/release-keys'[/i] -- and I've come across some interesting behaviour; If I sideload the .apk that I submit to Amazon onto that device, it runs just fine. The app works as expected. If, however, I download the version of the .apk from the Amazon App Store, it crashes on launch with something like; [i]09-03 15:32:08.629 8583-8587/? I/dalvikvm﹕ at java.lang.reflect.Method.getParameterAnnotations(Native Method) 09-03 15:32:08.629 8583-8587/? I/dalvikvm﹕ at java.lang.reflect.Method.getParameterAnnotations(Method.java:311) 09-03 15:32:08.629 8583-8587/? I/dalvikvm﹕ at retrofit.RestMethodInfo.parseParameters(RestMethodInfo.java:330) 09-03 15:32:08.629 8583-8587/? I/dalvikvm﹕ at retrofit.RestMethodInfo.init(RestMethodInfo.java:116) 09-03 15:32:08.629 8583-8587/? I/dalvikvm﹕ at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:327) 09-03 15:32:08.629 8583-8587/? I/dalvikvm﹕ at retrofit.RestAdapter$RestHandler.access$100(RestAdapter.java:262) 09-03 15:32:08.629 8583-8587/? I/dalvikvm﹕ at retrofit.RestAdapter$RestHandler$2.obtainResponse(RestAdapter.java:313) 09-03 15:32:08.629 8583-8587/? I/dalvikvm﹕ at retrofit.CallbackRunnable.run(CallbackRunnable.java:38) 09-03 15:32:08.629 8583-8587/? I/dalvikvm﹕ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) 09-03 15:32:08.629 8583-8587/? I/dalvikvm﹕ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) 09-03 15:32:08.629 8583-8587/? I/dalvikvm﹕ at retrofit.Platform$Android$2$1.run(Platform.java:136) 09-03 15:32:08.629 8583-8587/? I/dalvikvm﹕ at java.lang.Thread.run(Thread.java:856)[/i] So, the question becomes, what does Amazon do to my .apk files once I submit them? Does it attempt to do any sort of 'proguard' on my code? -- https://github.com/square/retrofit/issues/117 For comparison, I've uploaded the two versions of the .apk files here; http://cl.ly/3C2u221C191H
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 for the details. We are aware about the issue and our teams are working on it actively. As you already know, the same issue has been reported by another developer here : https://forums.developer.amazon.com/forums/thread.jspa?threadID=3886&tstart... ... I will update both threads once I get some feedback from team. Thanks for your patience.
10 |5000

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

bitzandpixelz avatar image
bitzandpixelz answered
Are there any updates regarding this issue? Our app uses annotations and reflection a lot and we are getting similar crash reports. Do yo know what causes these crashes? Is there any way to fix this?
10 |5000

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

Nick Gardner avatar image
Nick Gardner answered
Hi, Can you please submit a contact us form ( https://developer.amazon.com/appsandservices/support/contact/contact-us) with the specific app and app keys you are having an issue with, as this will allow us to look into the issue in more detail and help you solve this problem. Thanks, Nick
10 |5000

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

bitzandpixelz avatar image
bitzandpixelz answered
Hi Nick, I already did that. The case number of the support ticket is: 1315086921.
10 |5000

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