question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Alot of ANRs and crashes after updating to 7.x

See original GitHub issue
  • Unity version: 2021.3.4
  • Google Mobile Ads Unity plugin version: 7.0.2
  • Platform: android
  • Platform OS version: /
  • Any specific devices issue occurs on: /
  • Mediation ad networks used, and their versions: Unity ADs 3.2.0, AppLovin 6.2.0, Facebook 3.7.0

I don’t know how to reproduce, but this is screen shot from google play console, after we upgraded from 6.0.2 to new admob plugins all of this started:

image image

Admob team this is really critical, because of all new SDKs we upgraded Unity version and now we don’t really want to go back. Can you give us some advice what to do?

We are also using those optimization flags: <meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION" android:value="true"/> <meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING" android:value="true"/>

Please any advice would be appreciated, because google is now ranking us very badly because of this…

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:67 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
snappedToGridcommented, Apr 20, 2023

Oh that might work too, didn’t even know it existed. Google should seriously warn about these kind of pitfalls and refer to these kind of solutions. I’d expect as little as that from a company that is earning billions of dollars from advertising. These kind of errors seriously make me consider switching to another ad platform, as it’s certainly not the only cryptic problem I had with AdMob so far.

1reaction
snappedToGridcommented, Apr 20, 2023

Not sure it’s the exact same problem, but I figured this could be helpful to someone else reading this thread. I’ve been getting fatal signal 5 when the “OnUserEarnedReward” event fired. I was taking UI actions there such as hiding a canvas, etc. and apparently this callback function isn’t running from the main thread, and if you try and take UI actions, the app might just crash. Sigh.

If you got this problem and you’re looking for a quick fix, calling this utility to run UI functions on the main thread can help. https://github.com/PimDeWitte/UnityMainThreadDispatcher

Read more comments on GitHub >

github_iconTop Results From Across the Web

View crashes and application not responding (ANR) errors
Open Play Console. · Select an app. · On the left menu, select Quality > Android vitals > Crashes and ANRs. · Near...
Read more >
Bug - Lots of Crashes/ANRs (libunity.so (???))
This game was built with Unity 2017.4.40f1. ANRs occur only on Android 11. Could this be this issue just appearing in another shape?...
Read more >
RuntimeException causes ANR instead of crash in android
ANR occurs on every RuntimeException. App do not insta crash like about one year ago, it just freezes and dose not return any...
Read more >
Symbolicate Android crashes and ANR for Unity games
Crashes and ANRs on Android produce a stack trace, which is a snapshot of the sequence of nested functions called in your game...
Read more >
ANRs | App quality
An ANR is triggered for your app when one of the following conditions ... This includes ANRs, low memory, app crashes, excessive CPU...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found