ptcrealitylab / vuforia-spatial-edge-server

Edge Server for the Vuforia Spatial Toolbox, a shared research platform for exploring spatial computing as a community
https://spatialtoolbox.vuforia.com
Mozilla Public License 2.0
20 stars 12 forks source link

App restart when a device locks its screen #985

Open ptc-mklaudiny opened 9 months ago

ptc-mklaudiny commented 9 months ago

NodeMobile looses ability to listen its connections when the screen is locked. It emits an exception which is unhandled and this makes Node to shutdown. In turn, this calls exit() on parent process (swift app itself). The app crashes because the shutdown is not coordinated with Engine and while the Engine is being destroyed there is bad memory access abort. Interestingly the app somewhat restarts itself after this ...

ptc-mklaudiny commented 9 months ago

An attempt to handle the exceptions from NodeMobile gracefully has not been successful for far. https://github.com/ptcrealitylab/vuforia-spatial-edge-server/pull/976