Projects

Ticket #821 (new defect)

Opened 18 months ago

Last modified 14 months ago

uncached ObjC stub - Abort trap

Reported by: jazzbox@… Owned by: lsansonetti@…
Priority: major Milestone: MacRuby Later
Component: MacRuby Keywords:
Cc:

Description (last modified by lsansonetti@…) (diff)

$ cat a.rb 

begin
framework 'Cocoa'
rescue
NSWorkspaceLaunchWithoutActivation = 512
end

p NSWorkspace

NSWorkspace.sharedWorkspace.openURLs(
      [ NSURL.URLWithString('http://www.macruby.org/')],
      withAppBundleIdentifier:nil,
      options:NSWorkspaceLaunchWithoutActivation,
      additionalEventParamDescriptor:nil,
      launchIdentifiers:nil)
$ macrubyc -o a --static --framework Cocoa a.rb; ./a
#<NSWorkspace:0x20026b160>
uncached ObjC stub `c@:@@Q@^@'
Abort trap

Maybe this is a known restriction of the AOT-compilation...

Change History

Changed 18 months ago by lsansonetti@…

  • milestone MacRuby 0.7 deleted

Please don't use static compilation for the moment, it's under development. Regular AOT compilation (without --static) should work fine.

Changed 14 months ago by lsansonetti@…

  • description modified (diff)
  • milestone set to MacRuby Later

For Later.

Note: See TracTickets for help on using tickets.