Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] When trying to use this library with WebViews #21

Open
aashish-bth opened this issue Feb 9, 2019 · 2 comments
Open

[Error] When trying to use this library with WebViews #21

aashish-bth opened this issue Feb 9, 2019 · 2 comments
Assignees
Labels

Comments

@aashish-bth
Copy link

When trying to use this library with WebViews it encounters android.os.BadParcelableException.

In android.os.Parcel.readParcelableCreator it encounters android.os.BadParcelableException in Android 7.1 & Android 8.0 that logs are below:

java.lang.RuntimeException: at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2763) at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2824) at android.app.ActivityThread.-wrap12 (ActivityThread.java) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1546) at android.os.Handler.dispatchMessage (Handler.java:102) at android.os.Looper.loop (Looper.java:154) at android.app.ActivityThread.main (ActivityThread.java:6351) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:896) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:786)

Caused by: android.os.BadParcelableException:
at android.os.Parcel.readParcelableCreator (Parcel.java:2540) at android.os.Parcel.readParcelable (Parcel.java:2462) at android.os.Parcel.readValue (Parcel.java:2365) at android.os.Parcel.readSparseArrayInternal (Parcel.java:2813) at android.os.Parcel.readSparseArray (Parcel.java:2068) at android.os.Parcel.readValue (Parcel.java:2422) at android.os.Parcel.readArrayMapInternal (Parcel.java:2732) at android.os.BaseBundle.unparcel (BaseBundle.java:269) at android.os.Bundle.getSparseParcelableArray (Bundle.java:934) at com.android.internal.policy.PhoneWindow.restoreHierarchyState (PhoneWindow.java:2140) at android.app.Activity.onRestoreInstanceState (Activity.java:1060) at android.app.Activity.performRestoreInstanceState (Activity.java:1015) at android.app.Instrumentation.callActivityOnRestoreInstanceState (Instrumentation.java:1175) at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2736)

And the same error, in android.os.Parcel.readParcelableCreator it encounters android.os.BadParcelableException but in Android 4.4, Android 5.1 & Android 6.0 that logs are below:

java.lang.RuntimeException: at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3255) at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3351) at android.app.ActivityThread.access$1100 (ActivityThread.java:222) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1796) at android.os.Handler.dispatchMessage (Handler.java:102) at android.os.Looper.loop (Looper.java:158) at android.app.ActivityThread.main (ActivityThread.java:7230) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)

Caused by: android.os.BadParcelableException:
at android.os.Parcel.readParcelableCreator (Parcel.java:2436) at android.os.Parcel.readParcelable (Parcel.java:2358) at android.os.Parcel.readValue (Parcel.java:2264) at android.os.Parcel.readSparseArrayInternal (Parcel.java:2675) at android.os.Parcel.readSparseArray (Parcel.java:1967) at android.os.Parcel.readValue (Parcel.java:2321) at android.os.Parcel.readArrayMapInternal (Parcel.java:2614) at android.os.BaseBundle.unparcel (BaseBundle.java:221) at android.os.Bundle.getSparseParcelableArray (Bundle.java:856) at com.android.internal.policy.PhoneWindow.restoreHierarchyState (PhoneWindow.java:2326) at android.app.Activity.onRestoreInstanceState (Activity.java:1165) at android.app.Activity.performRestoreInstanceState (Activity.java:1110) at android.app.Instrumentation.callActivityOnRestoreInstanceState (Instrumentation.java:1192) at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3228)

Plz can you look into it and either suggest any way to resolve this error or you do the required changes in library.

@michael-rapp michael-rapp self-assigned this Feb 9, 2019
@michael-rapp
Copy link
Owner

michael-rapp commented Feb 9, 2019

All I can say from looking at the stacktraces is that the issue does not seem to be related to this library at all. The package name of the library de.mrapp.android.tabswitcher does not occur even once in the stacktraces.

As I said in #19 I don't have any experiences with WebViews and personally I never intended to use this libary with WebViews. Therefore I honestly don't know what's going on here. Also you have not provided any additional information besides the stacktraces. It would be useful to know under which circumstances the error occurs and how it can be reproduced.

@aashish-bth
Copy link
Author

aashish-bth commented Feb 9, 2019

This error generally(not always) encounters when we minimize the app for a long time and then try to reopen it using Overview button.
Or, after minimizing my app I use some other apps then try to reopen my app.

These are the cases that I noticed recently. There might be some other case also where it causes the same error.

In stack trace, my package name is also not shown. So I think it belongs to the library that I use(this library), that's why it post these stack trace here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants