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
Expanding NSColor in debugger crashes app #5738
Comments
weird, the binding is annotated correctly [Export ("blackComponent")]
nfloat BlackComponent { [MarshalNativeExceptions] get; } and the right
but it did crash... maybe mono intercepted it before the native catch handler we generate ? |
We caught the NSException, and then decided to rethrow it:
which means we hit this case: xamarin-macios/runtime/runtime.m Lines 2355 to 2359 in 99e727c
and that crashes because there are no other Objective-C catch handlers further up the stack. I suspect that passing |
- xamarin#5738 - There are a number of managed exceptions Apple can throw at you during debugging, such as expanding a NSColor in the wrong colorspace - Throwing a managed exception is a nicer debugging experience, and during debug we don't care about any performance penality.
Nice idea Rolf - that fixed it and is a sensible default. |
- #5738 - There are a number of managed exceptions Apple can throw at you during debugging, such as expanding a NSColor in the wrong colorspace - Throwing a managed exception is a nicer debugging experience, and during debug we don't care about any performance penality.
This was fixed back in #7667 and never closed. |
Steps to Reproduce
NSColor color = NSColor.Red;
and set breakpoint on line afterExpected Behavior
We don't expand unsafe properties by default in IDE.
Actual Behavior
Environment
macios master
The text was updated successfully, but these errors were encountered: