Skip to content

Hot reload on Android: Mono BadImageFormatException after ~100 deltas in one process #3243

Open

Description

@kazo0

What

Running all 66 _HotReload tests in one Android app process (Mono interpreter, Debug) applies roughly 100 deltas. Once enough have accumulated, every later hot-reload test fails with:

System.BadImageFormatException: type 0x00 not handled in do_mono_metadata_parse_type on image Uno.Extensions.Navigation.WinUI.Tests.dll

The same classes run in a fresh process don't hit it (Given_Navigation_HotReload 22/22, Given_TabBar_HotReload with no BadImageFormatException). So the mobile lanes run one app launch per class (#3238), as desktop already does with one secondary app per class.

Why it might matter

A long development session can apply this many deltas. If Mono's metadata handling degrades with accumulated updates, users would see hot reload break, or the app crash, after a while, with only a restart to fix it. It's low priority until someone reports it, but worth a minimal repro.

Work

  • Find a minimal repro: apply and revert one edit N times in one process, and find the N where it breaks.
  • If it reproduces, report it to dotnet/runtime (Mono hot reload) or the Uno DevServer, depending on whether the deltas themselves are well-formed.

Activity

  1. added
    area/build
    kind/bug
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/buildkind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions