Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Crashlytics not logging .NET exceptions on Android #526

Open
@iamlawrencev

Description

@iamlawrencev

This issue might be related to #443.

I am throwing a null reference exception using this code.

ThreadPool.QueueUserWorkItem(new WaitCallback(ignored =>
{
	throw new System.NullReferenceException();
})); 

But Crashlytics fails to log and send it to the Firebase console. Whenever I use Crashlytics.Instance.Crash() though, it logs and successfully sends the crash to the Firebase console. So maybe Crashlytics only logs Java exceptions?

I've also tried using this code as @Redth recommended in that issue but to no avail.

AppDomain.CurrentDomain.UnhandledException += (object sender, UnhandledExceptionEventArgs e) =>
Crashlytics.LogException(MonoExceptionHelper.Create(e.ExceptionObject as Exception));

VS bug #805948

Metadata

Metadata

Assignees

Labels

investigatingCurrently investigating this issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions