Summary: | no output | ||
---|---|---|---|
Product: | cairo | Reporter: | Charles Doutriaux <doutriaux1> |
Component: | general | Assignee: | Carl Worth <cworth> |
Status: | RESOLVED FIXED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | medium | ||
Version: | 1.5.2 | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
code showing the bug 1.4 vs 1.5
sample of bad/empty ps file sample of good/working ps file (linked against 1.4.12) |
Description
Charles Doutriaux
2007-11-28 13:22:30 UTC
Created attachment 12796 [details] code showing the bug 1.4 vs 1.5 linknig against 1.4 createsa valid postscript, linkning vs 1.5 creates an empty ps Created attachment 12797 [details]
sample of bad/empty ps file
Created attachment 12798 [details]
sample of good/working ps file (linked against 1.4.12)
I would recommend checking the error status using cairo_status() after the call to cairo_surface_finish(). Often when a bad or empty PostScript file is created cairo_status() will return an error code. Running gdb on the test case I can see that in the analysis surface _cairo_traps_extents() is returning large numbers (x = 32767, y = 32767, width = 1, height = 1). There does not appear to be anything in your code that would make the coordinates go out of range. I noticed that in order to get my postscript output correct, i need to define the page as 600x600, then rotate and translate... if i declare the page as 600x790 for example then nothing is ever drawn. I'm thinking that mught be the problem with 1.5.2 that triggers "bitmap" mode for some reason and sees the bitmap as "out" of the page therefore not drawing it? If that's so, any idea on how to fix the code to get the postscript in landscape mode? Thx, C. Chris Wilson fixed the bug with this commit http://gitweb.freedesktop.org/?p=cairo;a=commit;h=481fd3b4c8d3972ce21399f81b2021a57ed58f00 The test case now works for me. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.