我正在使用wickedpdf和wkhtmltopdf使用rails 2.3。在生成pdf时,它在第一时间正常工作。当我第二次生成pdf时,它会生成RunTime Error
它显示如下的错误。
XXXXXController中的RuntimeError#xxxxxx_pdf
PDF could not be generated!
Error: Failed loading page file:///tmp/wicked_header_pdf_3705_0.html?page=1§ion=&
subsection=&frompage=1&subsubsection=&topage=1&webpage=foobar&time=10:55 AM&date=20/03/14
(sometimes it will work just to ignore this error with --ignore-load-errors)
Error: Failed loading page file:///tmp/wicked_footer_pdf_3705_0.html?page=1§ion=&
subsection=&frompage=1&subsubsection=&topage=1&webpage=foobar&time=10:55 AM&date=20/03/14
(sometimes it will work just to ignore this error with --ignore-load-errors)
QPaintDevice: Cannot destroy paint device that is being painted
Segmentation fault (core dumped)
请建议避免此问题。
提前谢谢你
mayara rajesh