You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Crashing during hot reload when --track-widget-creation is enabled #31274
If I run a macOS Flutter application in VS Code with the new desktop flutter run functionality, hot reload crashes the target app; some searching based on the stack turned up Dart-Code/Dart-Code#1133 and related bugs, which it turned out is the culprit here as well (disabling widget creation tracking fixes the problem).
@DanTup@devoncarew can you provide some more context on what the underlying fix involved? Is there per-platform support that needs to be wired up for this feature in Flutter?
(Note: I haven't tried yet on Linux and Windows; it may happen there as well.)
@jonahwilliams You mentioned in email that we need a flag at creation time (is that 'build bundle', or the compilation?); is that something that should be done unconditionally in debug builds?
I'll need to solve the problem of passing things into the build from each platform's script before I can do that, but I need to do that for FLUTTER_ROOT anyway.
Are you sure the flag is being set? I haven't reviewed in detail yet, but it didn't look like you'd wired up loading the generated xcconfig in the project, which would mean it wouldn't ever actually know to set the flag.
changed the title [-][macos] Crashing during hot reload when --track-widget-creation is enabled[/-][+]Crashing during hot reload when --track-widget-creation is enabled[/+]on Apr 21, 2019
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 flutter doctor -v and a minimal reproduction of the issue.
Activity
stuartmorgan-g commentedon Apr 18, 2019
@jonahwilliams You mentioned in email that we need a flag at creation time (is that 'build bundle', or the compilation?); is that something that should be done unconditionally in debug builds?
jonahwilliams commentedon Apr 18, 2019
We should pass whether track-widget-creation is enabled through to the build script, and then that should be passed to the bundle build
stuartmorgan-g commentedon Apr 18, 2019
I'll need to solve the problem of passing things into the build from each platform's script before I can do that, but I need to do that for FLUTTER_ROOT anyway.
jonahwilliams commentedon Apr 19, 2019
Even if we build with the right flag (#31329), it still looks like the engine is using the wrong dill file.
stuartmorgan-g commentedon Apr 20, 2019
Are you sure the flag is being set? I haven't reviewed in detail yet, but it didn't look like you'd wired up loading the generated xcconfig in the project, which would mean it wouldn't ever actually know to set the flag.
I can add that logic next week.
[-][macos] Crashing during hot reload when --track-widget-creation is enabled[/-][+]Crashing during hot reload when --track-widget-creation is enabled[/+]github-actions commentedon Aug 29, 2021
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
flutter doctor -vand a minimal reproduction of the issue.