Skip to content

Unable to load DLL 'sentry' on Windows x86 #2845

Description

@kkopanski

SDK Version

4.10.0

Unity Version

6000.0.83

Platform

  • Editor
  • Mobile (Android, iOS)
  • Desktop (Windows, macOS, Linux)
  • WebGL
  • Console

Sentry Environment

Sentry SaaS (sentry.io)

Other Error Monitoring Solution

No

Steps to Reproduce

  1. Build project for WindowsStandalone (x86 version)
  2. Run app

Expected vs Actual Result

Expected: App starts without any errors
Actual: Immediately after start you can observe an error message in log

Sentry: (Error) Sentry native initialization failed - native crashes are not captured. System.DllNotFoundException: Unable to load DLL 'sentry'. Tried the load the following dynamic libraries: Unable to load dynamic library 'sentry' because of 'C:\build\output\unity\unity\External\il2cpp\builds\external\baselib\Source\WinApi\Baselib_DynamicLibrary_WinApi.inl.h(36):Baselib_DynamicLibrary_OpenUtf16: Failed to open the requested dynamic library (0x06000000) - %1 nie jest prawidłową aplikacją systemu Win32. (WinError:000000c1)
at Sentry.Unity.Native.SentryNativeBridge.Init (Sentry.Unity.SentryUnityOptions options) [0x00088] in \sentry-unity\src\Sentry.Unity.Native\SentryNativeBridge.cs:50
at Sentry.Unity.Native.SentryNative.Configure (Sentry.Unity.SentryUnityOptions options, UnityEngine.RuntimePlatform platform) [0x00069] in \sentry-unity\src\Sentry.Unity.Native\SentryNative.cs:48
at Sentry.Unity.Native.SentryNative.Configure (Sentry.Unity.SentryUnityOptions options) [0x0000b] in \sentry-unity\src\Sentry.Unity.Native\SentryNative.cs:25
at Sentry.Unity.SentrySdk.Init (Sentry.Unity.SentryUnityOptions options) [0x00020] in \sentry-unity\src\Sentry.Unity\SentrySdk.cs:42
at Sentry.Unity.SentryInitialization.Init () [0x0001f] in .\Library\PackageCache\io.sentry.unity@85c72ef4a503\Runtime\SentryInitialization.cs:84

I have already tried both backends with:
options.Experimental.WindowsBackend = WindowsBackend.Native; // WindowsBackend.Crashpad
But both have very similiar error.

Also I have tried copying sentry.dll from root directory (and also from sentry plugin sources) into `Project_Data\Plugins' directory (which doesn't contain sentry.dll at all). Error changes to actually trying to load this library, but lib is x64 and not x86.

I think something is misconfigured here for x86.
I haven't tried x64 build as we would like to support x86 also.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugsomething isn't working as it shouldUnityplatform label

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions