IllegalArgumentException in restoreInstanceState
See original GitHub issueThis is another 2.0 crash that we’re seeing in production. No local repro yet. It seems to occur mostly on OS 8.1.0 and 7.0 but it’s happening across OS levels.
Caused by: java.lang.IllegalArgumentException
at android.os.Parcel.nativeAppendFrom(Parcel.java:-2)
at android.os.Parcel.appendFrom(Parcel.java:446)
at android.os.BaseBundle.readFromParcelInner(BaseBundle.java:1356)
at android.os.BaseBundle.<init>(BaseBundle.java:90)
at android.os.Bundle.<init>(Bundle.java:68)
at android.os.Parcel.readBundle(Parcel.java:1704)
at com.livefront.bridge.util.BundleUtil.fromBytes(BundleUtil:58)
at com.livefront.bridge.BridgeDelegate.readFromDisk(BridgeDelegate:241)
at com.livefront.bridge.BridgeDelegate.getSavedBundleAndUnwrap(BridgeDelegate:138)
at com.livefront.bridge.BridgeDelegate.restoreInstanceState(BridgeDelegate:302)
at com.livefront.bridge.Bridge.restoreInstanceState(Bridge:111)
<our code>
Any ideas?
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
android - What is the cause of an IllegalArgumentException at ...
java:12308 as the IllegalArgumentException message: Wrong state class, expecting View State but received (something else) instead. This usually ...
Read more >IllegalArgumentException when restoring ViewPager2 state
Wrong state class, expecting View State but received X instead. This usually happens when two views of different type have the same id...
Read more >IllegalArgumentException: Wrong state class, expecting View ...
Grey screen of death when opening backgrounded Nightly: IllegalArgumentException: Wrong state class, expecting View State but received class android.support.v4.
Read more >net.margaritov.preference.colorpicker.ColorPickerView.setColor ...
@Override public void onRestoreInstanceState(Bundle savedInstanceState) { super ... setTextColor(mHexDefaultTextColor); } catch (IllegalArgumentException e) ...
Read more >View - Android Developers
Finds the first descendant view with the given ID, the view itself if the ID matches getId() , or throws an IllegalArgumentException if...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks! I’ll report back if we see any additional issues. I really appreciate the quick turnaround.
Excellent, thanks for letting me know @shashachu !