CutyCapt issue with SSL URL

偶尔善良 提交于 2020-01-03 01:28:07

问题


I am having a problem getting CutyCapt to work with SSL URLs, I have the most recent version of CutyCapt (CutyCapt.cpp 10 2013-07-14 21:57:37Z), it works perfect with all non-SSL URLs, when I try to grab a URL with SSL using the following command:

./xvfb-run ./CutyCapt --min-width=1280 --min-height=720 --max-wait=6000 \
     --url="https://apple.com" --out="testssl.jpg"

I get the following error:

QPainter::begin: Paint device returned engine == 0, type: 3

QPainter::setRenderHint: Painter must be active to set rendering hints

QPainter::setBrush: Painter not active

QPainter::pen: Painter not active

QPainter::setPen: Painter not active

QPainter::end: Painter not active, aborted

./xvfb-run: line 171: kill: (6557) - No such process

Note: when I run it with no HTTPS, it runs fine:

 ./xvfb-run ./CutyCapt --min-width=1280 --min-height=720 --max-wait=6000 \
     --url="http://apple.com" --out="testssl.jpg"

Any suggestions? Thanks in advance!


回答1:


For anyone else stumbling upon this like me.

Install Qt5 (you're going to need it). You're going to run into several package issues, just google each error and you'll fix them(you'll be back on StackOverflow several times).

After that, install the latest CutyCapt, and run it with the --insecure parameter. This worked for me on Ubuntu 14.04.



来源:https://stackoverflow.com/questions/27890019/cutycapt-issue-with-ssl-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!