googleads / googleads-mobile-unity

Official Unity Plugin for the Google Mobile Ads SDK
https://developers.google.com/admob/unity
Apache License 2.0
1.36k stars 1.08k forks source link

Fatal Exception: java.lang.Error #1015

Closed amorato closed 1 year ago

amorato commented 5 years ago

We are having crashes of Adcolony plugin in Unity on Android 8.1 and 9. Seems like a new campaign.

image

Caused by java.lang.OutOfMemoryError Failed to allocate a 59759896 byte allocation with 8699952 free bytes and 8MB until OOM, max allowed footprint 201326592, growth limit 201326592 java.lang.StringFactory.newStringFromChars (StringFactory.java:267) java.io.BufferedReader.readLine (BufferedReader.java:400) com.adcolony.sdk.t.a (SourceFile:562) com.adcolony.sdk.t.c (SourceFile:526) com.adcolony.sdk.t$4$1.run (SourceFile:292) com.adcolony.sdk.t.a (SourceFile:700) com.adcolony.sdk.t$4.a (SourceFile:289) com.adcolony.sdk.ae.a (SourceFile:209) com.adcolony.sdk.ae.b (SourceFile:182) com.adcolony.sdk.a.f (SourceFile:188) com.adcolony.sdk.am.run (SourceFile:62) java.lang.Thread.run (Thread.java:764)

We have GoogleMobileAds mediation 3.18.3

UragayalaDeepika commented 4 years ago

@amorato Are you able to reproduce the issue? From the logs, it seems to be an issue with the Adcolony network. Can you add more details about the error if you are able to reproduce?

amorato commented 4 years ago

@UragayalaDeepika I can reproduce it when Adcolony's library is in the apk, even with the AdColony network disabled in admob dashboard. Playing with Adcolony libraries in the apk the crash appear easily 2 - 4 minutes after admob initialization.

We tried 3 different Adcolony latest versions as graphic show the app versions.

We didn't made any changes in apk when the crash appear on Crashlytics.

UragayalaDeepika commented 4 years ago

@amorato As stack trace does contain our SDK symbols, we would need more information to debug this. Can you provide us any other details like the type of Ads that you are serving, a sample project to reproduce the issue locally?

namquang93 commented 4 years ago

We got exactly the same error in our game which is using Admob v4.1.0, Facebook SDK 7.18.0 and Firebase 6.0.0. We can reproduce it in our game 100% by force quit the game and then reopen it immediately.