`LockFileEx() failed: Incorrect function` when opening a Realm on Windows stored on the WSL file system

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      Expected results

      The ability to open Realm files regardless of the file system they are on.

      Actual Results

      Users of Realm Studio experience an exception from Core when opening a Realm file stored on the Windows Subsystem for Linux file system:

      LockFileEx() failed: Incorrect function
      

      This is most likely related to WSL's lack of support for the LockFileEx system call.
      See https://github.com/microsoft/WSL/issues/5762.

      Steps & Code to Reproduce

      See https://github.com/realm/realm-studio/issues/1477.

      Core version

      Core version: 11.0.4

              Assignee:
              Unassigned
              Reporter:
              Kræn Hansen
              Archiver:
              Marc Greenfield

                Created:
                Updated:
                Resolved:
                Archived: