[cairo-bugs] [Bug 23067] using clear drawing operator crashes printing
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Aug 5 07:20:08 PDT 2009
http://bugs.freedesktop.org/show_bug.cgi?id=23067
Chris Wilson <chris at chris-wilson.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Chris Wilson <chris at chris-wilson.co.uk> 2009-08-05 07:20:05 PST ---
So the issue is that when printing the fallback resolution of the printer is
set to 0 dpi. CAIRO_OPERATOR_CLEAR can not be handled natively by PDF/PS
(except where the CLEAR affects the whole surface and we just discard all
previous content) which triggers a fallback. As we attempt to create an
fallback image with 0 pixels, we are understandably confused.
The backtrace pin-points the caller to _gtk_printer_create_cairo_surface(),
gtk/gtkprinter.c:924 so I'll go and look for the culprit there. But first I'll
commit the guards to cairo. (Pushed to 1.8, in my local queue for master)
In any event, my advice would be to rethink the use of CLEAR as you want to
avoid unnecessary image fallbacks. And you need to check for errors after
drawing and before commiting the print job -- though perhaps this error will
need to be caught inside GTK+.
Marking as fixed... I'll go raise a bug+patch for GTK+.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the cairo-bugs
mailing list