-
Notifications
You must be signed in to change notification settings - Fork 185
Certain PDFs immediately crash Windows connector #308
Comments
Example PDF that crashes Windows connector consistently attached. Note that I don't think anything is wrong with the PDF itself and I've seen cloudprint jobs regularly cause the crash, sometimes when printing www.google.com. |
This is fixed in upstream Cairo by: but the fix has not yet made it into a new release of Cairo or msys2's cairo package. I've submitted a pull request to msys2 to include the patch: Attached is a fixed cairo package for msys2 that should be installed after following the build from source wiki instructions. Download it and install with: pacman -U mingw-w64-x86_64-cairo-1.15.2-4-any.pkg.tar.xz Also attached is the fixed libcairo-2.dll which can be copied into the c:\program files\google\cloud print connector\ folder if you've already installed the MSI. I'll leave this issue open until upstream fix is in place. .zip extension added to both files so they can be attached to GitHub bug, remove the .zip from the filename to use. |
Thanks a lot for logging this. (Following.) Any chance of a source tar so I could ship this? No worries if not - I'll downgrade. MSYS2 looks severely backlogged. I noticed the current rtmpdump package source is a git repo - possibly not the "preferred form of the work". : - / |
The patch has been accepted into msys2. I used the instructions at: https://sourceforge.net/p/msys2/wiki/Contributing%20to%20MSYS2/ to build the attached Cairo package, now that it's merged that should just work. I'm not sure how often the packages get built and pushed via pacman update though. |
Aaaand it's there. Pacman installed it and my script grabbed the source. |
Is there a way to rollback Pacman to a known-to-work snapshot? Maybe by YYYYMMDD? |
Actually msys2 pushed out a new version with the fix last night so updating packages should resolve. Closing. |
@jay0lee I understand, but I'm worried about this kind of problem happening again. If today's msys2 version is stable for our purposes, can we roll back to it later? |
The only way I found to rollback was to uninstall the bad update of 1.15.2-3 and then manually installing the package file with: pacman -U |
Issue #266 addresses the general problem. |
@jacobmarble A stable repo was proposed on the mailing list just recently.
https://sourceforge.net/p/msys2/mailman/msys2-users/
|
Getting this error: We started from command line: Google Cloud Print Connector.info(3): Finished synchronizing 18 printers Program: C:\Program Files\Google\Cloud Print Connector\gcp-windows-connector.exe File: ../../cairo-1.15.2/src/cairo-recording-surface.c, Line 599 Expression: ! surface->unbounded This application has requested the Runtime to terminate it in an unusual way.
Seems like the printer either got deleted, but the print queue was still there or something. We could delete all the printers or start over from scratch. The concern is if a user prints something or a printer goes offline or is deleted by an admin, or just goes missing from an unknown reason, it should stop the connector from working. |
Steps to reproduce:
https://github.com/google/cloud-print-connector/wiki/Build-from-source#windows
as of today, this installs cairo 1.15.2.
https://www.cendio.com/bugzilla/attachment.cgi?id=710
Expected result:
PDF is printed
Actual result:
Connector crashes showing error:
Downgrading cairo to an older version seems to solve the issue but may introduce other issues. More details at:
https://www.cendio.com/bugzilla/show_bug.cgi?id=5922
Downgrade package at:
http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-cairo-1.14.2-2-any.pkg.tar.xz
The text was updated successfully, but these errors were encountered: