googleads / googleads-mobile-android-mediation

Sample Android project showcasing how to build a mediation adapter or custom event for the Google Mobile Ads SDK.
Apache License 2.0
241 stars 197 forks source link

Fatal Exception: java.lang.NullPointerException Attempt to invoke virtual method 'int android.os.Bundle.size()' on a null object reference #485

Closed rahulraghuwanshii closed 10 months ago

rahulraghuwanshii commented 1 year ago

Getting lot of crashes in xiaomi devices only. Below are the details :

Device Name : Redmi Note 10S Operating System : Android 13

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.os.Bundle.size()' on a null object reference at android.os.Parcel.createExceptionOrNull(Parcel.java:3017) at android.os.Parcel.createException(Parcel.java:2995) at android.os.Parcel.readException(Parcel.java:2978) at android.os.Parcel.readException(Parcel.java:2920) at android.view.IWindowManager$Stub$Proxy.getSupportedDisplayHashAlgorithms(IWindowManager.java:5532) at android.view.displayhash.DisplayHashManager.getSupportedHashAlgorithms(DisplayHashManager.java:71) at com.google.android.gms.ads.eventattestation.internal.l.<init>(:com.google.android.gms.policy_ads_fdr_dynamite@232400001@232400000057.538171701.538171701:33) at com.google.android.gms.ads.nonagon.ad.j.e(:com.google.android.gms.policy_ads_fdr_dynamite@232400001@232400000057.538171701.538171701:247) at com.google.android.gms.ads.nonagon.ad.g.run(:com.google.android.gms.policy_ads_fdr_dynamite@232400001@232400000057.538171701.538171701:3) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637) at java.lang.Thread.run(Thread.java:1012)

NVentimiglia commented 1 year ago

Hi @rahullraghuwanshi can you provide some more details?

rahulraghuwanshii commented 1 year ago

Hi @NVentimiglia

Here are the details :

Caused by android.os.RemoteException: Remote stack trace: at com.android.server.wm.DisplayHashController.getDisplayHashAlgorithms(DisplayHashController.java:250) at com.android.server.wm.DisplayHashController.getSupportedHashAlgorithms(DisplayHashController.java:145) at com.android.server.wm.WindowManagerService.getSupportedDisplayHashAlgorithms(WindowManagerService.java:9818) at android.view.IWindowManager$Stub.onTransact(IWindowManager.java:3180) at com.android.server.wm.WindowManagerService.onTransact(WindowManagerService.java:1600)

NVentimiglia commented 1 year ago

Hi @rahullraghuwanshi

It is pretty hard to diagnose issues without replication steps. Can you open up a support case on https://groups.google.com/g/google-admob-ads-sdk ? This request will be sent over to the SDK team which is better equipped to solve this specific issue.

joshh-devrel commented 10 months ago

We have closed this issue as we were unable to reproduce it on our end.

@rahullraghuwanshi

As per @NVentimiglia's previous comment, this appears to be an issue with the Google Mobile Ads SDK rather than mediation. Once you have gathered sufficient information, such as reproducing steps, a full stack trace, and a sample project, you can open a support case using the contact form at https://developers.google.com/admob/android/support.