Skip to content

ANR on LogException() invocation. #2488

@L-Lawliet

Description

@L-Lawliet

Environment

Environment
How do you use Sentry?
Sentry SaaS (sentry.io)

Which version of the SDK?
4.0.0

How did you install the package?
Git-URL

Which version of Unity?
2020.3.49f

Is this happening in Unity (editor) or on a player like Android, iOS, Windows?
Windows

Steps to Reproduce

  1. Run this Scripts on the Windows app.
private void Test()
{
    try
    {
        Fun(null);
    }
    catch (Exception ex)
    {
        //ANR and Crash
        Debug.LogException(ex);
    }
}

private void Fun(GameObject gameObject)
{
    gameObject.transform.position = Vector3.zero;
}

Expected Result

Not throw a Sentry error, just log it.

Actual Result

ANR and Crash

Any logs or screenshots

  1. When Exception.StackTrace is not null, the issue always occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingUnity

    Projects

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions