Crash on Android
larpon opened this issue · 2 comments
larpon commented
I'm getting this on Android after (unknown) amount of requests have been made
E/dalvikvm(19482): JNI ERROR (app bug): local reference table overflow (max=1024)
W/dalvikvm(19482): JNI local reference table (0x74ebeb78) dump:
W/dalvikvm(19482): Last 10 entries (of 1024):
W/dalvikvm(19482): 1023: 0x4125e880 com.google.android.gms.ads.AdRequest$Builder
W/dalvikvm(19482): 1022: 0x4125ed90 com.google.android.gms.ads.AdRequest
W/dalvikvm(19482): 1021: 0x4125e880 com.google.android.gms.ads.AdRequest$Builder
W/dalvikvm(19482): 1020: 0x4125eb88 com.google.firebase.admob.internal.cpp.AdRequestHelper
W/dalvikvm(19482): 1019: 0x4125e880 com.google.android.gms.ads.AdRequest$Builder
W/dalvikvm(19482): 1018: 0x4125e880 com.google.android.gms.ads.AdRequest$Builder
W/dalvikvm(19482): 1017: 0x4125e880 com.google.android.gms.ads.AdRequest$Builder
W/dalvikvm(19482): 1016: 0x412ca608 com.google.android.gms.ads.AdRequest$Builder
W/dalvikvm(19482): 1015: 0x412c4110 com.google.android.gms.ads.AdRequest
W/dalvikvm(19482): 1014: 0x412ca608 com.google.android.gms.ads.AdRequest$Builder
W/dalvikvm(19482): Summary:
W/dalvikvm(19482): 1 of java.lang.Class
W/dalvikvm(19482): 146 of com.google.android.gms.ads.AdRequest (146 unique instances)
W/dalvikvm(19482): 730 of com.google.android.gms.ads.AdRequest$Builder (146 unique instances)
W/dalvikvm(19482): 146 of com.google.firebase.admob.internal.cpp.AdRequestHelper (146 unique instances)
W/dalvikvm(19482): 1 of com.google.firebase.admob.internal.cpp.InterstitialAdHelper
E/dalvikvm(19482): Failed adding to JNI local ref table (has 1024 entries)
jonsimantov commented
Thanks for the report! We've identified the issue - leaking JNI references in InterstitialAd - and will have a fix shortly.
jonsimantov commented
Version 2.1.2 of the Firebase C++ SDK has been released. The only change between this version and the previous version (2.1.1) is a fix for this AdMob issue. You can view the release notes here and download the release from https://firebase.google.com/docs/cpp/setup.