IOS build crashes on resume if device is locked

How do you guys deal with multitasking on IOS? I’m using Application Lifecycle delegates to save/restore state But the app crashes if device goes into sleep/ or is locked with the power button. It opens fine but crashes in a few seconds. Works fine if we minimize/restore the app

Device logs say segmentation fault, how can I go about debugging this?