vhochstein / active_scaffold

Rails 4 Version of activescaffold supporting jquery
MIT License
156 stars 34 forks source link

list_pagination_links leads to stack too deep error in production #196

Closed mcr closed 12 years ago

mcr commented 12 years ago

http://stackoverflow.com/questions/9851763/activescaffold-gives-stack-too-deep-error-can-not-find-any-recursion

It appears that something in my data causes this call to render to do something bad. Does it go into a recursion itself, I'm not sure. I know that if I replace list_pagination_links with the content "FOO", that it still fails... it's the act of getting to it that is causing stack too deep. If I comment out this render, I get a result.

This is with my infinite pagination patch, but not for a page that would have infinite pagination enabled.

(it's funny to post about stack too deep on stackoverflow.com...)

vhochstein commented 12 years ago

Hm, have never seen this before.

When did this issue start to appear? Do you have a override for list_pagination_links somewhere in your application?

Can you please add the stack trace.

mcr commented 12 years ago

okay, so there isn't a stack trace, because of the way ActionView seems to catch things... I did a stack of git bisecting, and then some line by line stuff. When I was debugging the infinite paging issue, I added: require 'active_scaffold/extensions/paginator_extensions'

to my code. This line seems to be the cause. I don't know why. Consider the issue closed.