Skip to content

[hot_reload] Calling a method for the first time after an update crashes the app #57643

@pavelsavara

Description

@pavelsavara

If a hot reload delta is applied to a method M that has never been called before, and then that method is called for the first time after the update, the runtime will assert.

A common variant of this is doing a browser refresh of a Blazor WebAssembly app that had some changes applied. When the runtime restarts, dotnet watch replays the deltas on a fresh runtime, and after that calling any of the updated methods will cause a crash.


Original report:

with dotnet.6.0.0-rc.1.21411.2.js

Metadata

Metadata

Assignees

Labels

area-EnC-monoHot Reload for WebAssembly, iOS/Android, etc

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions