Mapsui icon indicating copy to clipboard operation
Mapsui copied to clipboard

Blazor map control crashes when AOT compiled

Open p2pbsh opened this issue 7 months ago • 8 comments

Mapsui Version 5 beta 1, 5 beta 2

Mapsui Platform Blazor

Device Windows 10, Microsoft Edge browser.

Describe the bug When publishing a blazor project with AOT disabled, mapsui map control works correctly. Publishing same project with AOT enabled, map control fails to render and throws an unhandled exception.

To Reproduce Steps to reproduce the behavior:

  1. Create a new blazor project using standard web app template, with wasm render mode configured.
  2. Add mapsui map control component to any wasm page, just attempting to render the basic component is all that is needed.
  3. Enable AOT option in project
  4. Publish and run app.

Expected behavior Map control renders on page.

Screenshots error

Additional context Map control fails to render and I get the above exception in the browser developer console. Call stack is not particularly helpful, only thing that seems applicable are some references to skia canvas rendering, but don't really understand what I'm looking at.

p2pbsh avatar Jul 09 '24 19:07 p2pbsh