Fatal Exception: java.lang.NullPointerException

1,194 views
Skip to first unread message

Blue Ocean

unread,
Oct 17, 2022, 4:31:52 AM10/17/22
to Google Mobile Ads SDK Developers
Please see the Crashlytics log below.
- We cannot reproduce this crash
- We have no more information
- A small number of users seem to have this problem
- AdMob SDK 21.3.0
- Android 13, Pixel 4a


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:5193)
       at android.view.displayhash.DisplayHashManager.getSupportedHashAlgorithms(DisplayHashManager.java:71)
       at com.google.android.gms.ads.eventattestation.internal.l.<init>(l.java:2)
       at com.google.android.gms.ads.nonagon.ad.j.e(j.java:9)
       at com.google.android.gms.ads.nonagon.ad.g.run(g.java)
       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)


Mobile Ads SDK Forum Advisor

unread,
Oct 17, 2022, 12:53:55 PM10/17/22
to dev.pho...@gmail.com, google-adm...@googlegroups.com
Hi Blue,

Thank you for raising this to us. Before I can raise this to the wider team, could you please share to us your AdMob app ID as well via reply privately to author option as well?

Regards,
Google Logo
Teejay Wennie
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2faenE:ref

Blue Ocean

unread,
Oct 17, 2022, 8:05:23 PM10/17/22
to Google Mobile Ads SDK Developers
Sorry.

It seems that this issue has already been reported to the Google Issue Tracker. You can get more information on this issue there.

Mobile Ads SDK Forum Advisor

unread,
Oct 18, 2022, 3:12:18 AM10/18/22
to dev.pho...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for your response.

Let me share this to the rest of the team. We will update you once we have more information on this.

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2faenE:ref

Mobile Ads SDK Forum Advisor

unread,
Jan 30, 2023, 5:29:49 AM1/30/23
to dev.pho...@gmail.com, google-adm...@googlegroups.com
Hello,

I hope you're safe and doing fine.

I just want to circle back on the reported issue here. The team provided their feedback and mentioned that the issue is not reproducible. Please do me know if you still encounter the reported issue using the latest version of the SDK, so I could raise this to the team once again.

Regards,
Google Logo
Teejay Wennie
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2faenE:ref

Max

unread,
Mar 24, 2023, 5:15:32 PM3/24/23
to Google Mobile Ads SDK Developers
We are still experiencing this issue using 

implementation 'com.google.android.gms:play-services-ads:21.5.0'


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:5193)
       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@230500000@230500000057.504263922.504263922:2)
       at com.google.android.gms.ads.nonagon.ad.j.e(:com.google.android.gms.policy_ads_fdr_dynamite@230500000@230500000057.504263922.504263922:9)
       at com.google.android.gms.ads.nonagon.ad.g.run(:com.google.android.gms.policy_ads_fdr_dynamite@230500000@230500000057.504263922.504263922)

       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)

Mobile Ads SDK Forum Advisor

unread,
Mar 27, 2023, 4:03:40 AM3/27/23
to max.bi...@gmail.com, google-adm...@googlegroups.com
Hi Max,

Thank you for reporting this back to us. Before I can relay this to the team, would you able to share the following via reply privately to author option?
  • AdMob App ID
  • Affected devices
  • Percentage occurrences of the crash
Regards,
Google Logo Mobile Ads SDK Team


ref:_00D1U1174p._5004Q2faenE:ref

Max

unread,
Mar 30, 2023, 4:00:08 PM3/30/23
to Google Mobile Ads SDK Developers
Pixel 4 Android 13, Pixel 4XL Android 13

Not too many unique users but a lot of repeated crashes for the same users.

Mobile Ads SDK Forum Advisor

unread,
Mar 30, 2023, 5:02:24 PM3/30/23
to max.bi...@gmail.com, google-adm...@googlegroups.com

Hi Max,

Thank you for your response.

Let me share this to the wider team to further check this crashes that is happening in your app. We will update you once we have more information.

Dan Watling

unread,
Apr 13, 2023, 12:12:08 PM4/13/23
to Google Mobile Ads SDK Developers
FWIW, my team is seeing this same issue within our app. It's isolated to Pixel 4 and Pixel 4 XL devices running Android 13. No other device experiences this crash. This has affected a couple hundred unique users over the past 90 days.

The link shared above (https://issuetracker.google.com/issues/240449675) does indeed describe the issue and claims it is fixed, but there is no information as to where the fix has been applied or when it would be released. If we at least had some insight into that, then that would be something. We are using 21.3.0 of "com.google.android.gms:play-services-ads-lite".

-Dan

Mobile Ads SDK Forum Advisor

unread,
Apr 13, 2023, 3:46:49 PM4/13/23
to daniel....@gmail.com, google-adm...@googlegroups.com

Hi Dan,

Thank you for reaching out to us and sharing the open thread with regard to this error. Let me provide this information to the rest of the team for further investigation. We will update this thread once we have more information.

Mobile Ads SDK Forum Advisor

unread,
Jul 7, 2023, 1:30:58 AM7/7/23
to daniel....@gmail.com, google-adm...@googlegroups.com
Hello Dan,

Thank you for patiently waiting. The issue that was reported in this thread has been addressed by our wider team. Kindly update to the latest version of Google Mobile Ads Lite SDK to apply the fix. Feel free to reach back to us if the issue persists even after updating.
 
This message is in relation to case "ref:_00D1U1174p._5004Q2faenE:ref"

Thanks,

 
Google Logo Mobile Ads SDK Team


Reply all
Reply to author
Forward
0 new messages