views:

483

answers:

1

Hi,

When I load a specific web page using UIWebView in my iPhone app, it crashes with a mach_msg_trap error. Other websites load fine in my app. Try this URL as an example:

[rssArticle loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.fan-f1.com/actualite-8387-F1-Massa-pourrait-quitter-lhopital-de-Budapest-dans-10-jours.html"]]];

This specific web page makes the app crashing, and loading that same URL in Safari mobile makes it crash the same way (the homepage of that website produces the same result). Do you have the same behaviour on your iPhone? Should I report a bug or is it some known problem with websites sharing a common specificity?

Thanks

A: 

mach_msg_trap is a function which wraps the generic kernel message-sending in iPhone OS and Mac OS X, so covers a multitude of sins from sockets to inter-thread communication. Do you have more information about your crash which could help understand what's going on?

Graham Lee
As far as I remember, a few days ago I managed to see a stack pointing at a lot of JSCore method calls, but now when I run the app, the call stack is showing only a few standard calls: main, UIApplicationMain, GSEvent, GSEventRun, GSEventRunModal, CFRunLoopRunInMode, CFRunLoopRunSpecific, mach_msg, and mach_msg_trap.If I manage to get more details, I'll post them here.Can you reproduce the bug?
Romain
That sounds like some other thread crashed, and your main thread is just waiting in the event loop.
Graham Lee