Uploaded image for project: 'Realm .NET SDK'
  1. Realm .NET SDK
  2. RNET-680

[Bug]: Realm fails on Hololens UWP application with "Unable to load DLL 'realm-wrappers'"

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • Q1-23FY
    • Affects Version/s: None
    • Component/s: None

      What happened?

      Goals

      I am attempting to use a Realm in a Hololens application

      Expected Results

      The Realm works in-editor and on device

      Actual Results

      it fails on device with a DLLNotFoundExeption for realm-wrappers.dll,

      Repro steps

      Add Realm and the Mixed Reality Tool Kit to a Unity project, and configure for deployment to a Hololens. In a script attempt to get a Realm instance. Observe that the realm is accessible in-editor. Using the MRTK build window, build the unity project and then the .appx, and deploy it to a Hololens. In the logs you should see a DLLNotFoundExeption for realm-wrappers. I've uploaded a project that minimally reproduces the issue here: https://drive.google.com/file/d/1GLUrmeRzhD7QuhiUmuQadj16onyAXS_X/view?usp=sharing
      UnityPlayer.log.txt

      Version

      .NET standard 2.0

      What SDK flavour are you using?

      Local Database only

      What type of application is this?

      Unity

      Client OS and version

      Windows Holographic

      Code snippets

      No response

      Stacktrace of the exception/crash you're getting

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      : Unable to load DLL 'realm-wrappers': The specified module could not be found.
        at Realms.SynchronizationContextScheduler.Install () [0x00000] in <00000000000000000000000000000000>:0 
        at Realms.NativeCommon.Initialize () [0x00000] in <00000000000000000000000000000000>:0 
        at Realms.RealmConfiguration.CreateRealm (Realms.Schema.RealmSchema schema) [0x00000] in <00000000000000000000000000000000>:0 
        at Realms.Realm.GetInstance (Realms.RealmConfigurationBase config) [0x00000] in <00000000000000000000000000000000>:0 
        at DemoScript.Start () [0x00000] in <00000000000000000000000000000000>:0 
      Rethrow as TypeInitializationException: The type initializer for 'Realms.SharedRealmHandle' threw an exception.
        at Realms.RealmConfiguration.CreateRealm (Realms.Schema.RealmSchema schema) [0x00000] in <00000000000000000000000000000000>:0 
        at Realms.Realm.GetInstance (Realms.RealmConfigurationBase config) [0x00000] in <00000000000000000000000000000000>:0 
        at DemoScript.Start () [0x00000] in <00000000000000000000000000000000>:0
      

      Relevant log output

      No response

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: