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

Infinite loop of errors #2196

Open
iliakan opened this Issue Feb 8, 2015 · 35 comments

Comments

Projects
None yet
@iliakan

iliakan commented Feb 8, 2015

I get infinite loop of errors like:

wkhtmltopdf[7259] <Error>: CGContextSetFillColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
wkhtmltopdf[7259] <Error>: CGContextSetShouldAntialias: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
wkhtmltopdf[7259] <Error>: CGContextSetShouldSmoothFonts: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
wkhtmltopdf[7259] <Error>: CGContextSetFillColorSpace: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
.... repeats ...

Can fix it?
Is there a way to see what's wrong, or at least which part of the document causes the confusion?

P.S. 0.12.2.1

@iliakan

This comment has been minimized.

Show comment
Hide comment
@iliakan

iliakan Feb 8, 2015

Didn't have it in 0.12.2.

iliakan commented Feb 8, 2015

Didn't have it in 0.12.2.

@bmulholland

This comment has been minimized.

Show comment
Hide comment
@bmulholland

bmulholland Feb 12, 2015

I'm getting this too.

bmulholland commented Feb 12, 2015

I'm getting this too.

@ashkulz

This comment has been minimized.

Show comment
Hide comment
@ashkulz

ashkulz Feb 12, 2015

Member

This is probably due to wkhtmltopdf/qt@c74350c which is a backport from Qt5 to fix QTBUG-10094 (as that is the only difference for the 64-bit build). Most likely the 32-bit build will not face this issue.

Member

ashkulz commented Feb 12, 2015

This is probably due to wkhtmltopdf/qt@c74350c which is a backport from Qt5 to fix QTBUG-10094 (as that is the only difference for the 64-bit build). Most likely the 32-bit build will not face this issue.

@ashkulz

This comment has been minimized.

Show comment
Hide comment
@ashkulz

ashkulz Feb 12, 2015

Member

I assume this is on 10.10?

Member

ashkulz commented Feb 12, 2015

I assume this is on 10.10?

@bmulholland

This comment has been minimized.

Show comment
Hide comment
@bmulholland

bmulholland Feb 16, 2015

Yes, this was happening to me on 10.10 64bit.

bmulholland commented Feb 16, 2015

Yes, this was happening to me on 10.10 64bit.

@rojotek

This comment has been minimized.

Show comment
Hide comment
@rojotek

rojotek Feb 22, 2015

I'm seeing this on
OSX 10.10.2
wkhtmltopdf 0.12.2.1 (with patched qt)

rojotek commented Feb 22, 2015

I'm seeing this on
OSX 10.10.2
wkhtmltopdf 0.12.2.1 (with patched qt)

@seanwooj

This comment has been minimized.

Show comment
Hide comment
@seanwooj

seanwooj Feb 23, 2015

I am seeing the same problem with the specs that rojotek listed.

seanwooj commented Feb 23, 2015

I am seeing the same problem with the specs that rojotek listed.

@namxam

This comment has been minimized.

Show comment
Hide comment
@namxam

namxam Mar 12, 2015

I can confirm that Mac OS 10.10 has this issue with wkhtmltopdf 0.12.2.1 (with patched qt)

namxam commented Mar 12, 2015

I can confirm that Mac OS 10.10 has this issue with wkhtmltopdf 0.12.2.1 (with patched qt)

@VitalyKovalev

This comment has been minimized.

Show comment
Hide comment
@VitalyKovalev

VitalyKovalev Mar 16, 2015

Confirm 10.9.5

VitalyKovalev commented Mar 16, 2015

Confirm 10.9.5

@VitalyKovalev

This comment has been minimized.

Show comment
Hide comment
@VitalyKovalev

VitalyKovalev Mar 17, 2015

Confirm 0.12.2 (x64) and 0.12.2.1 (x64) with patched qt on 10.9.5

wkhtmltopdf --quiet http://d3.ru ~/d3.pdf

QFont::setPixelSize: Pixel size <= 0 (0)
2015-03-17 14:13:04.213 wkhtmltopdf[457:507] Cannot find executable for CFBundle 0x10b36c340 </Library/Internet Plug-Ins/Unused> (not loaded)
2015-03-17 14:13:04.227 wkhtmltopdf[457:507] Error loading /Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin:  dlopen(/Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin, 265): no suitable image found.  Did find:
    /Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin: mach-o, but wrong architecture
objc[457]: Class AdobePDFProgressView is implemented in both /Library/Internet Plug-Ins/AdobePDFViewer.plugin/Contents/MacOS/AdobePDFViewer and /Library/Internet Plug-Ins/AdobePDFViewerNPAPI.plugin/Contents/MacOS/AdobePDFViewerNPAPI. One of the two will be used. Which one is undefined.
objc[457]: Class ObjCTimerObject is implemented in both /Library/Internet Plug-Ins/AdobePDFViewer.plugin/Contents/MacOS/AdobePDFViewer and /Library/Internet Plug-Ins/AdobePDFViewerNPAPI.plugin/Contents/MacOS/AdobePDFViewerNPAPI. One of the two will be used. Which one is undefined.
2015-03-17 14:13:04.231 wkhtmltopdf[457:507] Error loading /Library/Internet Plug-Ins/Unity Web Player.plugin/Contents/MacOS/Unity Web Player:  dlopen(/Library/Internet Plug-Ins/Unity Web Player.plugin/Contents/MacOS/Unity Web Player, 262): no suitable image found.  Did find:
    /Library/Internet Plug-Ins/Unity Web Player.plugin/Contents/MacOS/Unity Web Player: mach-o, but wrong architecture
QFont::setPixelSize: Pixel size <= 0 (0)
Mar 17 14:13:19 mbp-vitalij.dlink wkhtmltopdf[457] <Error>: CGContextSetShouldAntialias: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.

VitalyKovalev commented Mar 17, 2015

Confirm 0.12.2 (x64) and 0.12.2.1 (x64) with patched qt on 10.9.5

wkhtmltopdf --quiet http://d3.ru ~/d3.pdf

QFont::setPixelSize: Pixel size <= 0 (0)
2015-03-17 14:13:04.213 wkhtmltopdf[457:507] Cannot find executable for CFBundle 0x10b36c340 </Library/Internet Plug-Ins/Unused> (not loaded)
2015-03-17 14:13:04.227 wkhtmltopdf[457:507] Error loading /Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin:  dlopen(/Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin, 265): no suitable image found.  Did find:
    /Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin: mach-o, but wrong architecture
objc[457]: Class AdobePDFProgressView is implemented in both /Library/Internet Plug-Ins/AdobePDFViewer.plugin/Contents/MacOS/AdobePDFViewer and /Library/Internet Plug-Ins/AdobePDFViewerNPAPI.plugin/Contents/MacOS/AdobePDFViewerNPAPI. One of the two will be used. Which one is undefined.
objc[457]: Class ObjCTimerObject is implemented in both /Library/Internet Plug-Ins/AdobePDFViewer.plugin/Contents/MacOS/AdobePDFViewer and /Library/Internet Plug-Ins/AdobePDFViewerNPAPI.plugin/Contents/MacOS/AdobePDFViewerNPAPI. One of the two will be used. Which one is undefined.
2015-03-17 14:13:04.231 wkhtmltopdf[457:507] Error loading /Library/Internet Plug-Ins/Unity Web Player.plugin/Contents/MacOS/Unity Web Player:  dlopen(/Library/Internet Plug-Ins/Unity Web Player.plugin/Contents/MacOS/Unity Web Player, 262): no suitable image found.  Did find:
    /Library/Internet Plug-Ins/Unity Web Player.plugin/Contents/MacOS/Unity Web Player: mach-o, but wrong architecture
QFont::setPixelSize: Pixel size <= 0 (0)
Mar 17 14:13:19 mbp-vitalij.dlink wkhtmltopdf[457] <Error>: CGContextSetShouldAntialias: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.

@ashkulz ashkulz added the Verified label Mar 17, 2015

@ashkulz

This comment has been minimized.

Show comment
Hide comment
@ashkulz

ashkulz Mar 17, 2015

Member

Can someone confirm that you get these errors with 0.12.2 as well?

Member

ashkulz commented Mar 17, 2015

Can someone confirm that you get these errors with 0.12.2 as well?

@VitalyKovalev

This comment has been minimized.

Show comment
Hide comment
@VitalyKovalev

VitalyKovalev Mar 17, 2015

ashkulz, 0.12.2 x32 has no such errors, checked on 10.9.5.

VitalyKovalev commented Mar 17, 2015

ashkulz, 0.12.2 x32 has no such errors, checked on 10.9.5.

@ashkulz

This comment has been minimized.

Show comment
Hide comment
@ashkulz

ashkulz Mar 18, 2015

Member

I'm confused ... these errors only occur in the 64 bit build, right? So checking 0.12.2 32-bit is not required.

Member

ashkulz commented Mar 18, 2015

I'm confused ... these errors only occur in the 64 bit build, right? So checking 0.12.2 32-bit is not required.

@ashkulz

This comment has been minimized.

Show comment
Hide comment
@ashkulz

ashkulz Mar 18, 2015

Member

Looks like it is due to an update to OS X breaking things. Should ideally be reported upstream in Qt. No real way to test as I don't have an OS X machine, maybe @mn4367 can help?

Member

ashkulz commented Mar 18, 2015

Looks like it is due to an update to OS X breaking things. Should ideally be reported upstream in Qt. No real way to test as I don't have an OS X machine, maybe @mn4367 can help?

@VitalyKovalev

This comment has been minimized.

Show comment
Hide comment
@VitalyKovalev

VitalyKovalev Mar 18, 2015

32bit has errors of running plugins as well as 64bit, but 32bit has no 'infinite loop' error messages as posted on the top

VitalyKovalev commented Mar 18, 2015

32bit has errors of running plugins as well as 64bit, but 32bit has no 'infinite loop' error messages as posted on the top

@ashkulz

This comment has been minimized.

Show comment
Hide comment
@ashkulz

ashkulz Mar 19, 2015

Member

Hmm, looks like qt/qtbase@a2bc19c needs to be possibly backported to Qt4. Can you install this version and see if you still get the errors?

Member

ashkulz commented Mar 19, 2015

Hmm, looks like qt/qtbase@a2bc19c needs to be possibly backported to Qt4. Can you install this version and see if you still get the errors?

@ashkulz

This comment has been minimized.

Show comment
Hide comment
@ashkulz

ashkulz Mar 19, 2015

Member

@VitalyKovalev: the plugins problem is separate, you can fix it by using --disable-plugins. If you still get it, please post a separate issue.

Member

ashkulz commented Mar 19, 2015

@VitalyKovalev: the plugins problem is separate, you can fix it by using --disable-plugins. If you still get it, please post a separate issue.

@ashkulz

This comment has been minimized.

Show comment
Hide comment
@ashkulz

ashkulz Mar 20, 2015

Member

Any luck with the new build?

Member

ashkulz commented Mar 20, 2015

Any luck with the new build?

@VitalyKovalev

This comment has been minimized.

Show comment
Hide comment
@VitalyKovalev

VitalyKovalev Mar 20, 2015

@ashkulz, I've checked 0.12.3 and it has same "infinite loop errors" on some websites. In fact, these errors not infinite — each time it falls in it creates pdf with rendered website and additional blank pages with total number of 1975 pages. Maybe this will help you.

VitalyKovalev commented Mar 20, 2015

@ashkulz, I've checked 0.12.3 and it has same "infinite loop errors" on some websites. In fact, these errors not infinite — each time it falls in it creates pdf with rendered website and additional blank pages with total number of 1975 pages. Maybe this will help you.

@adamwitherspoon

This comment has been minimized.

Show comment
Hide comment
@adamwitherspoon

adamwitherspoon May 27, 2015

I just experience the same error wkhtmltopdf[xxxx] <Error>: CGContextSetShouldAntialias: invalid context 0x0.

Mac OS X 10.10.3 (14D136)

% wkhtmltopdf -V
wkhtmltopdf 0.12.2.1 (with patched qt)

adamwitherspoon commented May 27, 2015

I just experience the same error wkhtmltopdf[xxxx] <Error>: CGContextSetShouldAntialias: invalid context 0x0.

Mac OS X 10.10.3 (14D136)

% wkhtmltopdf -V
wkhtmltopdf 0.12.2.1 (with patched qt)

@adamwitherspoon

This comment has been minimized.

Show comment
Hide comment
@adamwitherspoon

adamwitherspoon May 27, 2015

I tried the dev version below:
wkhtmltopdf 0.12.3-dev-3b4f21b (with patched qt) and the error was still there...

adamwitherspoon commented May 27, 2015

I tried the dev version below:
wkhtmltopdf 0.12.3-dev-3b4f21b (with patched qt) and the error was still there...

mauritsvanrees added a commit to zestsoftware/collective.sendaspdf that referenced this issue Jun 2, 2015

osx: 64bit has problems, try 32 bit.
Yup, that fixes it.  Or we could go back to 0.12.2.
Seems to be issue wkhtmltopdf/wkhtmltopdf#2196
@damienh

This comment has been minimized.

Show comment
Hide comment
@damienh

damienh Jun 22, 2015

I got around this issue by running gem install wkhtmltopdf-binary

damienh commented Jun 22, 2015

I got around this issue by running gem install wkhtmltopdf-binary

@ashkulz

This comment has been minimized.

Show comment
Hide comment
@ashkulz

ashkulz Jun 22, 2015

Member

That installs an old, unsupported version. SSL is unlikely to work with it.

Member

ashkulz commented Jun 22, 2015

That installs an old, unsupported version. SSL is unlikely to work with it.

@jeff-h

This comment has been minimized.

Show comment
Hide comment
@jeff-h

jeff-h Jun 23, 2015

Same error here as everyone else. I narrowed it down to an <input type="submit"> in the source HTML in my case — not sure how useful that is, given that my understanding is this is an error in a library wkhtmltopdf uses, but thought I'd mention it.

The following consistently reproduces the error:

<html>
<head>
    <title></title>
</head>

<body>
    <form>
        <input type="submit">
    </form>
</body>
</html>

Changing the type to anything else fixes this — e.g. <input type="submitthing">

The evidence in my case suggests that this isn't comprehensively the cause — my HTML seems to contain other tags which in combination also cause the error.

jeff-h commented Jun 23, 2015

Same error here as everyone else. I narrowed it down to an <input type="submit"> in the source HTML in my case — not sure how useful that is, given that my understanding is this is an error in a library wkhtmltopdf uses, but thought I'd mention it.

The following consistently reproduces the error:

<html>
<head>
    <title></title>
</head>

<body>
    <form>
        <input type="submit">
    </form>
</body>
</html>

Changing the type to anything else fixes this — e.g. <input type="submitthing">

The evidence in my case suggests that this isn't comprehensively the cause — my HTML seems to contain other tags which in combination also cause the error.

@tonimichel

This comment has been minimized.

Show comment
Hide comment
@tonimichel

tonimichel Jun 24, 2015

Getting this error with wkhtmltopdf 0.12.2.1 (with patched qt) on OSX 10.10.3, too
It seems to work with some html documents though.

tonimichel commented Jun 24, 2015

Getting this error with wkhtmltopdf 0.12.2.1 (with patched qt) on OSX 10.10.3, too
It seems to work with some html documents though.

@greatnilesh

This comment has been minimized.

Show comment
Hide comment
@greatnilesh

greatnilesh Oct 19, 2015

@ashkulz tonimichel
facing same issue

wkhtmltopdf 0.12.2.1 (with patched qt)

OSX 10.10.5 (14F27)

kindly help!

greatnilesh commented Oct 19, 2015

@ashkulz tonimichel
facing same issue

wkhtmltopdf 0.12.2.1 (with patched qt)

OSX 10.10.5 (14F27)

kindly help!

@kirpit

This comment has been minimized.

Show comment
Hide comment
@kirpit

kirpit Oct 25, 2015

tried both wkhtmltopdf 0.12.2.1 (with patched qt) and wkhtmltopdf 0.12.1 (with patched qt) under OSX 10.10.5 (14F27), no luck. i think this needs bump!

kirpit commented Oct 25, 2015

tried both wkhtmltopdf 0.12.2.1 (with patched qt) and wkhtmltopdf 0.12.1 (with patched qt) under OSX 10.10.5 (14F27), no luck. i think this needs bump!

@dnagir

This comment has been minimized.

Show comment
Hide comment
@dnagir

dnagir Nov 23, 2015

Same issue on OSX wkhtmltopdf 0.12.2.1 (with patched qt)

dnagir commented Nov 23, 2015

Same issue on OSX wkhtmltopdf 0.12.2.1 (with patched qt)

@torinaki

This comment has been minimized.

Show comment
Hide comment
@torinaki

torinaki Dec 23, 2015

For me this error messages had disappeared when I have fixed this one #1746.

torinaki commented Dec 23, 2015

For me this error messages had disappeared when I have fixed this one #1746.

@postpersonality

This comment has been minimized.

Show comment
Hide comment
@postpersonality

postpersonality Feb 1, 2016

Got some limited amount of errors on x32 wkhtmltopdf 0.12.3 (with patched qt)
Yosemite 10.10.5

Feb 1 11:35:39 iMac.local wkhtmltopdf[94355] : CGContextSetShouldAntialias: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.

wkhtmltopdf http://book.mixu.net/node/single.html Mixu\'s\ Node\ book.pdf

postpersonality commented Feb 1, 2016

Got some limited amount of errors on x32 wkhtmltopdf 0.12.3 (with patched qt)
Yosemite 10.10.5

Feb 1 11:35:39 iMac.local wkhtmltopdf[94355] : CGContextSetShouldAntialias: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.

wkhtmltopdf http://book.mixu.net/node/single.html Mixu\'s\ Node\ book.pdf

@laguiz

This comment has been minimized.

Show comment
Hide comment
@laguiz

laguiz Mar 4, 2016

I also get this error on MacOS 10.10.5 with 0.12.3 (with patched qt). Same page working fine on Windows 7 with 0.12.3.2 (with patched qt).

laguiz commented Mar 4, 2016

I also get this error on MacOS 10.10.5 with 0.12.3 (with patched qt). Same page working fine on Windows 7 with 0.12.3.2 (with patched qt).

@laguiz

This comment has been minimized.

Show comment
Hide comment
@laguiz

laguiz Mar 4, 2016

In my case generation works perfectly if I remove my html tag <button>my button</button>. Probably similar to @jeff-h with his <input type="submit">.

laguiz commented Mar 4, 2016

In my case generation works perfectly if I remove my html tag <button>my button</button>. Probably similar to @jeff-h with his <input type="submit">.

@7h3kk1d

This comment has been minimized.

Show comment
Hide comment
@7h3kk1d

7h3kk1d Jan 9, 2017

Also having the problem with a button.

7h3kk1d commented Jan 9, 2017

Also having the problem with a button.

@xunga

This comment has been minimized.

Show comment
Hide comment
@xunga

xunga Mar 2, 2017

Same here :(

xunga commented Mar 2, 2017

Same here :(

@Tomsgu

This comment has been minimized.

Show comment
Hide comment
@Tomsgu

Tomsgu Aug 20, 2018

Contributor

Is this still happening in new builds?

Contributor

Tomsgu commented Aug 20, 2018

Is this still happening in new builds?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment