[Sparkle] Sparkle causes crash on launch with custom URL, RubyCocoa
Christopher Bailey
chris at cobaltedge.com
Fri May 9 21:31:42 PDT 2008
First, I acknowledge this is probably a serious long shot, but... I have a
small RubyCocoa app that registers as a custom URL handler. It has Sparkle
in it. What I've found is that if I launch my app via the URL, e.g. I do
this from a terminal (or the equivalent link from a browser):
open "bwalinker:mycustomthingy=foo"
What happens is my app appears to start up, but then crashes. If on the
other hand I do that same open command from the command line, but the app is
already running, things are fine. I finally tracked this down to some
interaction with Sparkle. If I remove Sparkle, then no more crash.
I'm wondering if anyone else has seen something like this? It's a royal
pain to debug (at least with my knowledge of Xcode debugging and so on),
because it's on launch, and so I can't start the app with the debugger (or
is there a way to cause the debugger to start or attach to it when launched
via a URL like this?), not to mention that the crash occurs down in Ruby
code.
I don't think it has any impact, because my app can launch in the case where
it's not launched via the custom URL handler, but Sparkle spits out two of
the same unrecognized selector messages to the console during launch:
NSInvalidArgumentException - *** -[NSCFString longValue]: unrecognized
selector sent to instance 0x22baa0 (OSX::OCException)
We see this on Leopard.
--
Christopher Bailey
Cobalt Edge LLC
http://cobaltedge.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andymatuschak.org/pipermail/sparkle-andymatuschak.org/attachments/20080509/6ca217c8/attachment.htm>
More information about the Sparkle
mailing list