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

Realm is not created on the first launch #2400

Closed
max-zu opened this issue Jun 5, 2019 · 3 comments · Fixed by #2402
Closed

Realm is not created on the first launch #2400

max-zu opened this issue Jun 5, 2019 · 3 comments · Fixed by #2402
Assignees

Comments

@max-zu
Copy link
Contributor

max-zu commented Jun 5, 2019

App crashes on the first launch after update from 2.2.10 to 2.28.0.
On the second launch app works fine.

react-native: 0.55.4
macOS: 10.14.5

POST http://192.168.42.36:8083/create_realm net::ERR_EMPTY_RESPONSE.

image

image

@max-zu
Copy link
Contributor Author

max-zu commented Jun 5, 2019

It seems that condition on this line is incorrect.

@ValeriiKov
Copy link

some additional notes related this issue:
#578 (comment)

@bmunkholm bmunkholm added the T-Bug label Jun 6, 2019
@esutton
Copy link

esutton commented Jun 7, 2019

I am seeing iOS crashes on createDirectoryAtPath.

    "react": "^16.8.6",
    "react-native": "0.59.9",
    "realm": "^2.28.1",

Adding the missing not sign "!" fixes.

        NSError *error = nil;
        if (![manager createDirectoryAtPath:docsDir withIntermediateDirectories:YES attributes:nil error:&error]) {
            throw std::runtime_error(util::format("Failed to create directory \"%1\": %2", docsDir.UTF8String, error_description(error).UTF8String));
        }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants