realm / realm-tasks

To Do app built with Realm, inspired by Clear for iOS
Other
369 stars 71 forks source link

Sync demo app from OS X bundle crashed on first login #302

Closed austinzheng closed 8 years ago

austinzheng commented 8 years ago

I downloaded the OS X bundle, started the server, and opened the prebuilt copy of RealmTasks. Then I made a new account and pressed the log in button.

The app crashed with the following error:

Application Specific Information:
terminating with uncaught exception of type realm::RealmFileException: Unable to open a realm at path '/Users/austinzheng/Library/Application Support/io.realm.realmtasks.macos/realm-object-server/io.realm.object-server-metadata/sync_metadata.realm.management': make_dir() failed: No such file or directory.

This is really weird, because:

This is a bad user experience and I want to look into this issue more carefully.

stel commented 8 years ago

@austinzheng did you launch an app before starting the server? Currently there is a workaround in .start-object-server.command that removes this files:

if [ ! -f "$package/object-server/installed" ]; then
    echo "Deleting files from the previous version"
    rm -rf ~/Library/Containers/io.realm.{RealmTasks,realmbrowser,realmtasks.macos}
    ...

This should be removed after #205 is implemented.

austinzheng commented 8 years ago

Yeah, I did. Okay, that makes sense then. Thanks! (Also explains why I couldn't reproduce it...)