Skip to content

spa program runs fine on desktop and android but cannot launch on browser #19148

Open
@lishinko

Description

@lishinko

Describe the bug

This project runs fine on desktop, but only shows splash screen("powered by avalonia") on browser target.
https://github.com/lishinko/Puzzle24
The project environment:
Ubuntu 22.04
Linux horizon-ThinkPad-T14p-Gen-1 6.8.0-60-generic #63~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 22 19:00:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

.net 8.0

avalonia 11.2.1

Note:
.net 9.0 + avalonia 11.3.2 has the same problem
It seems the program deadlocks at BuildAvaloniaApp() and thus cannot call the App.Initialize() method.

Image

To Reproduce

clone the project, select browser target and run
https://github.com/lishinko/Puzzle24

Expected behavior

Shows a form with 4 number input box

Avalonia version

11.2.1

OS

Linux

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions