iPhone app black screen after switches back from background

My app shows black screen after switches back from background.


this happens only when I use my app to record a video and even after I finishes recording successfully before I switch this app to background.


If recording function is not used before I switch this app to background, it won't black screen after switching back from background.


in Xcode debugger, the main thread looks fine to me.


any ideas about what could be wrong? thanks a lot!


(lldb) bt

* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP

* frame #0: 0x00000001b20f4634 libsystem_kernel.dylib`mach_msg_trap + 8

frame #1: 0x00000001b20f3aa0 libsystem_kernel.dylib`mach_msg + 72

frame #2: 0x00000001b229b04c CoreFoundation`__CFRunLoopServiceMachPort + 216

frame #3: 0x00000001b229616c CoreFoundation`__CFRunLoopRun + 1444

frame #4: 0x00000001b22958a0 CoreFoundation`CFRunLoopRunSpecific + 464

frame #5: 0x00000001bc1ed328 GraphicsServices`GSEventRunModal + 104

frame #6: 0x00000001b6386740 UIKitCore`UIApplicationMain + 1936

frame #7: 0x0000000100ca52ec PrivCam`main(argc=1, argv=0x000000016f25f830) at main.m:14:16

frame #8: 0x00000001b2120360 libdyld.dylib`start + 4