Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kraenhansen opened this issue Feb 22, 2022 · 0 comments
Labels

Comments

@kraenhansen
Copy link
Member

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 microsoft/WSL#5762.

Steps & Code to Reproduce

See realm/realm-studio#1477.

Core version

Core version: 11.0.4

@sync-by-unito sync-by-unito bot closed this as completed Jan 16, 2023
RedBeard0531 added a commit that referenced this issue Apr 26, 2023
* support building for RN-android

* use separate native.mjs files for node vs RN with different native module loading intros

* Temporarily making FS APIs to async

* Temporarily disabling jwt test

* Temporarily disabling the use of WeakRef

* Temporarily disable crashing test by disabling the failing float property

* Fixed float crash

* expose JsPlatformHelpers for FS ops

* flush microtask queue after CPP->JS callbacks

* Fixed jwt test, by using a pure JS package to sign

* Revert "Temporarily making FS APIs to async"

This reverts commit e3e2659710d6ea9f5ab1b76e0f0c2d91072cb67a.

* Using binding's platform utils on RN

* Commenting on the failing "beforenotify" test

* Fixed "QueryArg" crash.

* Revert "Temporarily disabling the use of WeakRef"

This reverts commit 1d3e385e51c9a42fb1e89d4ba6a8923a4770c15c.

* Add WeakRef polyfill

* Fixed removeRealmFilesFromDirectory on Node

Co-authored-by: Mathias Stearn <redbeard0531@gmail.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant