cordova-plugin-inappbrowser: InAppBrowser: java.lang.IllegalArgumentException
Hello all,
We have found this error on Google Play Store console that seams to be an InAppBrowser problem
java.lang.IllegalArgumentException:
at android.view.WindowManagerGlobal.findViewLocked (WindowManagerGlobal.java:533)
at android.view.WindowManagerGlobal.removeView (WindowManagerGlobal.java:433)
at android.view.WindowManagerImpl.removeViewImmediate (WindowManagerImpl.java:124)
at android.app.Dialog.dismissDialog (Dialog.java:518)
at android.app.Dialog.dismiss (Dialog.java:501)
at org.apache.cordova.inappbrowser.InAppBrowser$5$1.onPageFinished (InAppBrowser.java:462)
at vu.d (PG:307)
at aCg.handleMessage (PG:72)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:214)
at android.app.ActivityThread.main (ActivityThread.java:7032)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:965)
Please help on this I am getting this crash issue frequently.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 5
- Comments: 19 (4 by maintainers)
Commits related to this issue
- fix java.lang.IllegalArgumentException https://github.com/apache/cordova-plugin-inappbrowser/issues/470 — committed to Slayterik/cordova-plugin-inappbrowser by deleted user 4 years ago
- fix java.lang.IllegalArgumentException https://github.com/apache/cordova-plugin-inappbrowser/issues/470 Bug description https://stackoverflow.com/questions/22924825/view-not-attached-to-window-manager... — committed to Slayterik/cordova-plugin-inappbrowser by deleted user 4 years ago
- GH-470 InAppBrowser: java.lang.IllegalArgumentException Fix interacting with views when Activity destroyed Bug description https://stackoverflow.com/questions/22924825/view-not-attached-to-window-man... — committed to Slayterik/cordova-plugin-inappbrowser by deleted user 4 years ago
- Android GH-470 InAppBrowser: java.lang.IllegalArgumentException Fix interacting with views when Activity destroyed Bug description https://stackoverflow.com/questions/22924825/view-not-attached-to-wi... — committed to Slayterik/cordova-plugin-inappbrowser by deleted user 4 years ago
- Android GH-470 InAppBrowser: java.lang.IllegalArgumentException (#616) Fix interacting with views when Activity destroyed Bug description https://stackoverflow.com/questions/22924825/view-not-attach... — committed to apache/cordova-plugin-inappbrowser by Slayterik 4 years ago
- Merge branch 'master' into 3.2.x * master: docs: replaces outdated transition and presentation style links (#662) chore: remove deprecated orientation methods (#666) Fix incorrect TypeScript ty... — committed to expertanswerz/cordova-plugin-inappbrowser by ChanchleshSuryawanshi 4 years ago
- Android GH-470 InAppBrowser: java.lang.IllegalArgumentException (#616) Fix interacting with views when Activity destroyed Bug description https://stackoverflow.com/questions/22924825/view-not-attach... — committed to jalios/cordova-plugin-inappbrowser by Slayterik 4 years ago
- Android GH-470 InAppBrowser: java.lang.IllegalArgumentException (#616) Fix interacting with views when Activity destroyed Bug description https://stackoverflow.com/questions/22924825/view-not-attach... — committed to Liovareg/cordova-plugin-inappbrowser by Slayterik 4 years ago
We are facing the same problem. In our app, the incidence rate is high in Samsung Galaxy S9, but it is also occurring in Sony Xperia XZ2 Compact.
@janpio I have a bit more details. The issue also happens in cordova-android 8.0.0. We have an app with the inappbrowser plugin version built from master branch around February and it was not fixed by then.
Judging from the statistics, the problem is prevalent in Samsung phones (~80% of cases) but also visible in Huawei and others. Regarding android version, we had single instances in android 6, and the newer the version the more frequent the problem. Currently 95% cases is android 9.
https://issues.apache.org/jira/browse/CB-13259
Is this related to https://github.com/apache/cordova-plugin-inappbrowser/issues/348 ?
Hi, let me share our case… I’m using inappbrowser 3.0.0 with Cordova 7.1.0 / cordova-android 6.4.0.
Here are the results on our Firebase Console.
Almost all are from Android 9.
And several devices caused this issue.
Also, it happens after the app becomes foreground from background status.
Hope it helps.
We’ve faced this issue on Android 8.1 and Android 9 devices. Our crash logs almost the same as the other ones.
Hello, we are also seeing this issue in our google play console (Cordova-android 8 / inappbrowser 3) Attached is the devices and versions repartition. I haven’t found any way to reproduce the issue…
We are seeing the crash, too (only Samsung devices and Android 9). Unfortunately I have no reproducible example neither.