[Adium-devl] Ending the era of NSException crashes?
Evan Schoenberg
evan.s at dreskin.net
Sun Apr 1 02:41:05 UTC 2007
Since we've had the crash reporter, we've had unhandled NSExceptions
be treated as crashes. This was great when Adium was young and there
were a bunch of exceptions we were causing one way or another
inadvertantly. Nowadays, though, even with the exception controller
riddled with "safe" exceptions -- thrown either by appkit or by known
other applications in the course of their normal behavior -- most of
the exceptions I see in the crash reporter seem to be not our fault
and probably harmless.
The example I saw just now was that the Logical Control Center likes
to send @selector(deviceDeltaX) to ScrollWheel events sometimes...
which does the following:
OS Version: Version 10.4.9 (Build 8P135)
Language: en
Exception: NSInternalInconsistencyException
Reason: Invalid message sent to event "NSEvent: type=ScrollWheel loc=
(198,242) time=20708.8 flags=0x100 win=0 winNum=402 ctxt=0xdc07
deltaX=0.000000 deltaY=-3.000000 deltaZ=0.000000"
Stack trace:
1
2 -[NSAssertionHandler
handleFailureInMethod:object:file:lineNumber:description:] (in
Foundation)
3
4 -[NSEvent deviceDeltaX] (in AppKit)
5
6 -[NSScrollView scrollWheel:] (in AppKit)
7
8 _forwardMethod (in AppKit)
9
10 -[NSView scrollWheel:] (in AppKit)
11
fun!
So should Adium crash in that situation? Every other OS X would log
to console... and possibly behave erratically if this happened in the
midst of some other invocation. We send a crash report and call it a
day.
I'm thinking that moving back to the "standard" behavior might give
us less crash reports to sift through and give users a better chance
of random software interactions not ruining their Adium day. What do
you think?
Can anyone tell I have a huge test coming up? :D
-Evan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070331/ae7878e9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070331/ae7878e9/attachment.sig>
More information about the devel
mailing list