Open becvert opened 5 months ago
onDestroy too
Exception java.lang.RuntimeException:
at android.app.ActivityThread.performDestroyActivity (ActivityThread.java:5176)
at android.app.ActivityThread.handleDestroyActivity (ActivityThread.java:5195)
at android.app.servertransaction.DestroyActivityItem.execute (DestroyActivityItem.java:39)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:145)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2199)
at android.os.Handler.dispatchMessage (Handler.java:112)
at android.os.Looper.loop (Looper.java:216)
at android.app.ActivityThread.main (ActivityThread.java:7625)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:987)
Caused by java.util.ConcurrentModificationException:
at java.util.LinkedHashMap$LinkedHashIterator.nextNode (LinkedHashMap.java:760)
at java.util.LinkedHashMap$LinkedValueIterator.next (LinkedHashMap.java:788)
at admob.plus.cordova.AdMob.onDestroy (AdMob.kt:208)
at org.apache.cordova.PluginManager.onDestroy (PluginManager.java:339)
at org.apache.cordova.CordovaWebViewImpl.handleDestroy (CordovaWebViewImpl.java:531)
at org.apache.cordova.CordovaActivity.onDestroy (CordovaActivity.java:327)
at android.app.Activity.performDestroy (Activity.java:7737)
at android.app.Instrumentation.callActivityOnDestroy (Instrumentation.java:1327)
at android.app.ActivityThread.performDestroyActivity (ActivityThread.java:5161)
Since I replaced val ads = synchronizedMap(mutableMapOf<String, AdBase>())]
in ExecuteContext.kt
with ConcurrentHashMap
I don't see the above exceptions.
Describe the bug
To Reproduce I did not reproduce it myself, just noticed it on Google Play Console lately
Additional context Android SDK 29 Android SDK 33 so far
Thank you