-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
Exception after tapping repeatedly on Components in Material Gallery #3183
Comments
@Hixie This crash is very interesting. RawGestureDetectorState._syncAll is causing us to dispose a drag gesture recognizer, which is causing a tap recognizer to win in the arena and fire a tap gesture in the middle of layout. All manner of insanity then takes place. I suspect the solution is to delay win-by-last-gesture-standing in the arena to the end of the microtask. Thoughts? |
Seems legit. Can't see any reason it would need to be synchronous. |
Wait until the end of the microtask to tell gesture recognizers that they've won in the gesture arena. This lets recognizers dispose reject themselves at arbitrary times without triggering gestures in awkward call stacks. Fixes flutter#3183
Wait until the end of the microtask to tell gesture recognizers that they've won in the gesture arena. This lets recognizers dispose reject themselves at arbitrary times without triggering gestures in awkward call stacks. Fixes #3183
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 |
Run the Material Gallery sample and tap on the Components drop-down several times in quick succession.
The framework throws this exception:
The text was updated successfully, but these errors were encountered: