Uploaded image for project: 'Realm Studio'
  1. Realm Studio
  2. RSTUDIO-483

"LockFileEx() failed" error when opening .realm on Windows via WSL

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

      Describe the bug
      If I attempt to open a database in Realm Studio that lives on the WSL instance, I get an error:

      LockFileEx() failed: Incorrect function.
      

      and

      "No schema selected"
      

      This happens with both "File open" and double-clicking the file.

      To Reproduce
      Steps to reproduce the behavior:

      1. Create a realm file in a WSL instance
      2. Try and open it
      3. See error

      Expected behavior
      If I copy the .realm file to the Windows file system, it opens just fine.

      Screenshots

      Versions:

      • OS: Ubuntu 20.04.3 LTS on Windows 11 via WSL (2)
      • Studio Version: 11.1.1
      • Realm Object Server version [e.g. 3.0.1] <-- never heard of it

      Additional context
      I also tried opening it when it wasn't in use, same result.

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

              Created:
              Updated:
              Resolved: