Skip to content

Crashing during hot reload when --track-widget-creation is enabled #31274

@stuartmorgan-g

Description

@stuartmorgan-g

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.)

Metadata

Metadata

Labels

a: desktopRunning on desktopc: crashStack traces logged to the consoleengineflutter/engine related. See also e: labels.platform-macBuilding on or for macOS specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions