Open christopherfujino opened 1 year ago
FYI @elliette, this only affected 1 client.
@elliette agreed to triage in an offline discussion.
I don't think we should be throwing an exception when JS evaluation happens (or if we do, we should catch it in DWDS). Will open a PR for that.
Ah I think I know how this was triggered, although I can't reproduce it myself (no exception is thrown / Flutter does not crash).
Looks like recently a command was added to dump the focus tree into your terminal window: https://github.com/flutter/flutter/pull/123473
So you can start an app:
flutter run -d chrome
Then hit "f" to dump the focus tree. This calls the VM service callServiceExtensionMethod
: https://github.com/flutter/flutter/blob/5451ea6e8f9ab4d39bd066d962a92a75f72c84f9/packages/flutter_tools/lib/src/vmservice.dart#L924
It's expected that clients will catch any errors thrown from by the VM Service (or in this case, DWDS). That's what we do in DevTools for example. I can update DWDS to throw an RPCError
with the internal error code, but flutter_tools
will still need to be updated to handle it.
@christopherfujino WDYT?
Also downgrading the priority since this isn't reproducible, and only affected 1 client.
This issue is assigned to @elliette but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
This issue is assigned to @elliette but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
This issue is assigned to @elliette but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
This issue is assigned to @elliette but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
This issue is assigned to @elliette but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
CC @christopherfujino I'm unassigning myself and handing this back to you to triage. After https://github.com/dart-lang/webdev/pull/2144, DWDS is now throwing an RPC.kInternalError
. I think Flutter tools should catch the error instead of rethrowing (see https://github.com/flutter/flutter/issues/126362#issuecomment-1562020890). Thanks!
CC @christopherfujino I'm unassigning myself and handing this back to you to triage. After dart-lang/webdev#2144, DWDS is now throwing an
RPC.kInternalError
. I think Flutter tools should catch the error instead of rethrowing (see #126362 (comment)). Thanks!
SGTM
The triaged-web
label is irrelevant if there is no team-web
label or fyi-web
label.
Command
flutter run
beta/3.10.0-1.5.pre