question

R. Steventon avatar image
R. Steventon asked

Crash in Amazon com.amazon.device.ads code

Caught this in my crash logs, and thought I would send it to you guys. Fatal Exception: java.lang.ExceptionInInitializerError android.net.wifi.IWifiManager$Stub$Proxy.getConnectionInfo (IWifiManager.java:862) android.net.wifi.WifiManager.getConnectionInfo (WifiManager.java:918) com.amazon.device.ads.DeviceInfo.setMacAddress (SourceFile:93) com.amazon.device.ads.DeviceInfo. (SourceFile:72) Device: Samsung Galaxy Ring SPH-M840, non-rooted. So... you probably need to error trap your setMacAddress() .....
mobile ads
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 Steventon, Thank you for bring this into our notice. One thing, I did not find the error in the crash logs reported in your app in distribution portal. Can you share the app name so that I can send to internal appropriate team. Also how and where did you get the crash reported.
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 Steventon, 1. What version of the MobileAds SDK was used in the App when this issue occurred ? 2. Did this issue occur only once ? or Does the issue reproduce more frequently or consistently ?
10 |5000

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

R. Steventon avatar image
R. Steventon answered
Sorry, I don't check this forum very often. Occurred in the latest SDK. v5.1.153. App is [WordHero]. Package is com.rhs.wordhero.
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, did this issue occur only once ? or Does the issue reproduce more frequently or consistently ?
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
Also, I just looked on all the crashes reported in to our system, I did not find the one you have mentioned. Are you using any other tool? Please let us know how frequent the crash happens in your app due to same reason.
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
Please reply.
10 |5000

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

R. Steventon avatar image
R. Steventon answered
I have not seen this very often. Maybe 1 per week with 50k DAU. The crash was captured with Crashlytics.
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 reply. Passed to appropriate team. For other developers, below crashes are being detected from Mobile Ads SDK. We are working on these. Crash 1: Fatal Exception: java.lang.RuntimeException An error occured while executing doInBackground() android.os.AsyncTask$3.done (AsyncTask.java:299) java.lang.Thread.run (Thread.java:856) Caused by java.lang.SecurityException java.net.InetAddress.lookupHostByName (InetAddress.java:418) org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java:465) com.amazon.device.ads.WebRequest.makeCall (SourceFile:381) com.amazon.device.ads.SISRequestor.callSIS (SourceFile:63) Crash 2: Fatal Exception: java.lang.NullPointerException android.webkit.AccessibilityInjector$TextToSpeechWrapper$1.onInit (AccessibilityInjector.java:753) android.webkit.WebSettingsClassic.setJavaScriptEnabled (WebSettingsClassic.java:1127) com.amazon.device.ads.MraidView.initialize (SourceFile:202) com.amazon.device.ads.MraidView. (SourceFile:162) com.amazon.device.ads.MraidView. (SourceFile:125) com.amazon.device.ads.MraidRenderer.render (SourceFile:69) com.amazon.device.ads.AdController.handleResponse (SourceFile:505) com.amazon.device.ads.AdLoader.finalizeFetchAd (SourceFile:287) com.amazon.device.ads.AdLoader$AdFetcherTask$1.run (SourceFile:381) android.os.Handler.handleCallback (Handler.java:747) Crash 3: Fatal Exception: java.lang.ExceptionInInitializerError android.app.ContextImpl$39.createService (ContextImpl.java:529) android.content.ContextWrapper.getSystemService (ContextWrapper.java:423) com.amazon.device.ads.DeviceInfo.setMacAddress (SourceFile:86) com.amazon.device.ads.DeviceInfo. (SourceFile:72) ... Caused by java.lang.NoSuchFieldError android.net.wifi.WifiManager. (WifiManager.java:602) android.content.ContextWrapper.getSystemService (ContextWrapper.java:423) com.amazon.device.ads.DeviceInfo.setMacAddress (SourceFile:86) com.amazon.device.ads.DeviceInfo. (SourceFile:72)
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
Crashes #2 and #3 are fixed and targeted to be released in the next SDK update. Crash #1 is already fixed in SDK 5.1.242 (the current version on the Developer Portal).
10 |5000

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