-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SystemStackError (stack level too deep) #29
Comments
Can you paste your controller code?, line 16 of pdf_helper is being called because your call to render doesn't have the :pdf key like so:
|
unixmonkey: thanks for your answaer. I just follow the install guide and reinit the mongrel server and then i got the error, I've not written a single code line yet. thanks in advance for your help. |
i've installed in a centos 5.5 over a amd64 box, the old instalation was in a i386 box and i got the same problem. Did i miss something ? i just follow the install guide, reinit and the problem comes out. |
I'm trying. I installed 1.9.1 and Rails 3 & wicked_pdf and its at least booting here. What version of Rails, and which wkhtmltopdf binary do you have? |
im using rails 2.3.8 and wkhtmltopdf 10Daniel. On Wed, Mar 30, 2011 at 6:07 PM, unixmonkey <
|
This error is always raised with Ruby 1.9.2-p180. render_without_wicked_pdf(options, *args, &block) That line triggers it. |
Edit: Rails 2.3.8 and 2.3.11 |
I can confirm that Wicked PDF does not work with the following on OS X 10.6.7, Rails 3.0.6 and wkhtmltopdf 0.9.9: ruby 1.9.2.-p180 In both cases I get a "SystemStackError (stack level too deep)". The relevant controller code used is:
The template and layout exists and everything works just fine with ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]. |
I am experiencing the same issue with Ruby 1.9.2-p180 After much spelunking, it looks like it is failing, very specifically, at:
in make_pdf in lib/pdf_helper.rb. I am beginning to suspect that it keeps calling itself because there might be some other plugin aliasing render and causing some sort of conflict. As it turns out, i am using inherit_views and inherited_resources which i know for sure that inherit_views aliases render. I will post more when i figure out exactly how to fix this. |
right on, nice work penguin. post again when you find a fix. |
I found the fix, but there is still another issue i have not yet worked out having to do with Ruby19 and character encodings. I am out for the evening; the Predators are playing the Ducks and i have to go get my McRinne jersey and watch the game. I will look into the encoding issue tomorrow. |
I've merged penguincoder's work into master. Please let me know if this helps. |
Just tested your latest version with OS X 10.6.7, RVM, Ruby 1.9.2 and the issue is resolved. Great work everyone! |
Failed to execute /usr/local/bin/wkhtmltopdf: undefined method `capture3' for Open3:Module In Ruby 1.8.7 Looks like a call to RUBY_VERSION is in order to penguincoder's commit. |
No problem running it on OS X 10.6.7 with standard 1.8.7. Also tried RVM versions of REE and 1.8.7-p334 apart from the earlier testing of 1.9.2-p180. No issues with my testapp over at https://github.com/DevL/shownotes/tree/master/SHRUG_2011-04-13_PDF/wicked |
Hey guys, look at this (from $RUBYHOME/lib/open3.rb in 1.9.2)
If we just call binmode on the stdout variable, it should work with the old code. |
@clifton, you are right, capture3 isn't in older 1.8.7, I missed that being on ree-1.8.7-2010.02, but it definitely isn't in p160 @penguincoder, I saw that and backported it to wicked_pdf's call to popen3. @DevL, Thanks for the presentation link. I used it to make sure the encoding stuff works. Also, you don't need to specify the template if its named after the action; and a better way to install wkhtmltopdf for a rails app these days is just add "gem 'wkhtmltopdf-binary'" to the Gemfile. All, thanks for your help. Please let me know if there are any further issues. |
Right on. Thanks for giving this issue attention. I'll update On Mon, Apr 18, 2011 at 2:53 PM, unixmonkey
|
after follow installation guide, i reinit mongrel server and then i got this:
SystemStackError (stack level too deep)
/home/dafevara/proyectos/publientrega/pec/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:16:in
render_with_wicked_pdf' /usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/base.rb:1326:in
default_render'/usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/base.rb:1332:in
perform_action' /usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/filters.rb:617:in
call_filters'/usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/filters.rb:610:in
perform_action_with_filters' /usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:68:in
block in perform_action_with_benchmark'/usr/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in
block in ms' /usr/lib/ruby/1.9.1/benchmark.rb:309:in
realtime'/usr/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in
ms' /usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:68:in
perform_action_with_benchmark'any body can help me?
/usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/rescue.rb:160:in
perform_action_with_rescue' /usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/flash.rb:151:in
perform_action_with_flash'/usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/base.rb:532:in
process' /usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/filters.rb:606:in
process_with_filters'/usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/base.rb:391:in
process' /usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/base.rb:386:in
call'/usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/routing/route_set.rb:438:in `call'
my environment is:
Ruby 1.9.1
Ubuntu 9.10
The text was updated successfully, but these errors were encountered: