-
Notifications
You must be signed in to change notification settings - Fork 50
[unified_analytics] Crash on flutter master branch #252
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
Comments
Hey @dcharkes, thanks for sharing! Would you mind sharing if this happens every time or flakey? |
Every time, I'm not even able to make a clean checkout at the moment:
The problematic dart version:
|
Thanks for the detailed info.. chatted a bit offline about this but to clear up the error, this is likely due to a version update in package:unified_analytics that changed the file for the session file. {"session_id": 123, "last_ping": 124} // old
{"session_id": 123} // new This change was made in a previous PR aimed at reducing how many times we write to disk. So if you end up upgrading the flutter-tool (or another client of package:unified_analytics) to a version that changes this json file to the new format.... and then later you change the flutter-tool version to an older version, you will run into this error since it will try to look up Workaround: delete the session json file and it will trigger error handling in the package to recreate it as expected |
Getting this one too. I think this catch
should be more generous: parsing can fail in other ways than Or, equivalently, make Then this will work as intended for future changes, recreating the data when the format changes :) |
For anyone seeing this issue, please see the note at the top of dart-lang/sdk#55212 |
To pick up the fixes for dart-lang/tools#252 Change-Id: Ib0d5b8810d8c785df1e3990f3428df8dc4834297 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/358220 Reviewed-by: Alexander Aprelev <[email protected]> Commit-Queue: Zach Anderson <[email protected]>
To summarize the state of the world:
Thus, at the HEAD of the master channel for the Flutter SDK, this issue should be fixed, save for any tools that are maintained outside of flutter/flutter or dart-lang/sdk. |
@christopherfujino with that, can we resolve this issue, or are there more changes needed? |
Let me take a look right now, see if there are any loose ends I missed, and then I will close. |
Yes, it looks like Flutter developers should no longer be affected by this on the master channel, and Dart developers on the dev channel. |
Also, the latest beta release of Flutter appears to predate the regression (https://github.com/flutter/flutter/blob/beta/packages/flutter_tools/pubspec.yaml#L54) |
The text was updated successfully, but these errors were encountered: