Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Runtime] Provide better diagnostics if we fail to invoke a method in…
… CoreCLR. (#15043) A stack trace like this isn't all that helpful: *** Terminating app due to uncaught exception 'System.Reflection.TargetException', reason: 'Object does not match target type. (System.Reflection.TargetException) at System.Reflection.RuntimeConstructorInfo.CheckConsistency(Object target) at System.Reflection.RuntimeConstructorInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at ObjCRuntime.Runtime.InvokeMethod(MethodBase method, Object instance, IntPtr native_parameters) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Runtime.CoreCLR.cs:line 655 at ObjCRuntime.Runtime.InvokeMethod(MonoObject* methodobj, MonoObject* instanceobj, IntPtr native_parameters) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Runtime.CoreCLR.cs:line 552 at ObjCRuntime.Runtime.bridge_runtime_invoke_method(MonoObject* method, MonoObject* instance, IntPtr parameters, IntPtr& exception_gchandle) in /Users/builder/azdo/_work/1/s/xamarin-macios/runtime/Delegates.generated.cs:line 1210 with this change we'll be told exactly which function we failed to call.
- Loading branch information
5c08c5a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💻 [CI Build] Tests on macOS Mac Catalina (10.15) passed 💻
✅ All tests on macOS Mac Catalina (10.15) passed.
Pipeline on Agent
Hash: 5c08c5a6899fa27d677193826d11edde4d8b1739
5c08c5a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📋 [CI Build] API Diff 📋
API diff (for current PR)
ℹ️ API Diff (from PR only) (please review changes)
API diff: vsdrops gist
Xamarin
.NET
Xamarin vs .NET
iOS vs Mac Catalyst (.NET)
API diff (vs stable)
✅ API Diff from stable
API diff: vsdrops gist
Xamarin
.NET
Xamarin vs .NET
iOS vs Mac Catalyst (.NET)
Generator diff
ℹ️ Generator Diff (please review changes)
Pipeline on Agent XAMMINI-052.Monterey'
Hash: 5c08c5a6899fa27d677193826d11edde4d8b1739
5c08c5a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ [CI Build] Tests on macOS M1 - Mac Big Sur (11.5) failed ❌
Failed tests are:
Pipeline on Agent
Hash: 5c08c5a6899fa27d677193826d11edde4d8b1739
5c08c5a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📚 [CI Build] Artifacts 📚
Packages generated
View packages
Pipeline on Agent XAMMINI-053.Monterey'
Hash: 5c08c5a6899fa27d677193826d11edde4d8b1739
5c08c5a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ [CI Build] Tests failed on VSTS: simulator tests iOS ❌
Tests failed on VSTS: simulator tests iOS.
Test results
1 tests failed, 233 tests passed.
Failed tests
Pipeline on Agent XAMBOT-1042.Monterey
[Runtime] Provide better diagnostics if we fail to invoke a method in CoreCLR. (#15043)