[MacRuby-devel] [MacRuby] #357: NSLog causes "BAD_EAX_ACCESS" on 10.6

2009-09-29 Thread MacRuby
#357: NSLog causes "BAD_EAX_ACCESS" on 10.6
--+-
 Reporter:  mitchell.hashim...@…  |   Owner:  lsansone...@…
 Type:  defect|  Status:  new  
 Priority:  blocker   |   Milestone:   
Component:  MacRuby   |Keywords:   
--+-
 I simply added an NSLog to rb_main.rb prior to NSApplicationMain to
 attempt to log some dummy data ("Foo") and it crashes with BAD_EAX_ACCESS
 everytime. When I remove that line, it runs fine.

 This is on 10.6 Snow Leopard with the latest head (commit
 e3c2cbc6bac26594d3a722cfcc652cad11fcd524 in git-svn).

 {{{
 # Loading the Cocoa framework. If you need to load more frameworks, you
 can
 # do that here too.
 framework 'Cocoa'

 # Loading all the Ruby project files.
 dir_path = NSBundle.mainBundle.resourcePath.fileSystemRepresentation
 Dir.entries(dir_path).each do |path|
   if path != File.basename(__FILE__) and path[-3..-1] == '.rb'
 require(path)
   end
 end

 # Test Log, should crash program
 NSLog "Foo Bar Baz"

 # Starting the Cocoa main loop.
 NSApplicationMain(0, nil)
 }}}

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #357: NSLog causes "BAD_EAX_ACCESS" on 10.6

2009-09-29 Thread MacRuby
#357: NSLog causes "BAD_EAX_ACCESS" on 10.6
--+-
 Reporter:  mitchell.hashim...@…  |   Owner:  lsansone...@…
 Type:  defect|  Status:  new  
 Priority:  blocker   |   Milestone:   
Component:  MacRuby   |Keywords:   
--+-

Comment(by mattaimone...@…):

 This is a known bug, while waiting for it to be fixed, you can use "puts"
 to get the same result.

 {{{
 # Loading the Cocoa framework. If you need to load more frameworks, you
 can
 # do that here too.
 framework 'Cocoa'

 # Loading all the Ruby project files.
 dir_path = NSBundle.mainBundle.resourcePath.fileSystemRepresentation
 Dir.entries(dir_path).each do |path|
   if path != File.basename(__FILE__) and path[-3..-1] == '.rb'
 require(path)
   end
 end

 # Test Log, should crash program
 puts "Foo Bar Baz"

 # Starting the Cocoa main loop.
 NSApplicationMain(0, nil)
 }}}

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #353: No such file to load bigdecimal

2009-09-29 Thread MacRuby
#353: No such file to load bigdecimal
--+-
 Reporter:  noelrap...@…  |   Owner:  lsansone...@…
 Type:  defect|  Status:  new  
 Priority:  blocker   |   Milestone:  MacRuby 0.5  
Component:  MacRuby   |Keywords:   
--+-
Changes (by mattaimone...@…):

  * milestone:  => MacRuby 0.5


Comment:

 I believe we don't have a BigDecimal implementation yet and it's in the
 TODO list for 0.5 final.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] [MacRuby] #358: NSNotificationQueue Dealloc Crash in Simple Project

2009-09-29 Thread MacRuby
#358: NSNotificationQueue Dealloc Crash in Simple Project
-+--
 Reporter:  dy...@…  |   Owner:  lsansone...@…
 Type:  defect   |  Status:  new  
 Priority:  blocker  |   Milestone:   
Component:  MacRuby  |Keywords:   
-+--
 I am following the PeepCode MacRuby 035 screencast and ran into a crash
 early on in development. I've attached the project that I was using.

 The crash is intermittent but pretty frequent (over 50% of the launches).
 I've seen several different stack traces thrown at the same time, so it's
 a bit random.

 To reproduce:

 1.) Open the attached project
 2.) Build and go
 3.) click on the Xcode window and then back on the application window

 Step #3 isn't always required.

 I am using Mac OS X 10.6.1 with the new Xcode 3.2 and the iPhone SDK
 installed. I am on an Intel Core 2 Duo laptop.

 I am using the nightly build: macruby_nightly-2009-09-29-1155

 Changing the NSLog statement to puts seems to fix the problem.

 Lots of noise in the console output:

 run
 [Switching to process 1764]
 Running…
 Program received signal:  “EXC_BAD_INSTRUCTION”.
 sharedlibrary apply-load-rules all
 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/array.o" - no debug information
 available for "array.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/bignum.o" - no debug information
 available for "bignum.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/class.o" - no debug information
 available for "class.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/compar.o" - no debug information
 available for "compar.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/complex.o" - no debug information
 available for "complex.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/enum.o" - no debug information
 available for "enum.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/enumerator.o" - no debug
 information available for "enumerator.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/error.o" - no debug information
 available for "error.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/eval.o" - no debug information
 available for "eval.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/file.o" - no debug information
 available for "file.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/load.o" - no debug information
 available for "load.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/proc.o" - no debug information
 available for "proc.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/gc.o" - no debug information
 available for "gc.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/hash.o" - no debug information
 available for "hash.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/inits.o" - no debug information
 available for "inits.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/io.o" - no debug information
 available for "io.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/math.o" - no debug information
 available for "math.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/numeric.o" - no debug information
 available for "numeric.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/object.o" - no debug information
 available for "object.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/pack.o" - no debug information
 available for "pack.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/parse.o" - no debug information
 available for "parse.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/prec.o" - no debug information
 available for "prec.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/dir.o" - no debug information
 available for "dir.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/process.o" - no debug information
 available for "process.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/random.o" - no debug information
 available for "random.c".

 warning: Could not find object file
 "/Sites/kain/icoretech.org/macruby/repo/range.o" - no debug information
 available for "range.c".

 warning: Could not find object file
 "/Sites/ka

Re: [MacRuby-devel] [MacRuby] #358: NSNotificationQueue Dealloc Crash in Simple Project

2009-09-29 Thread MacRuby
#358: NSNotificationQueue Dealloc Crash in Simple Project
-+--
 Reporter:  dy...@…  |   Owner:  lsansone...@…
 Type:  defect   |  Status:  new  
 Priority:  blocker  |   Milestone:   
Component:  MacRuby  |Keywords:   
-+--

Comment(by dy...@…):

 It seems the attachment is too large to upload here. You can grab it from
 drop.io: http://drop.io/Ticket358

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] [MacRuby] #359: Project Templates Not Installed By Nightly Installer

2009-09-29 Thread MacRuby
#359: Project Templates Not Installed By Nightly Installer
-+--
 Reporter:  dy...@…  |   Owner:  lsansone...@…
 Type:  defect   |  Status:  new  
 Priority:  blocker  |   Milestone:   
Component:  MacRuby  |Keywords:   
-+--
 This may be either a bug or an enhancement request, depending on whether
 this behavior is expected or not.

 Running the macruby_nightly-2009-09-29-1155 installer does not install the
 ruby project templates. These must be copied manually from source to the
 target destination (in my case I tuck them under ~/Library/Application
 Support/Developer/Shared/Xcode).

 In addition, with the removal of the RubyCocoa support in Xcode 3.2 there
 are no longer Ruby file templates. I was unable to find copies of these in
 the source tree but I assume that copying them in from RubyCocoa would
 mostly work.

 The combination of these two things makes the setup experience a lot less
 smooth, although still clearly do-able.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #359: Project Templates Not Installed By Nightly Installer

2009-09-29 Thread MacRuby
#359: Project Templates Not Installed By Nightly Installer
-+--
 Reporter:  dy...@…  |   Owner:  mattaimone...@…
 Type:  enhancement  |  Status:  assigned   
 Priority:  major|   Milestone:  MacRuby 0.5
Component:  MacRuby  |Keywords: 
-+--
Changes (by mattaimone...@…):

  * owner:  lsansone...@… => mattaimone...@…
  * priority:  blocker => major
  * type:  defect => enhancement
  * status:  new => assigned
  * milestone:  => MacRuby 0.5


Comment:

 The templates should be installed, I'll check on the installer. Regarding
 the Ruby file template, I'll add a blank one Ruby file.

 Thanks,

 - Matt

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #358: NSNotificationQueue Dealloc Crash in Simple Project

2009-09-29 Thread MacRuby
#358: NSNotificationQueue Dealloc Crash in Simple Project
-+--
 Reporter:  dy...@…  |Owner:  lsansone...@…
 Type:  defect   |   Status:  closed   
 Priority:  blocker  |Milestone:   
Component:  MacRuby  |   Resolution:  duplicate
 Keywords:   |  
-+--
Changes (by mattaimone...@…):

  * status:  new => closed
  * resolution:  => duplicate


Comment:

 Thanks for the report, this is a known bug with NSlog and it was already
 reported, therefore I'm going to close your ticket. Track
 http://www.macruby.org/trac/ticket/357  if you want to get updated when
 the problem gets fixed.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #359: Project Templates Not Installed By Nightly Installer

2009-09-29 Thread MacRuby
#359: Project Templates Not Installed By Nightly Installer
-+--
 Reporter:  dy...@…  |   Owner:  mattaimone...@…
 Type:  enhancement  |  Status:  assigned   
 Priority:  major|   Milestone:  MacRuby 0.5
Component:  MacRuby  |Keywords: 
-+--

Comment(by masterk...@…):

 I conducted a little test, seems that wrong permissions on two folders is
 the issue.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #359: Project Templates Not Installed By Nightly Installer

2009-09-29 Thread MacRuby
#359: Project Templates Not Installed By Nightly Installer
-+--
 Reporter:  dy...@…  |   Owner:  mattaimone...@…
 Type:  enhancement  |  Status:  assigned   
 Priority:  major|   Milestone:  MacRuby 0.5
Component:  MacRuby  |Keywords: 
-+--

Comment(by mattaimone...@…):

 Thanks Claudio, I'll fix that asap. I guess I set the files as being
 root/staff and that's wrong, can you confirm?

 Thanks,

 - Matt

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #359: Project Templates Not Installed By Nightly Installer

2009-09-29 Thread MacRuby
#359: Project Templates Not Installed By Nightly Installer
-+--
 Reporter:  dy...@…  |   Owner:  mattaimone...@…
 Type:  enhancement  |  Status:  assigned   
 Priority:  major|   Milestone:  MacRuby 0.5
Component:  MacRuby  |Keywords: 
-+--

Comment(by masterk...@…):

 mm, actually I just checked, those are the perms:

 {{{
 drwx--  5 kain  wheel /Library/Application
 Support/Developer/Shared/Xcode/Project Templates/Application
 drwx--  3 kain  wheel /Library/Application
 Support/Developer/Shared/Xcode/Target Templates
 }}}

 {{{
 kain-osx:Xcode kain$ touch Target\ Templates/test
 touch: Target Templates/test: Permission denied
 }}}

 also in finder those two folders are bolded with access denied mini, ofc
 meaning I cannot perform operations.
 kain is the user I'm using, before installing the newest nightly I wiped
 this folder to test the new folders permissions; the previous content was
 okay with permissions.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #359: Project Templates Not Installed By Nightly Installer

2009-09-29 Thread MacRuby
#359: Project Templates Not Installed By Nightly Installer
-+--
 Reporter:  dy...@…  |   Owner:  mattaimone...@…
 Type:  enhancement  |  Status:  assigned   
 Priority:  major|   Milestone:  MacRuby 0.5
Component:  MacRuby  |Keywords: 
-+--

Comment(by mattaimone...@…):

 ok, the installer should be fixed (templates should be available), let's
 wait until next nightly build release and let me know if that worked on
 not.

 Thanks,

 - Matt

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #358: NSNotificationQueue Dealloc Crash in Simple Project

2009-09-29 Thread MacRuby
#358: NSNotificationQueue Dealloc Crash in Simple Project
-+--
 Reporter:  dy...@…  |Owner:  lsansone...@…
 Type:  defect   |   Status:  closed   
 Priority:  blocker  |Milestone:   
Component:  MacRuby  |   Resolution:  duplicate
 Keywords:   |  
-+--

Comment(by dy...@…):

 Will do, sorry for the duplicate. I tried a few searches, but NSLog is the
 obvious one ;)

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel