-
Type: Bug
-
Resolution: Cannot Reproduce
-
Priority: Critical - P2
-
None
-
Affects Version/s: None
-
Component/s: None
This errors just happens (by now) on physical device and just sometimes, on android emulator does not happen.
I have this function to get objects lists from Realm.
import R from 'ramda'; const fn = async ({ Realm, DatabaseOptions }, schema, filter) => { console.log('localStorage/fwGet'); console.log({ schema, filter }); const realm = await Realm.open(DatabaseOptions); let users = realm.objects(schema); if (filter) { users = users.filtered(...filter).snapshot(); } console.log('Terminando get'); const x = []; for (const i in users) { x.push(users[i]); } console.log('values devueltos: '); return x; }; const fwGet = R.curry(fn); export { fwGet };
Sometimes, just SOMETIMES, it gets me this error (via android studio logcat) and the app just closes without visual error.
Another
This error is throw in almost all latest Realm version. those aboves error were threw using Realm@6.1.0, though the same happens with realm 6.0.5, 6.0.3, 10.0.0-beta.10, 10.0.0-beta.7. At least those are the ones that I used to check if the error was in a particular realm version.
Version of Realm and Tooling
- Realm: 6.1.0
- React Native: 0.62.2
- Device: Motorola g(6) plust - Android 9