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.

"admob-plus-cordova" addBannerViewWithLinearLayout sometimes throw java.lang.StackOverflowError

See original GitHub issue

After updated the plugin, i have a lot of erros

I using latest version “admob-plus-cordova”: “^1.9.0”,

  Fatal Exception: java.lang.StackOverflowError: stack size 8192KB
       at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:8837)
       at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:8839)
       at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:8839)
       at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:8839)
       at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:8839)
       at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:8839)
       at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:8839)
       at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:8839)
       at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:8839)
       at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:8839)
       at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:8839)
       at android.view.View.resetRtlProperties(View.java:21511)
       at android.view.ViewGroup.addViewInner(ViewGroup.java:6116)
       at android.view.ViewGroup.addView(ViewGroup.java:5884)
       at android.view.ViewGroup.addView(ViewGroup.java:5824)
       at android.view.ViewGroup.addView(ViewGroup.java:5796)
       at admob.plugin.ads.Banner.addBannerViewWithLinearLayout(Banner.java:301)
       at admob.plugin.ads.Banner.addBannerView(Banner.java:271)
       at admob.plugin.ads.Banner.reloadBannerView(Banner.java:212)
       at admob.plugin.ads.Banner.onConfigurationChanged(Banner.java:197)
       at admob.plugin.AdMob.onConfigurationChanged(AdMob.java:204)
       at org.apache.cordova.PluginManager.onConfigurationChanged(PluginManager.java:509)
       at org.apache.cordova.CordovaActivity.onConfigurationChanged(CordovaActivity.java:495)
       at android.app.ActivityThread.performActivityConfigurationChanged(ActivityThread.java:6248)
       at android.app.ActivityThread.performConfigurationChangedForActivity(ActivityThread.java:6074)
       at android.app.ActivityThread.performConfigurationChangedForActivity(ActivityThread.java:6052)
       at android.app.ActivityThread.handleActivityConfigurationChanged(ActivityThread.java:6662)
       at android.app.servertransaction.ActivityConfigurationChangeItem.execute(ActivityConfigurationChangeItem.java:51)
       at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:246)
       at android.app.ActivityThread.main(ActivityThread.java:8506)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ratsoncommented, May 2, 2021

@victorvhpg Would you check if 1.9.1 fixes the issue?

0reactions
victorvhpgcommented, May 7, 2021

@ratson thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix java.lang.StackOverflowError in Java - Rollbar
The java. lang. StackOverflowError indicates that the application stack is exhausted and is usually caused by deep or infinite recursion.
Read more >
What causes a java.lang.StackOverflowError - Stack Overflow
StackOverflowError is thrown to indicate that the application's stack was exhausted, due to deep recursion i.e your program/script recurses too ...
Read more >
The StackOverflowError in Java - Baeldung
In this situation, the constructors of each other are getting called repetitively which causes this error to be thrown. This can also be ......
Read more >
Jira applications stall due to StackOverflowError exception
Problem. Jira applications can stall when a java.lang.StackOverflowError exception occurs due to corruption of internal memory structures.
Read more >
How to deal with StackOverflowError in Java? - LinkedIn
StackOverflowError is thrown by the Java Virtual Machine (JVM). When a StackOverflowError occurs java.lang.StackOverflowError, it is mainly ...
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