Hi,
my app is crashing when a UIWebView tries to open a URL in the UIApplication. This happens only on a device and only with an ipa that was compiled with iOS8 SDK (it's an app that is on the appstore). The crashlog looks somehow wierd though because it says "SIMULATED (this is NOT a crash)"
Exception Type: 00000020
Exception Codes: 0x000000008badf00d
Exception Note: SIMULATED (this is NOT a crash)
Highlighted by Thread: 0
Application Specific Information:
net.tequilaapps.PStatsApp failed to scene-update after 10.00s
Elapsed total CPU time (seconds): 145.770 (user 145.770, system 0.000), 45% CPU
Elapsed application CPU time (seconds): 31.125, 10% CPU
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x39b5ff58 semaphore_wait_trap + 8
1 libdispatch.dylib 0x39a6c4e2 _dispatch_semaphore_wait_slow + 186
2 libdispatch.dylib 0x39a6c4e2 _dispatch_semaphore_wait_slow + 186
3 libxpc.dylib 0x39c33a26 xpc_connection_send_message_with_reply_sync + 174
4 MobileCoreServices 0x2a1526d6 _LSStartOpenOperation + 178
5 MobileCoreServices 0x2a171d00 -[LSOpenOperation main] + 1416
6 MobileCoreServices 0x2a158a80 -[LSApplicationWorkspace openURL:withOptions:error:] + 356
7 MobileCoreServices 0x2a158912 -[LSApplicationWorkspace openURL:withOptions:] + 26
8 UIKit 0x2c396218 -[UIApplication openURL:] + 356
9 PStatsApp 0x005b3f20 0xa000 + 5938976
10 PStatsApp 0x005e9c90 0xa000 + 6159504
11 PStatsApp 0x005e90f8 0xa000 + 6156536
12 PStatsApp 0x005e8b86 0xa000 + 6155142
13 PStatsApp 0x005eb696 0xa000 + 6166166
14 UIKit 0x2c351736 -[UIWebView webView:decidePolicyForNavigationAction:request:frame:decisionListener:] + 294The code causing this is this
#pragma mark - UIWebViewDelegate
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
{
NSLog(@"Dismissing");
[self.presentingViewController dismissViewControllerAnimated:YES
completion:^{
NSLog(@"Dismissed");
}];
[[UIApplication sharedApplication] openURL:request.URL];
return NO;
}I also see this log message in the console:
void SendDelegateMessage(NSInvocation *): delegate (webView:decidePolicyForNavigationAction:request:frame:decisionListener:) failed to return after waiting 10 seconds. main run loop mode: kCFRunLoopDefaultModeAny ideas what this crash means ?
cheers