Closed Ivan-L closed 8 years ago
Thanks for the report. Will update the package on NuGet as well.
Thanks! The null check fixes the error and now we can see the real exception that occurred.
Here is what is logged in Crashlytics now (note that there is no stack trace for this particular exception):
Fatal Exception: AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.
Hi there,
I believe we have hit an issue with MonoTouch.Fabric.Crashlytics when it tries to capture an
UnobservedTaskException
.The following snippet is where the issue occurs, taken from the homepage:
When an UnobservedTaskException occurs,
Setup.CaptureManagedInfo
is called, which results in the following error being logged on Crashlytics:Looking at the source code of the
CaptureManagedInfo
function, it constructs 3NSString
objects from the exception details:It appears that the
ex.StackTrace
might sometimes be null, which results in the real error details being masked by an exception being thrown by theCaptureManagedInfo
function.Is it possible to add a null check and only set the "unhandled exception stack trace" data if there actually is a stack trace?