I'm not sure this is really a networking issue but I couldn't come up
with a better place to ask this question. So please point me me
somewhere else if you think this would be better asked there.
While developing an application that repeatedly (once per second
would be a reasonable value) loads an image from a webserver
(actually a webcam) a friend of mine testing the app is sometimes
(but not always) encountering crashes that always follow the same
pattern:
What's notable about the crashes is that they always look exactly the
same, and always seem to happen inside a thread that is created
internally by [NSURL resourceDataUsingCache:NO], apparently while it
is accessing the keychain to get the authentication info for the url.
The other thing that is remarkable is that each time this happens, a
number of other processes, like Safari and Mail.app running on the
same machine crash with exactly the same error at exactly the same time.
According to my friend Keychain Access.app does not see any errors in
its keychains (the Keychain First Aid command did not find anything).
And I don't see anything obvious that I'm doing wrong. My code,
called from an NSTimer callback, couldn't be more simple and looks
like this:
And [self urlString] yields @"http://192.168.0.21/axis-cgi/jpg/
image.cgi?resolution=640x480". The webcam initially answers with a
401 return code to ask for HTTP authentication credentials that are
stored in the login Keychain.
I have not seen these crashes on my machine (PPC G5 running 10.4.11).
Any ideas?
Thanks!
Mike
--
Mike Fischer Softwareentwicklung, EDV-Beratung
Schulung, Vertrieb
Web: <http://homepage.mac.com/mike_fischer/index.html>
Note: I read this list in digest mode!
Send me a private copy for faster responses.