getsentry / sentry-unity

Development of Sentry SDK for Unity
https://docs.sentry.io/platforms/unity/
MIT License
207 stars 52 forks source link

sentry_reinstall_backend assembly exception #1864

Open flashup opened 3 days ago

flashup commented 3 days ago

Environment

How do you use Sentry? Sentry self-hosted (22.10.0)

Which version of the SDK? 2.2.2

How did you install the package? Git-URL

Which version of Unity? 2022.3.41f1

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

Steps to Reproduce

  1. The error happens on application startup.

Actual Result

Callstack

System.EntryPointNotFoundException: sentry_reinstall_backend assembly:<unknown assembly> type:<unknown type> member:(null)
  Module "Sentry.Unity.Native.SentryNativeBridge", in ReinstallBackend
  Module "Sentry.Unity.Native.SentryNative", in ReinstallBackend
  Module "Sentry.Unity.SentryInitialization", in ReinstallBackend

Breadcrumbs

Image

bruno-garcia commented 2 days ago

Looks like sentry.dll is missing? That P/Invoke call is trying to call a function written in C on our native SDK. This one:

https://github.com/getsentry/sentry-native/blob/66e5aae0ba472f80086cfa32466f054cffd5ce3d/src/sentry_core.c#L277

But it can't find the DLL.

If you look at the output directory where the game is. Is there an exe and a few other files? Or it's just the exe?

Is that Mono or IL2CPP?