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

Crashlytics not logging .NET exceptions on Android #526

Open
iamlawrencev opened this issue Feb 14, 2019 · 2 comments
Open

Crashlytics not logging .NET exceptions on Android #526

iamlawrencev opened this issue Feb 14, 2019 · 2 comments
Assignees
Labels
investigating Currently investigating this issue

Comments

@iamlawrencev
Copy link

iamlawrencev commented Feb 14, 2019

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

@Redth Redth added the azdo-sync Azure DevOps Sync label Mar 1, 2019
@Redth Redth added the investigating Currently investigating this issue label Mar 1, 2019
@Redth
Copy link
Member

Redth commented Mar 1, 2019

Thanks, @SotoiGhost will look into it.

@Redth Redth removed azdo-sync Azure DevOps Sync labels Jun 17, 2019
@jeremiethibeault
Copy link

Hi @SotoiGhost or @Redth, do we have any news on this? Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
investigating Currently investigating this issue
Projects
None yet
Development

No branches or pull requests

4 participants