[MacRuby] #651: NSString#stringByDeletingPathExtension: not retuning a String
#651: NSString#stringByDeletingPathExtension: not retuning a String ----------------------------------+----------------------------------------- Reporter: koudelka@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: stringByDeletingPathExtension ----------------------------------+----------------------------------------- The NSString docs for stringByDeletingPathExtension: indicate that it should return an NSString pointer, but doesn't seem to do so in macruby. In `macirb`:
"/a/b/c.d".stringByDeletingPathExtension => "/a/b/c"
"/a/b/c.d".stringByDeletingPathExtension + 'aa' TypeError: wrong argument type NSPathStore2 (expected String) from (irb):2:in `<main>'
"/a/b/c.d".stringByDeletingPathExtension.class => NSPathStore2
My macruby version string is: MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64] --Mike -- Ticket URL: <http://www.macruby.org/trac/ticket/651> MacRuby <http://macruby.org/>
#651: NSString#stringByDeletingPathExtension: not retuning a String ----------------------------------+----------------------------------------- Reporter: koudelka@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: stringByDeletingPathExtension ----------------------------------+----------------------------------------- Comment(by koudelka@…): Sorry, that should be "returning" in the title, obviously. :) -- Ticket URL: <http://www.macruby.org/trac/ticket/651#comment:1> MacRuby <http://macruby.org/>
#651: NSString#stringByDeletingPathExtension: not returning a String ----------------------------------+----------------------------------------- Reporter: koudelka@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: stringByDeletingPathExtension ----------------------------------+----------------------------------------- Comment(by lsansonetti@…): It behaves like in Objective-C. NSPathStore2 is a subclass of NSString. The fact that #+ does not work on it is still a problem, though. -- Ticket URL: <http://www.macruby.org/trac/ticket/651#comment:2> MacRuby <http://macruby.org/>
#651: NSString#stringByDeletingPathExtension: not returning a String ----------------------------------+----------------------------------------- Reporter: koudelka@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: stringByDeletingPathExtension ----------------------------------+----------------------------------------- Comment(by martinlagardette@…): I failed to reproduce the bug with MacRuby trunk: {{{ $> macirb irb(main):001:0> "/a/b/c.d".stringByDeletingPathExtension => "/a/b/c" irb(main):002:0> "/a/b/c.d".stringByDeletingPathExtension + 'aa' => "/a/b/caa" irb(main):003:0> "/a/b/c.d".stringByDeletingPathExtension.class => String }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/651#comment:3> MacRuby <http://macruby.org/>
#651: NSString#stringByDeletingPathExtension: not returning a String -------------------------------------------+-------------------------------- Reporter: koudelka@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: minor | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: fixed Keywords: stringByDeletingPathExtension | -------------------------------------------+-------------------------------- Changes (by martinlagardette@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.6 Comment: Closing as fixed. Please check with trunk/nightlies, it should be fixed for you too :-) -- Ticket URL: <http://www.macruby.org/trac/ticket/651#comment:4> MacRuby <http://macruby.org/>
Hey, I'm fooling around with NSPasteboard - following the documentation found at: http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/Pasteb... I've got an instance of NSPasteboard through: "board = NSPasteboard.generalPasteboard" but "board" doesn't respond to any methods mentioned later in the tutorial I posted. I'm looking for the method: "canReadObjectForClasses" So I can continue on. Thanks ahead of time, Rob
Hey, I've been using a MacRuby nightly from a few days ago, and this bug is reproducible on that and macruby-latest.pkg(I fetched it a few minutes ago): To reproduce: framework('corefoundation') framework('appkit') Thanks, Rob
Can you open a trac ticket please? Here is what I get: $ macirb irb(main):001:0> framework 'CoreFoundation' => true irb(main):002:0> framework 'AppKit' => true irb(main):003:0> But: $ macirb irb(main):001:0> framework 'CoreFoundation' => true irb(main):002:0> framework 'AppKit' => true irb(main):003:0> exit [mattetti@matt-aimonettis-macbook macruby]$ macirb irb(main):001:0> framework('corefoundation') => true irb(main):002:0> framework('appkit') unknown: warning: already initialized constant CFAllocatorContext unknown: warning: already initialized constant CFArrayCallBacks unknown: warning: already initialized constant CFBagCallBacks unknown: warning: already initialized constant CFBinaryHeapCallBacks unknown: warning: already initialized constant CFBinaryHeapCompareContext unknown: warning: already initialized constant CFDictionaryKeyCallBacks unknown: warning: already initialized constant CFDictionaryValueCallBacks unknown: warning: already initialized constant CFFileDescriptorContext unknown: warning: already initialized constant CFGregorianDate unknown: warning: already initialized constant CFGregorianUnits unknown: warning: already initialized constant CFMachPortContext unknown: warning: already initialized constant CFMessagePortContext unknown: warning: already initialized constant CFRange unknown: warning: already initialized constant CFRunLoopObserverContext unknown: warning: already initialized constant CFRunLoopSourceContext unknown: warning: already initialized constant CFRunLoopTimerContext unknown: warning: already initialized constant CFSetCallBacks unknown: warning: already initialized constant CFSocketContext unknown: warning: already initialized constant CFSocketSignature unknown: warning: already initialized constant CFStreamClientContext unknown: warning: already initialized constant CFStreamError unknown: warning: already initialized constant CFStringInlineBuffer unknown: warning: already initialized constant CFSwappedFloat32 unknown: warning: already initialized constant CFSwappedFloat64 unknown: warning: already initialized constant CFTreeContext unknown: warning: already initialized constant CFUUIDBytes unknown: warning: already initialized constant CFXMLAttributeDeclarationInfo unknown: warning: already initialized constant CFXMLAttributeListDeclarationInfo unknown: warning: already initialized constant CFXMLDocumentInfo unknown: warning: already initialized constant CFXMLDocumentTypeInfo unknown: warning: already initialized constant CFXMLElementInfo unknown: warning: already initialized constant CFXMLElementTypeDeclarationInfo unknown: warning: already initialized constant CFXMLEntityInfo unknown: warning: already initialized constant CFXMLEntityReferenceInfo unknown: warning: already initialized constant CFXMLExternalID unknown: warning: already initialized constant CFXMLNotationInfo unknown: warning: already initialized constant CFXMLParserCallBacks unknown: warning: already initialized constant CFXMLParserContext unknown: warning: already initialized constant CFXMLProcessingInstructionInfo macruby(51083,0x7fff70a51be0) malloc: *** error for object 0x10498d7c0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap Process: macruby [51083] Path: /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/bin/macruby Identifier: macruby Version: ??? (???) Code Type: X86-64 (Native) Parent Process: bash [50716] Date/Time: 2010-04-24 11:13:26.241 -0700 OS Version: Mac OS X 10.6.2 (10C540) Report Version: 6 Interval Since Last Report: 147902 sec Crashes Since Last Report: 1 Per-App Crashes Since Last Report: 1 Anonymous UUID: 9B58BA8B-C3A5-49A8-941C-66F0937BC6C8 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Application Specific Information: objc[51083]: garbage collection is ON abort() called Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libSystem.B.dylib 0x00007fff859aafe6 __kill + 10 1 libSystem.B.dylib 0x00007fff85a4be32 abort + 83 2 libSystem.B.dylib 0x00007fff85963155 free + 128 3 libmacruby.dylib 0x00000001000f1edd bs_free_function_pointer + 77 4 libmacruby.dylib 0x00000001000f2125 bs_element_free + 293 5 libmacruby.dylib 0x0000000100107dde RoxorCore::bs_parse_cb(bs_element_type_t, void*, void*) + 270 6 libmacruby.dylib 0x00000001000f2b61 bs_parser_parse + 2177 7 libmacruby.dylib 0x00000001000f2fa5 bs_parser_parse + 3269 8 libmacruby.dylib 0x00000001000f2fa5 bs_parser_parse + 3269 9 libmacruby.dylib 0x00000001000f2fa5 bs_parser_parse + 3269 10 libmacruby.dylib 0x0000000100104d70 RoxorCore::load_bridge_support(char const*, char const*, int) + 128 11 libmacruby.dylib 0x00000001000f0824 rb_require_framework + 884 12 libmacruby.dylib 0x000000010014c4eb rb_vm_dispatch + 7067 13 ??? 0x00000001011277d8 0 + 4312954840 14 libmacruby.dylib 0x000000010015f35f rb_vm_run + 351 15 libmacruby.dylib 0x0000000100161a67 rb_vm_run_under + 247 16 libmacruby.dylib 0x0000000100100097 rb_f_eval + 407 17 libmacruby.dylib 0x000000010014c4eb rb_vm_dispatch + 7067 18 workspace.rbo 0x000000010138609d MREP_E6448616C86C4A36A2ED395A785036CB_ruby_scope5 + 317 19 libmacruby.dylib 0x000000010014c901 rb_vm_dispatch + 8113 20 context.rbo 0x00000001011f13f7 MREP_D3599CFE465C4422B168AB0E931DB417_ruby_scope15 + 215 21 libmacruby.dylib 0x000000010014c958 rb_vm_dispatch + 8200 22 irb.rbo 0x00000001011846d8 MREP_5D2A4D88F57242F3A79FB011C08AF193_ruby_scope18 + 264 23 libmacruby.dylib 0x00000001001443f0 rb_vm_yield_args + 2464 24 irb.rbo 0x0000000101186af3 MREP_5D2A4D88F57242F3A79FB011C08AF193_ruby_scope28 + 371 25 libmacruby.dylib 0x000000010014c97e rb_vm_dispatch + 8238 26 irb.rbo 0x0000000101184536 MREP_5D2A4D88F57242F3A79FB011C08AF193_ruby_scope17 + 198 27 libmacruby.dylib 0x0000000100144558 rb_vm_yield_args + 2824 28 ruby-lex.rbo 0x00000001013a2eb0 MREP_4F36F74E7EB3468DB24124D8C97114D2_ruby_scope23 + 1120 29 libmacruby.dylib 0x0000000100147859 rb_vm_yield + 1641 30 libmacruby.dylib 0x00000001000feef9 loop_i + 25 31 libmacruby.dylib 0x0000000100160bca rb_rescue2 + 58 32 libmacruby.dylib 0x000000010014c999 rb_vm_dispatch + 8265 33 ruby-lex.rbo 0x00000001013a2a2a MREP_4F36F74E7EB3468DB24124D8C97114D2_ruby_scope22 + 106 34 libmacruby.dylib 0x0000000100147859 rb_vm_yield + 1641 35 libmacruby.dylib 0x000000010015eefe RoxorVM::ruby_catch(unsigned long) + 46 36 libmacruby.dylib 0x000000010014c97e rb_vm_dispatch + 8238 37 ruby-lex.rbo 0x00000001013a298e MREP_4F36F74E7EB3468DB24124D8C97114D2_ruby_scope21 + 174 38 libmacruby.dylib 0x000000010014c999 rb_vm_dispatch + 8265 39 irb.rbo 0x000000010118357b MREP_5D2A4D88F57242F3A79FB011C08AF193_ruby_scope13 + 507 40 libmacruby.dylib 0x000000010014c999 rb_vm_dispatch + 8265 41 irb.rbo 0x0000000101182f3f MREP_5D2A4D88F57242F3A79FB011C08AF193_ruby_scope8 + 47 42 libmacruby.dylib 0x0000000100147859 rb_vm_yield + 1641 43 libmacruby.dylib 0x000000010015eefe RoxorVM::ruby_catch(unsigned long) + 46 44 libmacruby.dylib 0x000000010014c97e rb_vm_dispatch + 8238 45 irb.rbo 0x0000000101182e69 MREP_5D2A4D88F57242F3A79FB011C08AF193_ruby_scope6 + 1289 46 libmacruby.dylib 0x000000010014c97e rb_vm_dispatch + 8238 47 ??? 0x0000000101100291 0 + 4312793745 48 libmacruby.dylib 0x000000010015f35f rb_vm_run + 351 49 libmacruby.dylib 0x0000000100045f59 ruby_run_node + 73 50 macruby 0x0000000100000d28 main + 152 51 macruby 0x0000000100000c88 start + 52 Thread 1: Dispatch queue: com.apple.libdispatch-manager 0 libSystem.B.dylib 0x00007fff85975bba kevent + 10 1 libSystem.B.dylib 0x00007fff85977a85 _dispatch_mgr_invoke + 154 2 libSystem.B.dylib 0x00007fff8597775c _dispatch_queue_invoke + 185 3 libSystem.B.dylib 0x00007fff85977286 _dispatch_worker_thread2 + 244 4 libSystem.B.dylib 0x00007fff85976bb8 _pthread_wqthread + 353 5 libSystem.B.dylib 0x00007fff85976a55 start_wqthread + 13 Thread 2: Dispatch queue: Garbage Collection Work Queue 0 libauto.dylib 0x00007fff8770f7d7 Auto::Admin::deallocate_no_lock(void*) + 407 1 libauto.dylib 0x00007fff8770fb00 Auto::Admin::deallocate(void*) + 64 2 libauto.dylib 0x00007fff8771a32a Auto::Zone::free_garbage(unsigned int, unsigned long, unsigned long*, unsigned long&, unsigned long&) + 1098 3 libauto.dylib 0x00007fff8774284f __process_local_garbage_block_invoke_5 + 95 4 libSystem.B.dylib 0x00007fff85998ce8 _dispatch_call_block_and_release + 15 5 libSystem.B.dylib 0x00007fff8597787a _dispatch_queue_drain + 251 6 libSystem.B.dylib 0x00007fff859776dc _dispatch_queue_invoke + 57 7 libSystem.B.dylib 0x00007fff85977286 _dispatch_worker_thread2 + 244 8 libSystem.B.dylib 0x00007fff85976bb8 _pthread_wqthread + 353 9 libSystem.B.dylib 0x00007fff85976a55 start_wqthread + 13 Thread 3: 0 libSystem.B.dylib 0x00007fff859769da __workq_kernreturn + 10 1 libSystem.B.dylib 0x00007fff85976dec _pthread_wqthread + 917 2 libSystem.B.dylib 0x00007fff85976a55 start_wqthread + 13 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x0000000000000003 rcx: 0x00007fff5fbe5478 rdx: 0x0000000000000000 rdi: 0x000000000000c78b rsi: 0x0000000000000006 rbp: 0x00007fff5fbe5490 rsp: 0x00007fff5fbe5478 r8: 0x0000000000000e03 r9: 0x0000000000000000 r10: 0x00007fff859a7026 r11: 0x0000000000000202 r12: 0x0000000100ed0000 r13: 0x0000000100e8a000 r14: 0x0000000000000000 r15: 0x000000010498d7c0 rip: 0x00007fff859aafe6 rfl: 0x0000000000000202 cr2: 0x00000001011ff000 On Sat, Apr 24, 2010 at 9:19 AM, robert gleeson <rob@flowof.info> wrote:
Hey,
I've been using a MacRuby nightly from a few days ago, and this bug is reproducible on that and macruby-latest.pkg(I fetched it a few minutes ago):
To reproduce:
framework('corefoundation') framework('appkit')
Thanks, Rob _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Hey, Yeah sorry I forgot - ticket is here: https://www.macruby.org/trac/ticket/665 Thanks, Rob On 24 Apr 2010, at 19:16, Matt Aimonetti wrote:
Can you open a trac ticket please?
Here is what I get:
$ macirb irb(main):001:0> framework 'CoreFoundation' => true irb(main):002:0> framework 'AppKit' => true irb(main):003:0>
But:
$ macirb irb(main):001:0> framework 'CoreFoundation' => true irb(main):002:0> framework 'AppKit' => true irb(main):003:0> exit [mattetti@matt-aimonettis-macbook macruby]$ macirb irb(main):001:0> framework('corefoundation') => true irb(main):002:0> framework('appkit') unknown: warning: already initialized constant CFAllocatorContext unknown: warning: already initialized constant CFArrayCallBacks unknown: warning: already initialized constant CFBagCallBacks unknown: warning: already initialized constant CFBinaryHeapCallBacks unknown: warning: already initialized constant CFBinaryHeapCompareContext unknown: warning: already initialized constant CFDictionaryKeyCallBacks unknown: warning: already initialized constant CFDictionaryValueCallBacks unknown: warning: already initialized constant CFFileDescriptorContext unknown: warning: already initialized constant CFGregorianDate unknown: warning: already initialized constant CFGregorianUnits unknown: warning: already initialized constant CFMachPortContext unknown: warning: already initialized constant CFMessagePortContext unknown: warning: already initialized constant CFRange unknown: warning: already initialized constant CFRunLoopObserverContext unknown: warning: already initialized constant CFRunLoopSourceContext unknown: warning: already initialized constant CFRunLoopTimerContext unknown: warning: already initialized constant CFSetCallBacks unknown: warning: already initialized constant CFSocketContext unknown: warning: already initialized constant CFSocketSignature unknown: warning: already initialized constant CFStreamClientContext unknown: warning: already initialized constant CFStreamError unknown: warning: already initialized constant CFStringInlineBuffer unknown: warning: already initialized constant CFSwappedFloat32 unknown: warning: already initialized constant CFSwappedFloat64 unknown: warning: already initialized constant CFTreeContext unknown: warning: already initialized constant CFUUIDBytes unknown: warning: already initialized constant CFXMLAttributeDeclarationInfo unknown: warning: already initialized constant CFXMLAttributeListDeclarationInfo unknown: warning: already initialized constant CFXMLDocumentInfo unknown: warning: already initialized constant CFXMLDocumentTypeInfo unknown: warning: already initialized constant CFXMLElementInfo unknown: warning: already initialized constant CFXMLElementTypeDeclarationInfo unknown: warning: already initialized constant CFXMLEntityInfo unknown: warning: already initialized constant CFXMLEntityReferenceInfo unknown: warning: already initialized constant CFXMLExternalID unknown: warning: already initialized constant CFXMLNotationInfo unknown: warning: already initialized constant CFXMLParserCallBacks unknown: warning: already initialized constant CFXMLParserContext unknown: warning: already initialized constant CFXMLProcessingInstructionInfo macruby(51083,0x7fff70a51be0) malloc: *** error for object 0x10498d7c0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap
Process: macruby [51083] Path: /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/bin/macruby Identifier: macruby Version: ??? (???) Code Type: X86-64 (Native) Parent Process: bash [50716]
Date/Time: 2010-04-24 11:13:26.241 -0700 OS Version: Mac OS X 10.6.2 (10C540) Report Version: 6
Interval Since Last Report: 147902 sec Crashes Since Last Report: 1 Per-App Crashes Since Last Report: 1 Anonymous UUID: 9B58BA8B-C3A5-49A8-941C-66F0937BC6C8
Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Application Specific Information: objc[51083]: garbage collection is ON abort() called
Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libSystem.B.dylib 0x00007fff859aafe6 __kill + 10 1 libSystem.B.dylib 0x00007fff85a4be32 abort + 83 2 libSystem.B.dylib 0x00007fff85963155 free + 128 3 libmacruby.dylib 0x00000001000f1edd bs_free_function_pointer + 77 4 libmacruby.dylib 0x00000001000f2125 bs_element_free + 293 5 libmacruby.dylib 0x0000000100107dde RoxorCore::bs_parse_cb(bs_element_type_t, void*, void*) + 270 6 libmacruby.dylib 0x00000001000f2b61 bs_parser_parse + 2177 7 libmacruby.dylib 0x00000001000f2fa5 bs_parser_parse + 3269 8 libmacruby.dylib 0x00000001000f2fa5 bs_parser_parse + 3269 9 libmacruby.dylib 0x00000001000f2fa5 bs_parser_parse + 3269 10 libmacruby.dylib 0x0000000100104d70 RoxorCore::load_bridge_support(char const*, char const*, int) + 128 11 libmacruby.dylib 0x00000001000f0824 rb_require_framework + 884 12 libmacruby.dylib 0x000000010014c4eb rb_vm_dispatch + 7067 13 ??? 0x00000001011277d8 0 + 4312954840 14 libmacruby.dylib 0x000000010015f35f rb_vm_run + 351 15 libmacruby.dylib 0x0000000100161a67 rb_vm_run_under + 247 16 libmacruby.dylib 0x0000000100100097 rb_f_eval + 407 17 libmacruby.dylib 0x000000010014c4eb rb_vm_dispatch + 7067 18 workspace.rbo 0x000000010138609d MREP_E6448616C86C4A36A2ED395A785036CB_ruby_scope5 + 317 19 libmacruby.dylib 0x000000010014c901 rb_vm_dispatch + 8113 20 context.rbo 0x00000001011f13f7 MREP_D3599CFE465C4422B168AB0E931DB417_ruby_scope15 + 215 21 libmacruby.dylib 0x000000010014c958 rb_vm_dispatch + 8200 22 irb.rbo 0x00000001011846d8 MREP_5D2A4D88F57242F3A79FB011C08AF193_ruby_scope18 + 264 23 libmacruby.dylib 0x00000001001443f0 rb_vm_yield_args + 2464 24 irb.rbo 0x0000000101186af3 MREP_5D2A4D88F57242F3A79FB011C08AF193_ruby_scope28 + 371 25 libmacruby.dylib 0x000000010014c97e rb_vm_dispatch + 8238 26 irb.rbo 0x0000000101184536 MREP_5D2A4D88F57242F3A79FB011C08AF193_ruby_scope17 + 198 27 libmacruby.dylib 0x0000000100144558 rb_vm_yield_args + 2824 28 ruby-lex.rbo 0x00000001013a2eb0 MREP_4F36F74E7EB3468DB24124D8C97114D2_ruby_scope23 + 1120 29 libmacruby.dylib 0x0000000100147859 rb_vm_yield + 1641 30 libmacruby.dylib 0x00000001000feef9 loop_i + 25 31 libmacruby.dylib 0x0000000100160bca rb_rescue2 + 58 32 libmacruby.dylib 0x000000010014c999 rb_vm_dispatch + 8265 33 ruby-lex.rbo 0x00000001013a2a2a MREP_4F36F74E7EB3468DB24124D8C97114D2_ruby_scope22 + 106 34 libmacruby.dylib 0x0000000100147859 rb_vm_yield + 1641 35 libmacruby.dylib 0x000000010015eefe RoxorVM::ruby_catch(unsigned long) + 46 36 libmacruby.dylib 0x000000010014c97e rb_vm_dispatch + 8238 37 ruby-lex.rbo 0x00000001013a298e MREP_4F36F74E7EB3468DB24124D8C97114D2_ruby_scope21 + 174 38 libmacruby.dylib 0x000000010014c999 rb_vm_dispatch + 8265 39 irb.rbo 0x000000010118357b MREP_5D2A4D88F57242F3A79FB011C08AF193_ruby_scope13 + 507 40 libmacruby.dylib 0x000000010014c999 rb_vm_dispatch + 8265 41 irb.rbo 0x0000000101182f3f MREP_5D2A4D88F57242F3A79FB011C08AF193_ruby_scope8 + 47 42 libmacruby.dylib 0x0000000100147859 rb_vm_yield + 1641 43 libmacruby.dylib 0x000000010015eefe RoxorVM::ruby_catch(unsigned long) + 46 44 libmacruby.dylib 0x000000010014c97e rb_vm_dispatch + 8238 45 irb.rbo 0x0000000101182e69 MREP_5D2A4D88F57242F3A79FB011C08AF193_ruby_scope6 + 1289 46 libmacruby.dylib 0x000000010014c97e rb_vm_dispatch + 8238 47 ??? 0x0000000101100291 0 + 4312793745 48 libmacruby.dylib 0x000000010015f35f rb_vm_run + 351 49 libmacruby.dylib 0x0000000100045f59 ruby_run_node + 73 50 macruby 0x0000000100000d28 main + 152 51 macruby 0x0000000100000c88 start + 52
Thread 1: Dispatch queue: com.apple.libdispatch-manager 0 libSystem.B.dylib 0x00007fff85975bba kevent + 10 1 libSystem.B.dylib 0x00007fff85977a85 _dispatch_mgr_invoke + 154 2 libSystem.B.dylib 0x00007fff8597775c _dispatch_queue_invoke + 185 3 libSystem.B.dylib 0x00007fff85977286 _dispatch_worker_thread2 + 244 4 libSystem.B.dylib 0x00007fff85976bb8 _pthread_wqthread + 353 5 libSystem.B.dylib 0x00007fff85976a55 start_wqthread + 13
Thread 2: Dispatch queue: Garbage Collection Work Queue 0 libauto.dylib 0x00007fff8770f7d7 Auto::Admin::deallocate_no_lock(void*) + 407 1 libauto.dylib 0x00007fff8770fb00 Auto::Admin::deallocate(void*) + 64 2 libauto.dylib 0x00007fff8771a32a Auto::Zone::free_garbage(unsigned int, unsigned long, unsigned long*, unsigned long&, unsigned long&) + 1098 3 libauto.dylib 0x00007fff8774284f __process_local_garbage_block_invoke_5 + 95 4 libSystem.B.dylib 0x00007fff85998ce8 _dispatch_call_block_and_release + 15 5 libSystem.B.dylib 0x00007fff8597787a _dispatch_queue_drain + 251 6 libSystem.B.dylib 0x00007fff859776dc _dispatch_queue_invoke + 57 7 libSystem.B.dylib 0x00007fff85977286 _dispatch_worker_thread2 + 244 8 libSystem.B.dylib 0x00007fff85976bb8 _pthread_wqthread + 353 9 libSystem.B.dylib 0x00007fff85976a55 start_wqthread + 13
Thread 3: 0 libSystem.B.dylib 0x00007fff859769da __workq_kernreturn + 10 1 libSystem.B.dylib 0x00007fff85976dec _pthread_wqthread + 917 2 libSystem.B.dylib 0x00007fff85976a55 start_wqthread + 13
Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x0000000000000003 rcx: 0x00007fff5fbe5478 rdx: 0x0000000000000000 rdi: 0x000000000000c78b rsi: 0x0000000000000006 rbp: 0x00007fff5fbe5490 rsp: 0x00007fff5fbe5478 r8: 0x0000000000000e03 r9: 0x0000000000000000 r10: 0x00007fff859a7026 r11: 0x0000000000000202 r12: 0x0000000100ed0000 r13: 0x0000000100e8a000 r14: 0x0000000000000000 r15: 0x000000010498d7c0 rip: 0x00007fff859aafe6 rfl: 0x0000000000000202 cr2: 0x00000001011ff000
On Sat, Apr 24, 2010 at 9:19 AM, robert gleeson <rob@flowof.info> wrote: Hey,
I've been using a MacRuby nightly from a few days ago, and this bug is reproducible on that and macruby-latest.pkg(I fetched it a few minutes ago):
To reproduce:
framework('corefoundation') framework('appkit')
Thanks, Rob _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Hi Robert, At a glance it seems to be callable: $ ./miniruby -e "framework 'Cocoa'; pb = NSPasteboard.generalPasteboard; p pb.canReadObjectForClasses([], options: [])" false Are you sure you're forming the selector correctly? The selector seems to be canReadObjectForClasses:options:. Laurent On Apr 24, 2010, at 9:10 AM, robert gleeson wrote:
Hey,
I'm fooling around with NSPasteboard - following the documentation found at:
http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/Pasteb...
I've got an instance of NSPasteboard through:
"board = NSPasteboard.generalPasteboard"
but "board" doesn't respond to any methods mentioned later in the tutorial I posted.
I'm looking for the method: "canReadObjectForClasses"
So I can continue on.
Thanks ahead of time, Rob _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Laurent, Thanks! It works - I'm not sure what I did wrong, though. Maybe a typo? :-X By the way, is it possible to see what Objective-C methods an object can respond to? NSObject/Object#methods doesn't seem to list them on my side? Thanks, Rob On 24 Apr 2010, at 21:34, Laurent Sansonetti wrote:
Hi Robert,
At a glance it seems to be callable:
$ ./miniruby -e "framework 'Cocoa'; pb = NSPasteboard.generalPasteboard; p pb.canReadObjectForClasses([], options: [])" false
Are you sure you're forming the selector correctly? The selector seems to be canReadObjectForClasses:options:.
Laurent
On Apr 24, 2010, at 9:10 AM, robert gleeson wrote:
Hey,
I'm fooling around with NSPasteboard - following the documentation found at:
http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/Pasteb...
I've got an instance of NSPasteboard through:
"board = NSPasteboard.generalPasteboard"
but "board" doesn't respond to any methods mentioned later in the tutorial I posted.
I'm looking for the method: "canReadObjectForClasses"
So I can continue on.
Thanks ahead of time, Rob _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
By default #methods and friends do not return Objective-C selectors (especially since a lot of ruby libraries are using this and cannot handle objc-style selectors), but you can get them by passing the second argument as true. $ /usr/local/bin/macirb irb(main):001:0> framework 'Cocoa' => true irb(main):002:0> NSTableView.new.methods => [:load_bridge_support_file, :Complex, :Rational, :enum_for, :to_enum, :object_id, :__id__, :define_singleton_method, :public_method, :method, :extend, :respond_to_missing?, :respond_to?, :public_send, :send, :__send__, :instance_exec, :instance_eval, :__callee__, :__method__, :tap, :is_a?, :kind_of?, :instance_of?, :instance_variable_defined?, :instance_variable_set, :instance_variable_get, :instance_variables, :public_methods, :private_methods, :protected_methods, :singleton_methods, :methods, :inspect, :to_s, :untrusted?, :untrust, :trust, :frozen?, :freeze, :untaint, :tainted?, :taint, :__type__, :dup, :clone, :eql?, :!~, :=~, :===, :nil?, :!=, :!, :equal?, :==] irb(main):003:0> NSTableView.new.methods(true,true) => [:"validateProposedFirstResponder:forEvent:", :controlTextDidEndEditing, :_shouldSetObjectValueOnCellsForAnimations, :"moveRowsInRange:toIndex:", :"prepareDraggingDestinationView:forRowIndexes:draggingStyle:", :cacheReusableView, :addDropBetweenFeedbackViewsForRow, :defaultOwner, :"associateView:withColumn:", :rowData, :_nextGroupRowFromRow, :"_shouldFloatRow:inVisibleRange:", :"_delegate_viewForTableColumn:row:", :_delegateRowViewForRow, :addDropOnFeedbackViewsForRow, :"_backgroundImageForRow:withFrame:", :shouldUseViews, :_validateHitTest, :setDraggedColumnView, :_isInDesignMode, :addDropFeedbackViews, :removeDropFeedbackViewsFromOldRow, :archivedReusableViews, :_headerViewDraggedDistance, :draggedColumnView, :"_updateCellInView:atRow:column:", :makeRowViewForRow, :isDropTargetRow, :"makeViewForTableColumn:row:", :isViewBased, :_needsBackgroundToAnimate, :_backgroundImageWithFrame, :_needsBackgroundImageForAnimation, :_mutableSelectedRows, :_adjustFieldEditorAnimated, :_setTrackingAreasDirty, :hiddenRowIndexes, :"_addDraggingDestinationViewForRowIndexes:draggingStyle:", :_rowForView, :_showContextualMenuForEvent, :_shouldShowContextMenuForEvent, :_rowViewDrawsHorizontalGrid, ........] Laurent On Apr 24, 2010, at 1:42 PM, robert gleeson wrote:
Laurent,
Thanks! It works - I'm not sure what I did wrong, though. Maybe a typo? :-X By the way, is it possible to see what Objective-C methods an object can respond to?
NSObject/Object#methods doesn't seem to list them on my side?
Thanks, Rob
On 24 Apr 2010, at 21:34, Laurent Sansonetti wrote:
Hi Robert,
At a glance it seems to be callable:
$ ./miniruby -e "framework 'Cocoa'; pb = NSPasteboard.generalPasteboard; p pb.canReadObjectForClasses([], options: [])" false
Are you sure you're forming the selector correctly? The selector seems to be canReadObjectForClasses:options:.
Laurent
On Apr 24, 2010, at 9:10 AM, robert gleeson wrote:
Hey,
I'm fooling around with NSPasteboard - following the documentation found at:
http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/Pasteb...
I've got an instance of NSPasteboard through:
"board = NSPasteboard.generalPasteboard"
but "board" doesn't respond to any methods mentioned later in the tutorial I posted.
I'm looking for the method: "canReadObjectForClasses"
So I can continue on.
Thanks ahead of time, Rob _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (4)
-
Laurent Sansonetti
-
MacRuby
-
Matt Aimonetti
-
robert gleeson