Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-2014

Crashes on attempting to read realm file from some external drives

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      SDK and version

      SDK : .NET 11.7.0

      Potentially related to https://github.com/realm/realm-core/commit/c3ed40bba06bcb76c2ba44646e7f94003e6f3962.

      Started in line with an update of realm-dotnet:

      https://github.com/ppy/osu/commit/3a224211aa322a0055342f10bd36e0af3c3b078c#diff-11522f45ae2408786975ae807444ce91fea4c4a2cfd21e2f18caf7fa4199412dL38-R38

      Observations

      • How frequent do the crash occur?

      We've had four user reports so far since a new release yesterday. All involve users trying to start the game with a realm file located on an external disk, likely all ExFAT format.

      Crash log / stacktrace

      Example 1:

      Unable to find source-code formatter for language: log. 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
      2024-03-11 21:33:59 [error]: Realm startup failed with unrecoverable error; starting with a fresh database. A backup of your database has been made.
      2024-03-11 21:33:59 [error]: Realms.Exceptions.RealmException: GetFileInformationByHandleEx() failed for 'D:\nochmaosu\client.realm': �p�����[�^�[���Ԉ���Ă��܂��B
      2024-03-11 21:33:59 [error]: at Realms.NativeException.ThrowIfNecessary()
      2024-03-11 21:33:59 [error]: at Realms.SharedRealmHandle.Open(Configuration configuration)
      2024-03-11 21:33:59 [error]: at Realms.RealmConfiguration.CreateHandle(Configuration& configuration)
      2024-03-11 21:33:59 [error]: at Realms.RealmConfigurationBase.CreateRealm()
      2024-03-11 21:33:59 [error]: at Realms.Realm.GetInstance(RealmConfigurationBase config)
      2024-03-11 21:33:59 [error]: at osu.Game.Database.RealmAccess.getRealmInstance()
      2024-03-11 21:33:59 [error]: at osu.Game.Database.RealmAccess.prepareFirstRealmAccess()
      2024-03-11 21:33:59 [error]: An unhandled error has occurred.
      

      Example 2:

      Unable to find source-code formatter for language: log. 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
      2024-03-12 00:42:21 [error]: Realm startup failed with unrecoverable error; starting with a fresh database. A backup of your database has been made.
      2024-03-12 00:42:21 [error]: Realms.Exceptions.RealmException: GetFileInformationByHandleEx() failed for 'F:\osu-lazer\client.realm': The parameter is incorrect.
      2024-03-12 00:42:21 [error]: at Realms.NativeException.ThrowIfNecessary()
      2024-03-12 00:42:21 [error]: at Realms.SharedRealmHandle.Open(Configuration configuration)
      2024-03-12 00:42:21 [error]: at Realms.RealmConfiguration.CreateHandle(Configuration& configuration)
      2024-03-12 00:42:21 [error]: at Realms.RealmConfigurationBase.CreateRealm()
      2024-03-12 00:42:21 [error]: at Realms.Realm.GetInstance(RealmConfigurationBase config)
      2024-03-12 00:42:21 [error]: at osu.Game.Database.RealmAccess.getRealmInstance()
      2024-03-12 00:42:21 [error]: at osu.Game.Database.RealmAccess.prepareFirstRealmAccess()
      2024-03-12 00:42:21 [error]: An unhandled error has occurred.
      

      In both examples, I've tested the realm file provided by the user and it works fine on my drives (macOS) so the user's database is not at fault.

            Assignee:
            james.stone@mongodb.com James Stone
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: