I'm using a service when the app is in the background (not Starter), that checks the GPS every couple of minutes or so. Once in a while this service crashes, and I get a message
TheApp has stopped. This happens once or twice per 24 hours, roughly.
The first thing I do when the service wakes up is schedule the next run, and like a clock it restarts next time without problems or crashes. The service basically gets a GPS fix, chats with an external API and updates a notification - that's it.
Below is what the IDE logs when this happens. I should note that I'm running the app in Release mode, and am using the #BridgeLogger to get the logs.
Failed to create EGLSurface for window 0x7ba365e010, eglErr = EGL_BAD_ALLOC
--------- beginning of crash
Fatal signal 6 (SIGABRT), code -6 in tid 2106 (RenderThread), pid 2090 (the.app.name)
Neither the forum nor Google has a lot to say about this. There is a single hit in the forum for EGL_BAD_ALLOC, but that doesn't seem to relate to this issue. On the net, most hits about that error is related to React, and running the app in an emulator. I'm neither using React (duh), nor using an emulator. So I'm a bit lost here.
Does this error ring a bell for anyone?