Crash OnApplicationPause when recording voice

Hi Li,
Attached is a video of the logcat output for an Oculus 2 and a Oculus 3. To get the crash I start the app - wait five seconds then put the headset down.
The application must lose focus - this can be defined from the Oculus app - see screenshots on where this setting can be changed in order to hit that case.



So after i put the headset down and 15 seconds elapses the device enters into standby mode. If i call microphone.stoprecording on the OnApplicationSuspend things break immediately (I think because there is an internal call inside FMOD which has already started to shutdown FMOD). If I don’t call micrphone.stoprecording things crash on application resume (ie. when i pickup the headset again).

I suspect the detail I may of neglected to include was that the ‘on lost focus’ needs to be called.

Both versions are using version 12 of android. The crash has been replicated on all 4 devices we’ve tested with without fail.

This is a screenshot of the code thats called on applicationpause

But all this code can be commented out the crash will still take place as long as we’ve called this one;

ie. if we are recording and playing back the low latency echo. Things crash.
If i push ‘stop recording’ prior to putting the application into lost focus mode - things are fine - no crash… But we never know when someone is going to take off their headset.

Happy to provide further detail on anything that’ll help - hopefully this is enough for you to be able to get the issue turning up there.

Video link: