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

IllegalArgumentException: Material CAB crash #53

Open
rajarshikhatua100 opened this issue May 4, 2022 · 1 comment
Open

IllegalArgumentException: Material CAB crash #53

rajarshikhatua100 opened this issue May 4, 2022 · 1 comment
Labels
bug Something isn't working properly

Comments

@rajarshikhatua100
Copy link

FATAL EXCEPTION: main
Process: taco.scoop, PID: 21468
java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class androidx.appcompat.widget.Toolbar$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/main_cab_stub. Make sure other views do not use the same id.
at android.view.View.onRestoreInstanceState(View.java:22284)
at android.view.View.dispatchRestoreInstanceState(View.java:22256)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4826)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4826)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4826)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4826)
at android.view.View.restoreHierarchyState(View.java:22234)
at com.android.internal.policy.PhoneWindow.restoreHierarchyState(PhoneWindow.java:2272)
at android.app.Activity.onRestoreInstanceState(Activity.java:1768)
at android.app.Activity.performRestoreInstanceState(Activity.java:1721)
at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1376)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:4076)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2438)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8663)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)

@TacoTheDank
Copy link
Owner

I'm aware of this. This will be tackled with the rewrite (which will not use the CAB library).

Also, looking at your history, I would advise that you create better issue titles. "Bug" is not very helpful.

Thank you.

@TacoTheDank TacoTheDank added the bug Something isn't working properly label May 5, 2022
@TacoTheDank TacoTheDank changed the title Bug IllegalArgumentException: Material CAB crash May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working properly
Projects
None yet
Development

No branches or pull requests

2 participants