getsentry / getsentry/sentry-dotnet

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

Open
#4,195 0 comments 0 reactions 0 assignees View on GitHub
.NET Errors Framework: MAUI Samples Task
Dominant language
C#
Stars
770
Forks
248
Avg merge
3d 4h
Merged PRs (30d)
49

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.