Technical mailing list archives

technical@mail.odoo.com

Avatar

Re: Error when printing a report with many pages (more than 500)

by
tommi.rintala
- 2019年04月01日 13時16分03秒
Most likely cause is running out of open file handles. Have you tried 
these steps:

https://www.odoo.com/forum/help-1/question/wkhtmltopdf-failed-error-code-11-75795

so:

1) raise 'limit_memory_hard' in odoo configuration file
2) if it didn't help, raise ulimit for the process/disc partition
3) if running under SE_Linux, check the open file max handles limitation

BR

Tommi

On 01/04/2019 19:50, MOHAMED MAALEJ wrote:
> hello
> 
> we are in odoo 11 community, and we print a report with big number of 
> pages, we receive this error
> 
> /Échec de Wkhtmltopdf (code d'erreur : -11). La capacité de la mémoire 
> est trop basse ou le nombre maximal de fichiers du sous-processus est 
> atteint. Message : 
> b'n=&sitepage=1199&title=&subsection=&frompage=1&subsubsection=&topage=1200&doctitle=&sitepages=1200&webpage=/tmp/report.body.tmp.0.3abdvcfy.html&time=16:40&date=01/04/19 
> (sometimes it will work just to ignore this error with 
> --load-error-handling ignore)\nError: Failed loading page 
> file:///tmp/report.header.tmp.5aiscr4_.html?page=1200&section=&sitepage=1200&title=&subsection=&frompage=1&subsubsection=&topage=1200&doctitle=&sitepages=1200&webpage=/tmp/report.body.tmp.0.3abdvcfy.html&time=16:40&date=01/04/19 
> (sometimes it will work just to ignore this error with 
> --load-error-handling ignore)\nError: Failed loading page 
> file:///tmp/report.footer.tmp.ic4d668g.html?page=1200&section=&sitepage=1200&title=&subsection=&frompage=1&subsubsection=&topage=1200&doctitle=&sitepages=1200&webpage=/tmp/report.body.tmp.0.3abdvcfy.html&time=16:40&date=01/04/19 
> (sometimes it will work just to ignore this error with 
> --load-error-handling ignore)\nQPaintDevice: Cannot destroy paint device 
> that is being painted\n'
> /
> 
> 
> thanks for help
> 
> Maalej Med
> 2M informatique
> Software Services
> Tél. : 216 74 228 664 / 74 200 548 / 99 418 343
> Imm. Intileka Center 2 N° : B2/APP 6-2
> Alkhyria - Sfax
> Tunisie
> 
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/technical-62
> Post to: mailto:technical@mail.odoo.com
> Unsubscribe: https://www.odoo.com/groups?unsubscribe
> 

-- 
  Mr. Tommi RINTALA, CEO
    tommi.rintala@newcablecorporation.com
    Mobile: +358 50 525 7616

    New Cable Corporation
    Kaitoväylä 1
    FI-90590 Oulu
    http://www.newcablecorporation.com/

Reference