Skip to content

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

Open
@bruno-garcia

Description

@bruno-garcia

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions