profile
viewpoint

Ask questionswkhtmltoimage 0.12.3.2 segmentation fault and empty file generated

Hello,

I'm using wkhtmltoimage 0.12.3.2 on Debian 9. When I try to create an image from some sites, (for example Youtube, but non only this) I obtain a lot of error messages ending with "Segmentation fault".

No problem with wkhtmltoimage 0.13.0-alpha-7b36694 under Debian 8.

Here is my run string:

/usr/bin/xvfb-run /usr/bin/wkhtmltoimage --load-error-handling ignore --width 1024 --height 768 --format png --javascript-delay 2000 https://www.youtube.com/watch?v=GW-6jIOaWo8 /tmp/test.png

and these are the errors:

Loading page (1/2) QPainter::begin: Paint device returned engine == 0, type: 2 ] 90% QPainter::end: Painter not active, aborted QPainter::begin: Paint device returned engine == 0, type: 2 QPainter::end: Painter not active, aborted QPainter::begin: Paint device returned engine == 0, type: 2 QPainter::end: Painter not active, aborted QPainter::begin: Paint device returned engine == 0, type: 2 QPainter::end: Painter not active, aborted Rendering (2/2) QPainter::begin: Paint device returned engine == 0, type: 2 ] 25% QPainter::end: Painter not active, aborted QPainter::begin: Paint device returned engine == 0, type: 2 QPainter::end: Painter not active, aborted QPainter::begin: Paint device returned engine == 0, type: 2 QPainter::end: Painter not active, aborted QPainter::begin: Paint device returned engine == 0, type: 2 QPainter::end: Painter not active, aborted QPainter::begin: Paint device returned engine == 0, type: 2 QPainter::setRenderHint: Painter must be active to set rendering hints QPainter::translate: Painter not active QPainter::setPen: Painter not active .... .... Segmentation fault

Hoping someone could help me.

Best regards. Andrea

wkhtmltopdf/wkhtmltopdf

Answer questions PaperBag42

Try updating to the latest version, 0.12.5. The download links are here: https://wkhtmltopdf.org/downloads.html

useful!
source:https://uonfu.com/
Github User Rank List