Repository navigation
LateInitializationError in unified_analytics on beta/3.21.0-1.0.pre.2 #146153
Description
Activity
christopherfujino commented
on Apr 2, 2024 ContributorAuthorMore actions@eliasyishak please verify that:
- we did NOT cherry pick the fix to beta (if we did, then we should know why the fix did not work); and
- that the next beta branch does NOT have this regression (you may have to ask the release team what this branch is)
Looks like this the version for the beta candidate for this package is5.8.4which is greater than the fix we made in stable at5.8.0+1which tells me that the fix should be included nowHowever, 5.8.4 still haslatevariables being used inside the source code.. to remove the possibility of this error coming up, I think we should CP an update to bump this version to6.0.0. Is that allowed for the beta channel?Scratch that, after reading the changelog, i see that version 5.8.5 is actually what fixed the
LateInitializationbug. I think the best thing we can do is CP into beta the latest 6.0.0 package that removes all of thelatevariables + the errors we encountered because we removed a key from the persisted session json filechristopherfujino commented
on Apr 2, 2024 ContributorAuthorMore actionsScratch that, after reading the changelog, i see that version 5.8.5 is actually what fixed the
LateInitializationbug. I think the best thing we can do is CP into beta the latest 6.0.0 package that removes all of thelatevariables + the errors we encountered because we removed a key from the persisted session json file- we cannot just bump a dependency in a Flutter release to latest, especially not across a major version change (i.e. 5.8.5 -> 6.0.0). We would need to make a special hotfix release of unified_analytics.
- It looks like the upcoming beta release is branch flutter-3.22-candidate.0: https://github.com/flutter/engine/pull/51851/files
@christopherfujino, I see, to hotfix this then, I think we should remove the error handler functionality altogether since that is what causes the error when it tries to send events on start up.
That way we dont introduce new code refactors from 6.0.0 while we still remove the late initialization error.
2. It looks like the upcoming beta release is branch flutter-3.22-candidate.0: https://github.com/flutter/engine/pull/51851/files
Oh wait, when i look at the branch
flutter-3.22-candidate.0, i see that we have version 5.8.8 which does fix the late initialization bug. How do we find the correct branch again? My workflow was:- Go to flutter/flutter main repo
- Look for
betabranch which took me to: https://github.com/flutter/flutter/blob/beta - Find the candidate release within: https://github.com/flutter/flutter/blob/beta/bin/internal/release-candidate-branch.version
From step 3, that pointed to:
flutter-3.21-candidate.0.christopherfujino commented
on Apr 3, 2024 ContributorAuthorMore actionsOh wait, when i look at the branch
flutter-3.22-candidate.0, i see that we have version 5.8.8 which does fix the late initialization bug. How do we find the correct branch again? My workflow was:- Go to flutter/flutter main repo
- Look for
betabranch which took me to: https://github.com/flutter/flutter/blob/beta - Find the candidate release within: https://github.com/flutter/flutter/blob/beta/bin/internal/release-candidate-branch.version
From step 3, that pointed to:
flutter-3.21-candidate.0.This is the correct method to find the current beta version. However, we expect a new beta (based on 3.22) to be shipped today, so we would not actually accept a cherry pick to the 3.21 branch.
I see, so we may be okay then, I am going to download package:unified_analytics 5.8.8 and see if i can reproduce this late initialization error.
- added a commit that references this issue
on Apr 19, 2024 Assuming this has since been resolved.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on May 13, 2024
On
beta/3.21.0-1.0.pre.2