Skip to content

Unhandled exception demo doesn't crash the app on Mac Catalyst #4195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bruno-garcia opened this issue May 17, 2025 · 0 comments
Open

Unhandled exception demo doesn't crash the app on Mac Catalyst #4195

bruno-garcia opened this issue May 17, 2025 · 0 comments

Comments

@bruno-garcia
Copy link
Member

bruno-garcia commented May 17, 2025

I'm working on the sample MAUI app: https://github.com/sentry-demos/dotnet-maui

Running it on iOS or Android sim/emulators, all example buttons work fine.
But when I publish the app for Mac Catalyst:

dotnet publish -f net9.0-maccatalyst -c Release -p:CreatePackage=false
# open bin/Release/net9.0-maccatalyst/EmpowerPlant.app                  
open bin/Release/net9.0-maccatalyst/maccatalyst-arm64/EmpowerPlant.app/

The Throw Unhandled .NET Exception (Crash) button seem to just just disable the button itself.
After pressing it, I can still use the app to 'buy plants'.

https://github.com/sentry-demos/dotnet-maui/blob/16e03f7016b8d8355a01c56f8b14acc6c639118f/MainPage.xaml.cs#L30-L35

Image

Not sure if this is the excepted behavor on Mac Catalyst? If so, should we document it on the Crash function itself then and remove it from the sample?

Also note that at one time, clicking Throw Unhandled .NET Exception on Background Thread (Crash) had the app hang. I had to kill it with the task manager.

Image Image

I tried several times to reproduce the hang but couldn't.

@linear linear bot added the Task label May 17, 2025
@bruno-garcia bruno-garcia changed the title Unhandled exception demo doesn't crash the app Unhandled exception demo doesn't crash the app on Mac Catalyst May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant