-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Cannot open .realm file on exFAT and FAT32 drives #6508
Comments
@ironage This sounds like File::prealloc() is failing to fall back to manual prealloc when the filesystem doesn't support it. I assigned you since I think you were the one to write that bit of code, but just let me know if you won't be able to get this. |
Thanks for checking this! Appreciate your time. |
Prealloc. We use a APFS feature to expand the Realm file when needed, and just aren't properly falling back to the non-APFS case. |
Thanks for your reply. So, is RealmCocoa supposed to support non-APFS? For example, exFAT? Really looking forward to your reply, and thanks. |
It is supposed to work and the fact that it doesn't in a bug which should be simple to fix. |
This is awesome! Thank you very much for the quick and helpful replies! |
Goals
Open a saved
.realm
file on an exFAT drive in Realm StudioExpected Results
The file is opened as expected
Actual Results
Realm Studio reports an error
Steps to Reproduce
1. Create a sample CSV file has the following content and save as
sample.csv
on an APFS drive (In my case, it was my Macintosh HD on my MBP)2. Use Realm Studio (Version 3.11.0 (3.11.0.719))
> Create Realm from> CSV and select 'sample.csv' and save assample.realm
3. Open
sample.realm
on APFS and it works as expected4. Move
sample.realm
to an external exFAT drive and use Realm Studio to open it again5. Ream Studio reports the following error
Code Sample
Above replication does not require a sample code, but the same issue happens to our OS X application too when it tries to read a saved Realm file on exFAT or FAT32 drives.
Version of Realm and Tooling
Realm framework version: 4.4.1
Realm Object Server version: ?
Xcode version: 11.3.1
iOS/OSX version: ?
Dependency manager + version: ?
The text was updated successfully, but these errors were encountered: