Realm-js: Realm is not created on the first launch

Created on 5 Jun 2019  路  3Comments  路  Source: realm/realm-js

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

O-Community P-1-Required T-Bug

All 3 comments

It seems that condition on this line is incorrect.

some additional notes related this issue:
https://github.com/realm/realm-js/issues/578#issuecomment-499123822

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)); }

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kontinuity picture kontinuity  路  3Comments

bdebout picture bdebout  路  3Comments

kevinnguy picture kevinnguy  路  3Comments

ashah888 picture ashah888  路  3Comments

camslaz picture camslaz  路  4Comments