I use a overlay scene to show a webView, and it was working fine so far until recently I added another storyboard that does the same thing, my app crashes when exiting the webView & the overlay scene. (The app exits immediately back to iPhone desktop)
The console log shows:
\<Warning\>: Application 'UIKitApplication:com.test.myapp[0xdb7d]' exited abnormally with signal 11: Segmentation fault: 11
and the crash log shows
Thread 0 Crashed: 0 libobjc.A.dylib 0x38726b36 objc\_msgSend + 22 1 UIKit 0x30ce7f90 -[UIWebView webView:identifierForInitialRequest:fromDataSource:] + 72 2 CoreFoundation 0x2e358500 \_\_invoking\_\_\_ + 64 3 CoreFoundation 0x2e2a2eb6 -[NSInvocation invoke] + 278 4 CoreFoundation 0x2e2a664e -[NSInvocation invokeWithTarget:] + 46 5 WebKit 0x36b9af7a -[\_WebSafeForwarder forwardInvocation:] + 218 6 CoreFoundation 0x2e35706c \_\_\_forwarding\_\_\_ + 348 7 CoreFoundation 0x2e2a6594 \_CF\_forwarding\_prep\_0 + 20 8 CoreFoundation 0x2e358500 \_\_invoking\_\_\_ + 64 9 CoreFoundation 0x2e2a2eb6 -[NSInvocation invoke] + 278 10 WebCore 0x361ecb88 HandleDelegateSource(void\*) + 96 11 CoreFoundation 0x2e320188 \_\_CFRUNLOOP\_IS\_CALLING\_OUT\_TO\_A\_SOURCE0\_PERFORM\_FUNCTION\_\_ + 12 12 CoreFoundation 0x2e31f656 \_\_CFRunLoopDoSources0 + 202 13 CoreFoundation 0x2e31de4a \_\_CFRunLoopRun + 618 14 CoreFoundation 0x2e288ce2 CFRunLoopRunSpecific + 518 15 CoreFoundation 0x2e288ac6 CFRunLoopRunInMode + 102 16 GraphicsServices 0x32fa927e GSEventRunModal + 134 17 UIKit 0x30b2aa3c UIApplicationMain + 1132 18 myapp 0x00044bf2 \_\_\_lldb\_unnamed\_function1$$myapp + 62 19 myapp 0x00044bac start + 36
Please note that this crash ONLY happens in my iPhone 4S testing. It does NOT happen in Simulator, and it does NOT happen in Galaxy Tab. It’s a very strange crash.
Any thoughts?