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.

IllegalArgumentException in restoreInstanceState

See original GitHub issue

This 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:closed
  • Created 2 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
shashachucommented, Apr 19, 2021

Thanks! I’ll report back if we see any additional issues. I really appreciate the quick turnaround.

0reactions
byenchocommented, Apr 30, 2021

Excellent, thanks for letting me know @shashachu !

Read more comments on GitHub >

github_iconTop 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 >

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