[MacRuby] #848: Recieving SIGABRT signal from GDB
#848: Recieving SIGABRT signal from GDB --------------------------------+------------------------------------------- Reporter: cameron@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- I am working on a program using [http://brandonwalkin.com/bwtoolkit/ BWToolkit] for the custom views and have run into some errors. I'm unsure if this is an issue with MacRuby or with the toolkit itself, so please advise. With a program using this controller: [http://gist.github.com/519938] compiling it under Xcode 3.2.3 and MacRuby 0.6, I get an error of: {{{ uncaught Objective-C/C++ exception... 2010-08-11 17:15:45.989 zebra[374:a0f] An uncaught exception was raised 2010-08-11 17:15:45.992 zebra[374:a0f] *** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (BWSplitView) 2010-08-11 17:15:45.995 zebra[374:a0f] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: '*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (BWSplitView)' *** Call stack at first throw: ( 0 CoreFoundation 0x00007fff841c6cc4 __exceptionPreprocess + 180 1 libobjc.A.dylib 0x00007fff80eb50f3 objc_exception_throw + 45 2 CoreFoundation 0x00007fff841c6ae7 +[NSException raise:format:arguments:] + 103 3 CoreFoundation 0x00007fff841c6a74 +[NSException raise:format:] + 148 4 Foundation 0x00007fff88858a86 _decodeObjectBinary + 2427 5 Foundation 0x00007fff88859805 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1229 6 Foundation 0x00007fff88859d45 -[NSArray(NSArray) initWithCoder:] + 462 7 Foundation 0x00007fff88858aff _decodeObjectBinary + 2548 8 Foundation 0x00007fff88857f79 _decodeObject + 208 9 AppKit 0x00007fff8769c47a -[NSView initWithCoder:] + 362 10 Foundation 0x00007fff88858aff _decodeObjectBinary + 2548 11 Foundation 0x00007fff88857f79 _decodeObject + 208 12 AppKit 0x00007fff876aa83b -[NSWindowTemplate initWithCoder:] + 3824 13 Foundation 0x00007fff88858aff _decodeObjectBinary + 2548 14 Foundation 0x00007fff88859805 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1229 15 Foundation 0x00007fff88859248 -[NSSet(NSSet) initWithCoder:] + 447 16 Foundation 0x00007fff88858aff _decodeObjectBinary + 2548 17 Foundation 0x00007fff88857f79 _decodeObject + 208 18 AppKit 0x00007fff8762c55a -[NSIBObjectData initWithCoder:] + 1983 19 Foundation 0x00007fff88858aff _decodeObjectBinary + 2548 20 Foundation 0x00007fff88857f79 _decodeObject + 208 21 AppKit 0x00007fff8762bc89 loadNib + 146 22 AppKit 0x00007fff8762b1e9 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 248 23 AppKit 0x00007fff8762b021 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 326 24 AppKit 0x00007fff876285a3 NSApplicationMain + 279 25 ??? 0x00000001012291e0 0x0 + 4314010080 26 libmacruby.dylib 0x000000010013d81a rb_vm_dispatch + 3450 27 ??? 0x0000000101200630 0x0 + 4313843248 28 libmacruby.dylib 0x000000010014f9ac rb_vm_run + 348 29 libmacruby.dylib 0x00000001000431e9 ruby_run_node + 73 30 libmacruby.dylib 0x000000010014fcb8 macruby_main + 360 31 zebra 0x0000000100000e85 main + 40 32 zebra 0x0000000100000cdc start + 52 33 ??? 0x0000000000000001 0x0 + 1 ) terminate called after throwing an instance of 'NSException' Program received signal: “SIGABRT”. }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/848> MacRuby <http://macruby.org/>
#848: Recieving SIGABRT signal from GDB --------------------------------+------------------------------------------- Reporter: cameron@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- Comment(by martinlagardette@…): Just by looking at the stack, it looks like it might be a problem with the project, but I'm not sure. Is there a way to attach a sample project that reproduces the problem? If not, can you try installing [http://www.macruby.org/files/nightlies/ a nightly build of MacRuby 0.7], and tell us if the issue still arises? -- Ticket URL: <http://www.macruby.org/trac/ticket/848#comment:1> MacRuby <http://macruby.org/>
#848: Recieving SIGABRT signal from GDB --------------------------------+------------------------------------------- Reporter: cameron@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- Comment(by cameron@…): The majority of it is included in the controller. I'm not sure if installing the nightly would interfere with the current installation of MacRuby... -- Ticket URL: <http://www.macruby.org/trac/ticket/848#comment:2> MacRuby <http://macruby.org/>
#848: Recieving SIGABRT signal from GDB --------------------------------+------------------------------------------- Reporter: cameron@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- Comment(by lsansonetti@…): is the BWToolkit framework actually loaded in your project? It looks like the runtime can't find the BWSplitView class. To load a framework, you need to edit rb_main.rb. -- Ticket URL: <http://www.macruby.org/trac/ticket/848#comment:3> MacRuby <http://macruby.org/>
#848: Recieving SIGABRT signal from GDB --------------------------------+------------------------------------------- Reporter: cameron@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- Comment(by cameron@…): I've included the framework in the project but it refuses to load and throws a data formatting error in GDB. I have since filed a bug report with BWToolkit, but I am still unsure where the bug lies. That said, I have discontinued use of the toolkit until the matter is settled. See: [http://bwalkin.lighthouseapp.com/projects/36323/tickets/64-bwtoolkit- does-not-appear-in-the-frameworks-pane] -- Ticket URL: <http://www.macruby.org/trac/ticket/848#comment:4> MacRuby <http://macruby.org/>
#848: Recieving SIGABRT signal from GDB --------------------------------+------------------------------------------- Reporter: cameron@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: minor | Milestone: MacRuby 0.8 Component: MacRuby | Resolution: worksforme Keywords: | --------------------------------+------------------------------------------- Changes (by eloy.de.enige@…): * status: new => closed * resolution: => worksforme * milestone: => MacRuby 0.8 Comment: I have been using BWToolkit (with BWSplitView) in an app without any problems for a while now. If you have a complete runnable example we could have another look, but it looks like that for whatever reason the framework did not get linked in. -- Ticket URL: <http://www.macruby.org/trac/ticket/848#comment:5> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby