realm-dotnet icon indicating copy to clipboard operation
realm-dotnet copied to clipboard

Realm in Unity Issues after update to 12.3.0

Open unapartidamasSL opened this issue 1 year ago • 6 comments

What happened?

I've updated from 12.2.0 to 12.3.0 and now I get this error. If I play my game, when I close I have a crash in Unity without log. I've came back to 12.2.0 and now I can play again without errors.

EntryPointNotFoundException: shared_realm_get_log_level assembly: type: member:(null) Realms.SharedRealmHandle.GetLogLevel (Realms.Logging.LogCategory category) (at <5c992fe941464f80ba4d8c018995b0c9>:0) Realms.Logging.RealmLogger.GetLogLevel (Realms.Logging.LogCategory category) (at <5c992fe941464f80ba4d8c018995b0c9>:0) Realms.Logging.RealmLogger.Log (Realms.Logging.LogLevel level, Realms.Logging.LogCategory category, System.String message) (at <5c992fe941464f80ba4d8c018995b0c9>:0) Realms.Logging.RealmLogger.Log (Realms.Logging.LogLevel level, System.String message) (at <5c992fe941464f80ba4d8c018995b0c9>:0) Realms.NativeCommon.CleanupNativeResources (System.String reason) (at <5c992fe941464f80ba4d8c018995b0c9>:0) UnityUtils.Initializer+<>c.<Initialize>b__1_0 () (at :0)

Repro steps

Just start realm config with 12.3.0 and Unity 2023.2.x

Version

12.3.0

What Atlas Services are you using?

Local Database only

What type of application is this?

Unity

Client OS and version

Windows 11

Code snippets

No response

Stacktrace of the exception/crash you're getting

No response

Relevant log output

EntryPointNotFoundException: shared_realm_get_log_level assembly:<unknown assembly> type:<unknown type> member:(null)
Realms.SharedRealmHandle.GetLogLevel (Realms.Logging.LogCategory category) (at <5c992fe941464f80ba4d8c018995b0c9>:0)
Realms.Logging.RealmLogger.GetLogLevel (Realms.Logging.LogCategory category) (at <5c992fe941464f80ba4d8c018995b0c9>:0)
Realms.Logging.RealmLogger.Log (Realms.Logging.LogLevel level, Realms.Logging.LogCategory category, System.String message) (at <5c992fe941464f80ba4d8c018995b0c9>:0)
Realms.Logging.RealmLogger.Log (Realms.Logging.LogLevel level, System.String message) (at <5c992fe941464f80ba4d8c018995b0c9>:0)
Realms.NativeCommon.CleanupNativeResources (System.String reason) (at <5c992fe941464f80ba4d8c018995b0c9>:0)
UnityUtils.Initializer+<>c.<Initialize>b__1_0 () (at <afca79feead543578646db21d682fc81>:0)

unapartidamasSL avatar Jul 30 '24 13:07 unapartidamasSL

➤ PM Bot commented:

Jira ticket: RNET-1170

sync-by-unito[bot] avatar Jul 30 '24 13:07 sync-by-unito[bot]

This looks like the update didn't correctly update the native library. Can you try and do a clean rebuild of the project (and make sure to restart Unity).

nirinchev avatar Jul 31 '24 10:07 nirinchev

I did it. And all of we did it. Nothing worked.

unapartidamasSL avatar Jul 31 '24 14:07 unapartidamasSL

I've tried to reproduce it and everything works as expected. Here's the project I used: Realm12.3.0.zip

If you can modify it to trigger the erroneous behavior, let me know and I'll take another look.

nirinchev avatar Aug 01 '24 10:08 nirinchev

FWIW... I'm using Unity 2022.3.40 with local databases (Windows 10) and everything is working ok, after upgrading from 12.2.0 to 12.3.0

peachypixels avatar Aug 02 '24 09:08 peachypixels

I've tried to reproduce it and everything works as expected. Here's the project I used: Realm12.3.0.zip

If you can modify it to trigger the erroneous behavior, let me know and I'll take another look.

Ok, I will do it next saturday.

unapartidamasSL avatar Aug 10 '24 21:08 unapartidamasSL

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

github-actions[bot] avatar Sep 04 '24 00:09 github-actions[bot]