[BUG] object allocation during garbage collection phase #109

Closed
punund opened this Issue May 11, 2011 · 6 comments

Projects

None yet

6 participants

@punund
punund commented May 11, 2011

Kaminari paginate method causes rails server to crash:

/home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/activesupport-3.0.7/lib/active_support/whiny_nil.rb:46: [BUG] object allocation during garbage collection phase
ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]

-- control frame ----------
c:2963 p:---- s:13014 b:13014 l:003013 d:003013 CFUNC  :caller
c:2962 p:0034 s:13011 b:13008 l:003007 d:003007 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/activesupport-3.0.7/lib/active_support/whiny_nil.rb:46
c:2961 p:---- s:13001 b:13001 l:003000 d:003000 FINISH
c:2960 p:0065 s:12999 b:12999 l:002998 d:002998 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/haml-3.0.25/lib/haml/util.rb:512
c:2959 p:0086 s:12992 b:12992 l:0021b0 d:0021b0 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/haml-3.0.25/lib/haml/engine.rb:90
c:2958 p:---- s:12986 b:12986 l:002985 d:002985 FINISH
c:2957 p:---- s:12984 b:12984 l:002983 d:002983 CFUNC  :new
c:2956 p:0125 s:12979 b:12979 l:002978 d:002978 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/haml-3.0.25/lib/haml/template/plugin.rb:34
c:2955 p:0019 s:12973 b:12973 l:002972 d:002972 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/haml-3.0.25/lib/haml/template/plugin.rb:39
c:2954 p:0277 s:12969 b:12969 l:002968 d:002968 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/actionpack-3.0.7/lib/action_view/template.rb:226
c:2953 p:0070 s:12955 b:12955 l:002945 d:002954 BLOCK  /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/actionpack-3.0.7/lib/action_view/template.rb:134
c:2952 p:0056 s:12951 b:12951 l:002950 d:002950 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/activesupport-3.0.7/lib/active_support/notifications.rb:54
c:2951 p:0028 s:12946 b:12946 l:002945 d:002945 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/actionpack-3.0.7/lib/action_view/template.rb:127
c:2950 p:0103 s:12939 b:12939 l:001a40 d:001a40 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/actionpack-3.0.7/lib/action_view/render/partials.rb:333
c:2949 p:0009 s:12931 b:12931 l:002914 d:002930 BLOCK  /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/actionpack-3.0.7/lib/action_view/render/partials.rb:262
c:2948 p:0017 s:12929 b:12929 l:002919 d:002928 BLOCK  /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/activesupport-3.0.7/lib/active_support/notifications.rb:52
c:2947 p:0032 s:12927 b:12927 l:002926 d:002926 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/activesupport-3.0.7/lib/active_support/notifications/instrumenter.rb:21
c:2946 p:0036 s:12920 b:12920 l:002919 d:002919 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/activesupport-3.0.7/lib/active_support/notifications.rb:52
c:2945 p:0128 s:12915 b:12915 l:002914 d:002914 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/actionpack-3.0.7/lib/action_view/render/partials.rb:260
c:2944 p:0066 s:12906 b:12906 l:002905 d:002905 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/actionpack-3.0.7/lib/action_view/render/partials.rb:378
c:2943 p:0137 s:12901 b:12901 l:002900 d:002900 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/actionpack-3.0.7/lib/action_view/render/rendering.rb:22
c:2942 p:0094 s:12894 b:12894 l:002893 d:002893 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/haml-3.0.25/lib/haml/helpers/action_view_mods.rb:13
c:2941 p:0068 s:12888 b:12888 l:002887 d:002887 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/kaminari-0.12.4/lib/kaminari/helpers/tags.rb:24
c:2940 p:0108 s:12884 b:12884 l:002883 d:002883 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/kaminari-0.12.4/lib/kaminari/helpers/paginator.rb:65
c:2939 p:---- s:12879 b:12879 l:002878 d:002878 FINISH
c:2938 p:---- s:12877 b:12877 l:002876 d:002876 CFUNC  :inspect
c:2937 p:---- s:12875 b:12875 l:002874 d:002874 CFUNC  :to_str
c:2936 p:---- s:12873 b:12873 l:002872 d:002872 CFUNC  :to_s
c:2935 p:---- s:12871 b:12871 l:002870 d:002870 CFUNC  :message
c:2934 p:0015 s:12868 b:12868 l:002861 d:002867 BLOCK  /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/actionpack-3.0.7/lib/action_view/template/error.rb:63
c:2933 p:0019 s:12866 b:12866 l:002865 d:002865 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/activesupport-3.0.7/lib/active_support/deprecation/reporting.rb:16
c:2932 p:0019 s:12862 b:12862 l:002861 d:002861 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/actionpack-3.0.7/lib/action_view/template/error.rb:63
c:2931 p:0053 s:12859 b:12856 l:002852 d:002855 BLOCK  /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/activesupport-3.0.7/lib/active_support/notifications/instrumenter.rb:23
c:2930 p:0033 s:12853 b:12853 l:002852 d:002852 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/activesupport-3.0.7/lib/active_support/notifications/instrumenter.rb:27
c:2929 p:0036 s:12846 b:12846 l:002845 d:002845 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/activesupport-3.0.7/lib/active_support/notifications.rb:52
c:2928 p:0128 s:12841 b:12841 l:002840 d:002840 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/actionpack-3.0.7/lib/action_view/render/partials.rb:260
c:2927 p:0066 s:12832 b:12832 l:002831 d:002831 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/actionpack-3.0.7/lib/action_view/render/partials.rb:378
c:2926 p:0137 s:12827 b:12827 l:002826 d:002826 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/actionpack-3.0.7/lib/action_view/render/rendering.rb:22
c:2925 p:0094 s:12820 b:12820 l:002819 d:002819 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/haml-3.0.25/lib/haml/helpers/action_view_mods.rb:13
c:2924 p:0068 s:12814 b:12814 l:002813 d:002813 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/kaminari-0.12.4/lib/kaminari/helpers/tags.rb:24
c:2923 p:0108 s:12810 b:12810 l:002809 d:002809 METHOD /home/ike/.rvm/gems/ruby-1.9.2-p180@rails307/gems/kaminari-0.12.4/lib/kaminari/helpers/paginator.rb:65
c:2922 p:---- s:12805 b:12805 l:002804 d:002804 FINISH

I realize that this is a ruby bug, still it would be nice to circumvent it somehow.

plentz commented May 12, 2011

ouch! (just to get notified when it's fixed :)

plentz commented May 12, 2011

Btw, I'm using the same env that you(ruby-1.9.2-p180/rails 3.0.7) and I don't see this error

I get the same error
rails 3.0.4
kaminari 0.12.4 (git version too)

I'm using the old kaminari views and by upgrading to the new one that should fix the problem but it'd be better to prevent this to happen

The same problem here with
Ruby 1.9.2-p180
Rails 3.0.9
kaminari 0.12.4

Solved the error by recreating the views:
rails g kaminari:views default

i solved this going back to kaminari 0.10.4

ruby 1.9.2-p136
rails 3.0.8

Member
zzak commented Jul 1, 2013

This should be fixed now, please re-open if you can reproduce

1.9.2 is no longer supported, if you can reproduce this in 1.9.3 or 2.0.0 (trunk would be even better!)

@zzak zzak closed this Jul 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment