Note that there are some explanatory texts on larger screens.

plurals
  1. PORuby: stack level too deep (SystemStackError)
    primarykey
    data
    text
    <p>Ruby is crashing in Cygwin for rails and bundler. </p> <pre><code>$ ruby -v ruby 1.9.3p374 (2013-01-15 revision 38858) [i386-cygwin] Chloe@dumbopc /cygdrive/c/Sites $ rails -v Rails 3.2.11 Chloe@dumbopc /cygdrive/c/Sites $ cd testapp Chloe@dumbopc /cygdrive/c/Sites/testapp $ rails -v /usr/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb:114: stack level too deep (SystemStackError) Chloe@dumbopc /cygdrive/c/Sites/testapp $ bundle install Fetching gem metadata from https://rubygems.org/........... Fetching gem metadata from https://rubygems.org/.. Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks! /usr/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/friendly_errors.rb:32: stack level too deep (SystemStackError) </code></pre> <p>I tried both versions of Ruby, ruby 1.9.3p327 and ruby-1.9.3-p374-1. I found something from Google that hinted that 1.9.2 might fix the problem, but I could not select that in setup.exe. I also tried</p> <pre><code>peflags -x8192000 `which ruby` </code></pre> <p>which did not help. I also tried 18192000. I uninstalled Ruby and re-installed. Same with rails. It only fails when it's inside of an app directory. When I try</p> <pre><code>rails new testapp </code></pre> <p>It creates the directory and files, but fails on <code>bundle install</code>. I can't run <code>rails -v</code> in that directory either. I suspect there are other commands that will fail too, but I haven't found them yet. I'm using Windows XP SP3.</p> <pre><code>$ uname -a CYGWIN_NT-5.1 dumbopc 1.7.17(0.262/5/3) 2012-10-19 14:39 i686 Cygwin </code></pre> <p>Here are the bad lines if you are curious</p> <pre><code>$ rails -v /usr/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb:114: stack level too deep (SystemStackError) $ cat -n /usr/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb | grep '^ *114' 114 requirements.map { |op, version| "#{op} #{version}" }.sort $ bundle install /usr/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/friendly_errors.rb:32: stack level too deep (SystemStackError) $ cat -n /usr/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/friendly_errors.rb | grep '^ *32' 32 raise e </code></pre> <p>I also tried all the suggestions from bundler following its link. I added -d to the rails script and it printed this:</p> <pre><code>$ rails -v Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems.rb:1264 - cannot load such file -- rubygems/defaults/operating_system Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems.rb:1273 - cannot load such file -- rubygems/defaults/ruby Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=rake version=0.9.2.2&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=rake version=10.0.3&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=json version=1.7.5&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=json version=1.7.6&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=rake version=0.9.2.2&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=rake version=10.0.3&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=json version=1.7.5&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=json version=1.7.6&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=rake version=0.9.2.2&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=rake version=10.0.3&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=json version=1.7.5&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=json version=1.7.6&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=rake version=0.9.2.2&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=rake version=10.0.3&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=json version=1.7.5&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=json version=1.7.6&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=rake version=0.9.2.2&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=rake version=10.0.3&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=json version=1.7.5&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=json version=1.7.6&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=rake version=0.9.2.2&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=rake version=10.0.3&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=json version=1.7.5&gt; Exception `NoMethodError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1495 - undefined method `to_ary' for #&lt;Gem::Specification name=json version=1.7.6&gt; /usr/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb:118: stack level too deep (SystemStackError) $ head -1 /usr/bin/rails #!/usr/bin/ruby.exe -d </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload