You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
I have the same issue, using Rails 4.0.0. When I try to cache a segment with recursion, I get this error:
SystemStackError at /testing-webcast/sections
=============================================
> stack level too deep
activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb, line 23
<% cache [ 'sections', sections.maximum(:updated_at).to_i ] do %>
<%= render 'sections/list', sections: sections.root %>
<% end %>
sections/_list.html.erb
<ul>
<% sections.each do |section| %>
<li>
<div class="section webcast animate">
<h2><%= section.get_title %></h2>
</div>
<% if section.children.count > 0 %>
<%= render 'sections/list', sections: section.children %>
<% end %>
</li>
<% end %>
</ul>
Everything works, if I remove this part.
...
<% if section.children.count > 0 %>
<%= render 'sections/list', sections: section.children %>
<% end %>
...
Other thing is that, after I remove the part from above, the cache is created.
After this I add the part again to the template, remove the cache manually (delete the files)
and it starts to work.
See issue # 23 in which I was asked to open a new issue. This is still a problem.
Using JRuby 1.7.2 and rails 3.2.12. I am using the "closure_tree" gem that has some sort of recursion. Don't know if that is causing this.
SystemStackError - stack level too deep:
org/jruby/RubyProc.java:261:in
call' org/jruby/RubyProc.java:249:in
call'org/jruby/RubyHash.java:681:in
default' org/jruby/RubyHash.java:1070:in
[]'(gem) actionpack-3.2.12/lib/action_view/template/resolver.rb:127:in
query' org/jruby/RubyArray.java:2595:in
reject!'org/jruby/RubyArray.java:2558:in
reject' (gem) actionpack-3.2.12/lib/action_view/template/resolver.rb:126:in
query'(gem) actionpack-3.2.12/lib/action_view/template/resolver.rb:117:in
find_templates' (gem) actionpack-3.2.12/lib/action_view/template/resolver.rb:46:in
find_all'(gem) actionpack-3.2.12/lib/action_view/template/resolver.rb:77:in
cached' (gem) actionpack-3.2.12/lib/action_view/template/resolver.rb:45:in
find_all'(gem) actionpack-3.2.12/lib/action_view/path_set.rb:65:in
find_all' org/jruby/RubyArray.java:1613:in
each'(gem) actionpack-3.2.12/lib/action_view/path_set.rb:64:in
find_all' org/jruby/RubyArray.java:1613:in
each'(gem) actionpack-3.2.12/lib/action_view/path_set.rb:63:in
find_all' (gem) actionpack-3.2.12/lib/action_view/path_set.rb:58:in
find'(gem) actionpack-3.2.12/lib/action_view/lookup_context.rb:109:in
find' (gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:79:in
source'(gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:43:in
digest' (gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:32:in
digest'(gem) activesupport-3.2.12/lib/active_support/cache.rb:297:in
fetch' (gem) activesupport-3.2.12/lib/active_support/cache.rb:520:in
instrument'(gem) activesupport-3.2.12/lib/active_support/cache.rb:296:in
fetch' (gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:31:in
digest'(gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:85:in
dependency_digest' org/jruby/RubyArray.java:2348:in
collect'org/jruby/RubyArray.java:2356:in
collect' (gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:84:in
dependency_digest'(gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:43:in
digest' (gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:32:in
digest'(gem) activesupport-3.2.12/lib/active_support/cache.rb:297:in
fetch' (gem) activesupport-3.2.12/lib/active_support/cache.rb:520:in
instrument'(gem) activesupport-3.2.12/lib/active_support/cache.rb:296:in
fetch' (gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:31:in
digest'(gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:85:in
dependency_digest' org/jruby/RubyArray.java:2348:in
collect'org/jruby/RubyArray.java:2356:in
collect' (gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:84:in
dependency_digest'(gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:43:in
digest' (gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:32:in
digest'(gem) activesupport-3.2.12/lib/active_support/cache.rb:297:in
fetch' (gem) activesupport-3.2.12/lib/active_support/cache.rb:520:in
instrument'(gem) activesupport-3.2.12/lib/active_support/cache.rb:296:in
fetch' (gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:31:in
digest'(gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:85:in
dependency_digest' org/jruby/RubyArray.java:2348:in
collect'org/jruby/RubyArray.java:2356:in
collect' (gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:84:in
dependency_digest'(gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:43:in
digest' (gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:32:in
digest'(gem) activesupport-3.2.12/lib/active_support/cache.rb:297:in
fetch' (gem) activesupport-3.2.12/lib/active_support/cache.rb:520:in
instrument'(gem) activesupport-3.2.12/lib/active_support/cache.rb:296:in
fetch' (gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:31:in
digest'(gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:85:in
dependency_digest' org/jruby/RubyArray.java:2348:in
collect'org/jruby/RubyArray.java:2356:in
collect' (gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:84:in
dependency_digest'(gem) cache_digests-0.2.0/lib/cache_digests/template_digestor.rb:43:in `digest'
Not having issues if I remove "cache_digests". It works without causing the "stack too deep" problem with just fragment caching
application.html.erb has:
category/_menu.html.erb
category/_menu_item.html.erb
The text was updated successfully, but these errors were encountered: