Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Periodic app crash both on iOS and Android #2196
We have an app written in ReactNative that uses a sync realm to sync data to Realm cloud. We are currently still in development so the number of users testing the app on iOS and Android devices is very small. But for both iOS and Android apps periodically crash, seemingly without any trigger. Sometimes it happens 30 seconds after opening, sometimes requires 15 min for the app to be open on screen. We use query-based realms to sync a subset of all data to each device.
For Android it is an SIGABRT error, on iOS it is N5realm2js9ExceptionINS_3jsc5TypesEEE
We are using Bugsnag for error reporting.
Android error info from bugsnag:
iOS error details
The biggest problem is that I'm not sure what is causing this as it can't be triggered, it would seem we have to run the app and leave it running and then at some point the app will crash. When it is in foreground, you get the Android message about a crashed app, but I suspect that sometimes it also crashes while in background as I keep getting Bugsnag error reports even when the app shouldn't be running.
Not sure if this is relevant, but we also get errors on NodeJS that is syncing with the same Realm cloud instance. There are two that stand out:
I suspect both periodically happen when Realm is syncing in the background and might or might not be related to my app crash. For Node I've just written uncoughtException handler and keep the Node process running so it won't crash.
I understand that this is not really a lot to go on, but I'm not sure how to investigate this problem further. Any pointers would be appreciated - debugging/logs/etc, anything that might help.
@supereffectiveRobot i'm told that v2.21.1 might resolve the problem https://github.com/realm/realm-js/releases/tag/v2.21.1