FormatException: Message corrupted in StandardMessageCodec.readValue during state restoration #147456
Labels
a: state restoration
RestorationManager and related APIs
c: crash
Stack traces logged to the console
framework
flutter/packages/flutter repository. See also f: labels.
needs repro info
Automated crash report whose cause isn't yet known
P3
Issues that are less important to the Flutter project
team-framework
Owned by Framework team
triaged-framework
Triaged by Framework team
Steps to reproduce
Can't reproduce, but my app is using simple restorable variables (RestorableString, etc.) and navigator.restorablePush functions.
Expected results
Shouldn't crash during state restoration.
This is a very rare problem.
Actual results
App crashes on iOS during fresh app start very rarely.
The error is "FormatException: Message corrupted" in StandardMessageCodec.readValue (you can see it in the logs below) during state restoration. I have no other logs, as the app crashes immediately (at state restoration), none of my code runs.
As writing an incorrect value to a restorable variable would cause an error while modifying the variable, and an error like that doesn't occur, I believe this is a bug in Flutter.
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
Logs
Logs
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: