Skip to content

Sentry: (Error) SentryEvent processing failed. UnityEngine.UnityException: get_isDebugBuild can only be called from the main thread. #277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ArnauKokoro opened this issue Aug 11, 2021 · 11 comments
Labels
Bug Something isn't working

Comments

@ArnauKokoro
Copy link

ArnauKokoro commented Aug 11, 2021

Environment

How do you use Sentry?
Sentry SaaS

Which SDK and version?
[email protected]

Platform?
Mac M1 Unity Editor with iOS Platform selected

Steps to Reproduce

  1. Install Sentry package and configure it
  2. Run Application on Mac M1 Unity Editor using iOS platform

Expected Result

No errors thrown on startup

Actual Result

It logs an error:

Sentry: (Error) SentryEvent processing failed. UnityEngine.UnityException: get_isDebugBuild can only be called from the main thread.

@bruno-garcia
Copy link
Member

The bug report is for the Sentry SDK for .NET version 1.2.0? This one? https://www.nuget.org/packages/Sentry/1.2.0

Since then we shipped a new SDK (Sentry.Unity) that's being built in this repo. We have docs for it here: https://docs.sentry.io/platforms/unity/

Could you give that a try and let us know if the problem goes away?

@ArnauKokoro
Copy link
Author

ArnauKokoro commented Aug 11, 2021

@bruno-garcia Sorry, my fault. I'm using Unity package 0.4.3, so it happens on Unity package.

@ArnauKokoro
Copy link
Author

@bruno-garcia is there any solution for this? Is causing Unity Editor freeze and we had to remove the package to keep working.

Many Thanks!!

@bitsandfoxes bitsandfoxes self-assigned this Aug 17, 2021
@bitsandfoxes bitsandfoxes added the Bug Something isn't working label Aug 17, 2021
@bitsandfoxes
Copy link
Contributor

Hey, @ArnauKokoro! Which version of Unity are you using? I can't seem to be able to reproduce it.
On the plus side we've already merged #268 and just waiting to be released. It should take care of this very issue (us grabbing stuff from non main threads).

@ArnauKokoro
Copy link
Author

Hi @bitsandfoxes! We are using 2020.3.13f1. We can reproduce it closing the editor and opening it again.

Thanks, we will keep on track.

@bitsandfoxes
Copy link
Contributor

Hi, a follow-up! As a temporary workaround, you could disable Capture in Editor. The fix for this comes with the next release.
Screenshot 2021-08-17 at 17 52 14

@bitsandfoxes
Copy link
Contributor

Hi @ArnauKokoro! We just released 0.5.0 today that contains the fix for this issue. I would very much appreciate it if you could give it a try!

@bitsandfoxes bitsandfoxes removed their assignment Aug 24, 2021
@bruno-garcia
Copy link
Member

Sorry for the delay. As @bitsandfoxes said the new release 0.5.0 should have addressed this issue.
Please feel free to reopen the issue if that's not the case.
Thanks for reporting it!

@ArnauKokoro
Copy link
Author

ArnauKokoro commented Sep 3, 2021

@bruno-garcia @bitsandfoxes Hi guys!! Just try it with 0.5.1 version and now it never starts the scene clicking on play button on the editor, it stuck loading and never plays. I tried also without Capture Editor check.

Thanks.

@ArnauKokoro
Copy link
Author

My fault, it was not Sentry. It works perfect!!

Thanks!!

@bruno-garcia
Copy link
Member

That's great news. Thanks @ArnauKokoro for trying and giving feedback 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants