-
Notifications
You must be signed in to change notification settings - Fork 326
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
Connecting to new app throws stream exception #3302
Comments
Not that I know of. Is it possible that you're cancelling the returned stream more than once? |
We listen to the same stream in multiple places in DevTools - does each call to |
In DevTools we call |
This is the leading crash right now. 30k+ exceptions in the last 7 days. |
Can you reproduce locally? |
Yeah. Repro steps are to connect DevTools to a flutter app, then connect to a new app (click device info in bottom right of DevTools -> connect to new app). |
We listen to the stream using our auto_dispose code in DevTools. We then cancel the stream subscription on app disconnect:
Should we not be cancelling our own stream subscription in DevTools for the streams with history? This seems counter-intuitive to how regular streams are handled. Should dds be checking if |
Oh awesome! Thanks for the details. I'll take a closer look today or tomorrow. |
…same name would throw a StateError Fixes flutter/devtools#3302 TEST=test/regress_devtools_issue_3302_test.dart Change-Id: Ica0665c8a48cdb881ecdf7e3985660513c4b98b8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214662 Reviewed-by: Kenzie Schmoll <kenzieschmoll@google.com> Commit-Queue: Ben Konyi <bkonyi@google.com>
Fixed in |
CC @bkonyi - is there a certain way we are supposed to be handling / cancelling calls to onEventWithHistory?
The text was updated successfully, but these errors were encountered: