stack level too deep (SystemStackError)

115 views
Skip to first unread message

Antonin Hildebrand

unread,
Jul 12, 2008, 11:04:00 AM7/12/08
to LimeChat
Hi,

I have LimeChat 0.19 and RubyCococa 0.13.2.
LimeChat worked perfectly until I have upgraded my MacPorts yesterday.

[~] ruby -v
ruby 1.8.7 (2008-06-20 patchlevel 22) [i686-darwin9]

[~] /Applications/LimeChat.app/Contents/MacOS/LimeChat
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/
oc_attachments.rb:1723:in `size': stack level too deep
(SystemStackError)
from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/
oc_attachments.rb:1723:in `count'
from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/
oc_attachments.rb:1723:in `size'
from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/
oc_attachments.rb:1723:in `count'
from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/
oc_attachments.rb:1723:in `size'
from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/
oc_attachments.rb:1723:in `count'
from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/
oc_attachments.rb:1723:in `size'
from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/
oc_attachments.rb:1723:in `count'
from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/
oc_attachments.rb:1723:in `size'
... 3009 levels...
from /Applications/LimeChat.app/Contents/Resources/rb_main.rb:18:in
`each'
from /Applications/LimeChat.app/Contents/Resources/rb_main.rb:18:in
`rb_main_init'
from /Applications/LimeChat.app/Contents/Resources/SACrashReporter/
lib/SACrashReporter.rb:78:in `run_app'
from /Applications/LimeChat.app/Contents/Resources/rb_main.rb:27

Thanks for help,
Antonin

Antonin Hildebrand

unread,
Jul 12, 2008, 11:09:30 AM7/12/08
to LimeChat
I've just tried to compile RubyCocoa from sources and it fails:
...
ld: warning in /opt/local/lib/libxml2.dylib, file is not of required
architecture
ld: warning in /opt/local/lib/libruby.1.8.7.dylib, file is not of
required architecture
ld: in /opt/local/lib/libxml2.2.dylib, file is not of required
architecture
ld: warning in /opt/local/lib/libxml2.dylib, file is not of required
architecture
ld: warning in /opt/local/lib/libruby.1.8.7.dylib, file is not of
required architecture
ld: in /opt/local/lib/libxml2.2.dylib, file is not of required
architecture
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
ld: warning in /opt/local/lib/libxml2.dylib, file is not of required
architecture
ld: warning in /opt/local/lib/libruby.1.8.7.dylib, file is not of
required architecture
ld: in /opt/local/lib/libxml2.2.dylib, file is not of required
architecture
collect2: ld returned 1 exit status
ld: warning, duplicate dylib /opt/local/lib/libxml2.2.dylib
lipo: can't open input file: /var/folders/3t/3tFMf5vrFlmzq05EPsZBLE++
+TI/-Tmp-//cctEULRD.out (No such file or directory)
** BUILD FAILED **
setup failed
'system /usr/bin/xcodebuild' failed
try 'ruby install.rb --help' for usage


On Jul 12, 5:04 pm, Antonin Hildebrand <antonin.hildebr...@gmail.com>
wrote:

Antonin Hildebrand

unread,
Jul 12, 2008, 11:18:58 AM7/12/08
to LimeChat
Well already solved:
http://rails.aizatto.com/2007/11/26/building-rubycocoa-with-ruby-macports-installation/

After reinstalling RubyCocoa from sources LimeChat works again.
It's a kind of magic. Take it as a hint if you run into similar
problems.

regards,
Antonin

On Jul 12, 5:09 pm, Antonin Hildebrand <antonin.hildebr...@gmail.com>

Satoshi Nakagawa

unread,
Jul 12, 2008, 11:29:38 AM7/12/08
to limec...@googlegroups.com
>> I have LimeChat 0.19 and RubyCococa 0.13.2.
>> LimeChat worked perfectly until I have upgraded my MacPorts yesterday.
>>
>> [~] ruby -v
>> ruby 1.8.7 (2008-06-20 patchlevel 22) [i686-darwin9]

The officially distributed version of RubyCocoa uses /usr/bin/ruby.
So other ruby installations should not interfere RubyCocoa.
Can you try the following commands?

$ /usr/bin/ruby -v
$ file /usr/bin/ruby

By the way, RubyCocoa 0.13.2 doesn't support ruby 1.8.7.
I think it causes the exception.

> I've just tried to compile RubyCocoa from sources and it fails:

You need to build the ruby interpreter as an universal build when
using it with RubyCocoa.
Try +universal variant.

--
Satoshi Nakagawa

Antonin Hildebrand

unread,
Jul 13, 2008, 9:27:59 PM7/13/08
to LimeChat
I don't have official 'apple' ruby in my machine:
[~] /usr/bin/ruby -v
-bash: /usr/bin/ruby: No such file or directory
[~] file /usr/bin/ruby
/usr/bin/ruby: cannot open `/usr/bin/ruby' (No such file or directory)

I've removed official ruby and installed ruby from macports.
my ruby is in /opt/local/bin/ruby

Anyway, my problem is solved now.
LimeChat works for me with ruby 1.8.7 and compiled latest sources of
rubycocoa (with option --build-universal=no)

Antonin

On Jul 12, 5:29 pm, "Satoshi Nakagawa" <psy...@limechat.net> wrote:
> >> I have LimeChat 0.19 and RubyCococa 0.13.2.
> >> LimeChat worked perfectly until I have upgraded my MacPorts yesterday.
>
> >> [~] ruby -v
> >> ruby 1.8.7 (2008-06-20 patchlevel 22) [i686-darwin9]
>
> The officially distributed version of RubyCocoa uses /usr/bin/ruby.
> So other ruby installations should not interfere RubyCocoa.
> Can you try the following commands?
>
> $ /usr/bin/ruby -v
> $ file /usr/bin/ruby
>
> By the way, RubyCocoa 0.13.2 doesn't support ruby 1.8.7.
> I think it causes the exception.
>
> > I've just tried to compile RubyCocoa from sources and it fails:
>
> You need to build the ruby interpreter as an universal build when
> using it with RubyCocoa.
> Try +universal variant.
>
> --
> Satoshi Nakagawa
>
> On Sun, Jul 13, 2008 at 12:09 AM, Antonin Hildebrand
>
Reply all
Reply to author
Forward
0 new messages