-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CP] [IO] Use try/catch in lookupAddresses instead of Future error #53450
Comments
//cc @mraleph for lgtm |
Approval by @aam on the CL. |
Applying patch from @aam for using try/catch in lookupAddresses instead of Future error. This cherry pick into the stable branch is to ensure we address the expedient issue in #53334 TEST=new test added. Bug: #53334 Change-Id: Ia5375cbd118d8d6437cf6869383f173cab48aa3f Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/323684 Cherry-pick-request: #53450 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/324569 Reviewed-by: Alexander Aprelev <aam@google.com> Commit-Queue: Siva Annamalai <asiva@google.com>
Out of interest, do new Dart stables automatically get rolled into Flutter stable, or do additional issues need creating to cherry-pick them? I looked on https://github.com/flutter/flutter/wiki/Flutter-Cherrypick-Process but it doesn't seem to describe how Dart cherry-picks get to Flutter. |
The releases are generally* aligned and Flutter picks up all Dart releases (except for the Dart dev channel). Technically, Dart releases are cherry-picked into Flutter releases but it's part of the process and doesn't need additional requests. *We can do a Dart-only release but we'd only do it if Flutter is definitely unaffected by the changes. Probably, happens only every few years (I only remember one example). |
Got it, thanks for the explanation :-) |
thanks |
I upgraded to 3.13.4 and still have the breaking of the debugger when 'break on uncaught exceptions' is enabled |
Can you share the backtrace of the exception that is showing up, it is possible that you are hitting a different exception than the most common one that folks were hitting with lookupAddress. This cherry pick only addresses that case. |
did this fix the exception issue with the |
Yes |
@menghui-hata and @escamoteur the cherry pick done was a work around for the specific exception issue with the staggeredLookup method in dart:io library that a number of folks were hitting, the real fix for the problem is in the main branch (the changes were too many to cherry pick back to the stable channel). |
Commit(s) to merge
f7ef526
Target
stable 3.1
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/324569
Issue Description
With the Dart 3.1 release a number of Flutter users are facing issues with running their app in the debugger (produces an unhandled exception). For details please see discussion in #53334
What is the fix
This change fixes lookupAddress to use a try/catch instead of returning a Future error, this exception is the one that users where hitting often and with this fix they won't run into it.
The actual fix for the issue has landed in main but is a large change and does not make sense to cherry pick into stable at this point.
Why cherry-pick
A number of Flutter users have run into this issue.
Risk
low
Issue link(s)
#53334
Extra Info
No response
The text was updated successfully, but these errors were encountered: