Skip to content

Conversation

@DanTup
Copy link
Member

@DanTup DanTup commented Jun 30, 2020

There was a race condition in the debugger connection code. If the thread was in the PauseStart state when we first found it, everything worked fine. However if it was in the None state initially, and changed to PauseStart before we'd finished the rest of the startup code, the event would be dropped (with a warning: "ThreadManager couldn't find thread with ref isolates/1462887175408855 to handle PauseStart").

To fix it, any incoming events wait for the initialisation to complete before being processed.

@DanTup DanTup added is bug fix in flutter Relates to running Flutter apps in debugging Relates to the debug adapter or process of running debug sessions labels Jun 30, 2020
@DanTup DanTup added this to the v3.13.0 milestone Jun 30, 2020
@DanTup DanTup merged commit 29d0245 into master Jul 1, 2020
@DanTup DanTup deleted the fix-debugger-init-race branch July 1, 2020 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in debugging Relates to the debug adapter or process of running debug sessions in flutter Relates to running Flutter apps is bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants