question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default MAUI Blazor project immediately crashing on Android Emulator

See original GitHub issue

Describe the bug

I recently setup another development environment to work with MAUI Blazor, however, when I try to run the default app in the Android Emulator, it opens but immediately crashes, and the debugger window shows the following lines:

[.MAUIBlazorDem] * Assertion at /__w/1/s/src/mono/mono/mini/debugger-agent.c:4389, condition tls’ not met Thread started: dotnet/aspnetcore#5 [libc] Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 13003 (ThreadPoolForeg), pid 12934 (.MAUIBlazorDemo)`

To Reproduce

  1. Setup MAUI Environment
  2. Create a new MAUI Blazor projet using the default template
  3. Create an Android Device for API 30.
  4. Run the project using the created device.

Exceptions (if any)

No visible exceptions in the emulator, app just closes.

Further technical details

  • ASP.NET Core version: 6
  • Include the output of dotnet --info
  • The IDE (VS / VS Code/ VS4Mac) you’re running on, and its version: Version 16.11.0 Preview 2.0
  • Host OS: Windows 11

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
PaulSorauer-IPGcommented, Jul 17, 2021

The good news is that it no longer appears to be happening with Preview 6.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Eilon Lipton @.> Sent: Saturday, July 17, 2021 2:24:32 AM To: dotnet/maui @.> Cc: Paul Sorauer @.>; Mention @.> Subject: Re: [dotnet/maui] Default MAUI Blazor project immediately crashing on Android Emulator (#1616)

Thank you @PaulSorauer-IPGhttps://github.com/PaulSorauer-IPG this does look the same. I’ll let the Android experts have a look and they can close if they confirm it’s a dup.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/dotnet/maui/issues/1616#issuecomment-881568680, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOVEAIJM3IMN6KA53RLLHJDTYBMMBANCNFSM5ADCYNVQ.

1reaction
PaulSorauer-IPGcommented, Jul 16, 2021

Got it. It doesn’t sound to me that this is Blazor specific, but perhaps a more general issue with debugging and Android.

Yes… There’s already an issue for this: #1361

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crash on startup for default MAUI Blazor app on Android ...
A default MAUI Blazor application built in Release mode crashes immediately on startup in Android. I've checked this in the Android emulator ......
Read more >
Blazor MAUI app crashes on start in Release config ...
I have written a .NET MAUI Blazor app and have run into an issue where it is now crashing as soon as the...
Read more >
Android Emulator Troubleshooting - .NET MAUI
Launch the emulator from the Android Device Manager (select your virtual device and select Start). Open a command prompt and go to the...
Read more >
.NET MAUI android application crashes immediately after ...
This definitely sounds like a linker issue. Disable the linker in Release mode and try again. If it doesn't crash, you've found the...
Read more >
How To Fix Android Emulator For Visual Studio ( .NET MAUI)
00:00 intro 00:44 Update Your Android SDK and Emulators 02:20 Start An Android Emulator ... Blazor WebAssembly and MAUI App Builder.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found