SystemStackError in GreyController#grey_search stack level too deep can anybody please enlighten me on this one...any possible way to troubleshoot? thanks, MSN id: ICEMANyears@netscape.net -- Posted via http://www.ruby-forum.com/.
It''s most often because you have a series of methods which are calling each other circularly, i.e. method_a calls method_b which calls method_a which then calls method_b... and so on. Eventually the stack (which stores the context at each point a new method is entered) runs out of space. Can you find anything like that anywhere in your code? - james On 7/12/06, Mikki W <mikkiw@rediffmail.com> wrote:> SystemStackError in GreyController#grey_search > stack level too deep > > can anybody please enlighten me on this one...any possible way to > troubleshoot? > thanks, > > > MSN id: ICEMANyears@netscape.net > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- * J * ~
James Adam wrote:> It''s most often because you have a series of methods which are calling > each other circularly, i.e. method_a calls method_b which calls > method_a which then calls method_b... and so on. Eventually the stack > (which stores the context at each point a new method is entered) runs > out of space. > > Can you find anything like that anywhere in your code? > > - james > > On 7/12/06, Mikki W <mikkiw@rediffmail.com> wrote: >> SystemStackError in GreyController#grey_search >> stack level too deep >> >> can anybody please enlighten me on this one...any possible way to >> troubleshoot? >> thanks, >> >> >> MSN id: ICEMANyears@netscape.net >> >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > >This can also be sometimes caused by a syntax error .e.g redirect_to :login instead of redirect_to :action => "login"
this is the error I get: SystemStackError#greybox_search stack level too deep this is the class I have defined, where the error is being indicated: def videos(*criteria) videos[''videos''][''video''].collect { |video| Video.new(video[''id'']) } end any help guys..thanks, MSN id: ICEMANyears@netscape.net Chris T wrote:> James Adam wrote: >> On 7/12/06, Mikki W <mikkiw@rediffmail.com> wrote: >>> -- >>> Posted via http://www.ruby-forum.com/. >>> _______________________________________________ >>> Rails mailing list >>> Rails@lists.rubyonrails.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >> >> > This can also be sometimes caused by a syntax error .e.g redirect_to > :login instead of redirect_to :action => "login"-- Posted via http://www.ruby-forum.com/.
this is the error I get: SystemStackError#greybox_search stack level too deep this is the class I have defined, where the error is being indicated: def videos(*criteria) videos[''videos''][''video''].collect { |video| Video.new(video[''id'']) } end any help guys..thanks, MSN id: ICEMANyears@netscape.net -- Posted via http://www.ruby-forum.com/.
On Thursday 13 July 2006 16:58, Mikki W wrote:> this is the error I get: > SystemStackError#greybox_search > stack level too deep > this is the class I have defined, where the error is being indicated: > def videos(*criteria) > videos[''videos''][''video''].collect { |video| Video.new(video[''id'']) > } endSo you have a method calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, calling itself, [remainder snipped] In other words: infinite recursion :) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060714/d80c2737/attachment.bin