NullPointerException: DisplayInfo.refreshRate

68 views
Skip to first unread message

itzno...@gmail.com

unread,
Jun 26, 2022, 2:39:03 PM6/26/22
to Google Mobile Ads SDK Developers
AdMob: 21.0.0
Mediation (OB): AppLovin
Devices affected: Samsung ¯\_()_/¯
Android Version: 5.1.1
Crash Impact: Low
Reproducible: No (no sample)

Stacktrace: 
Fatal Exception: java.lang.NullPointerException: Attempt to read from field 'float android.view.DisplayInfo.refreshRate' on a null object reference
       at android.view.Choreographer.getRefreshRate(Choreographer.java:181)
       at android.view.Choreographer.<init>(Choreographer.java:170)
       at android.view.Choreographer.<init>(Choreographer.java:72)
       at android.view.Choreographer$1.initialValue(Choreographer.java:98)
       at android.view.Choreographer$1.initialValue(Choreographer.java:91)
       at java.lang.ThreadLocal$Values.getAfterMiss(ThreadLocal.java:430)
       at java.lang.ThreadLocal.get(ThreadLocal.java:65)
       at android.view.Choreographer.getInstance(Choreographer.java:192)
       at com.google.android.gms.ads.exoplayer3.video.i.handleMessage(i.java:2)
       at android.os.Handler.dispatchMessage(Handler.java:98)
       at android.os.Looper.loop(Looper.java:135)
       at android.os.HandlerThread.run(HandlerThread.java:61)

Mobile Ads SDK Forum Advisor

unread,
Jun 27, 2022, 9:08:10 AM6/27/22
to itzno...@gmail.com, google-adm...@googlegroups.com

Hi Darshan,

Thank you for reaching out to us.

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

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2cDImk:ref

Mobile Ads SDK Forum Advisor

unread,
Jul 1, 2022, 10:44:18 AM7/1/22
to itzno...@gmail.com, google-adm...@googlegroups.com

Hi Darshan,

Thank you for patiently waiting.

The team wants to confirm if did the error happen when the you display an AppLovin ad? AppLovin SDK currently doesn't support Exoplayer v3. According to your `.pom` file, you're using Exoplayer version 2.15.1, but the latest public version seems to be 2.18.0.

Mobile Ads SDK Forum Advisor

unread,
Jul 4, 2022, 4:42:07 AM7/4/22
to itzno...@gmail.com, google-adm...@googlegroups.com
Hi Darshan,

Thank you for sharing your insight on this. I've shared your response to the team to further check this. We will update you again once we have more information.

Mobile Ads SDK Forum Advisor

unread,
Jul 25, 2022, 11:21:21 AM7/25/22
to itzno...@gmail.com, google-adm...@googlegroups.com

Hi Darshan,

I hope you're doing well.

I just want to circle back on this. The team mentioned that the issue was resolved in this thread: https://github.com/google/ExoPlayer/issues/3144. Feel free to come back to us with more information if you still encounter any issues regarding this.

itzno...@gmail.com

unread,
Jul 25, 2022, 11:34:28 AM7/25/22
to Google Mobile Ads SDK Developers
Hi Team,
As per the link provided I see that the issue was fixed a long ago.

However I still see the crash on that particular Samsung device on 5.1.1 that I've reported earlier.
Also, doesn't the Ads SDK use a custom ExoPlayer wrapper that might've caused this?
I can see its a Choreographer based crash so it is possible that there's an issue with that specific device's platform implementation as well since Samsung is very notorious in this space.

Mobile Ads SDK Forum Advisor

unread,
Jul 25, 2022, 9:17:33 PM7/25/22
to itzno...@gmail.com, google-adm...@googlegroups.com
Hi Darshan,

Thank you for reporting this back to us. Could you please provide more information on the crash?
  • Percentage occurrences 
  • Affected Devices (and its Android versions)
  • Currently SDK version used
Regards,
Google Logo
Teejay Wennie
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2cDImk:ref
Reply all
Reply to author
Forward
0 new messages