Summary: | Cairo Xlib backend fails when the path contains too many elements. | ||
---|---|---|---|
Product: | cairo | Reporter: | Vytas <vytautas.liuolia> |
Component: | xlib backend | Assignee: | Carl Worth <cworth> |
Status: | RESOLVED DUPLICATE | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | minor | ||
Priority: | high | CC: | emmanuel.pacaud, jwatt |
Version: | 1.0.2 | Keywords: | have-backtrace |
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Testcase for the bug, sorry, that I've just pasted it in the report at first.
My test program backtrace with NBR=20000 fails with n is large |
Description
Vytas
2005-08-18 14:37:37 UTC
Created attachment 2918 [details]
Testcase for the bug, sorry, that I've just pasted it in the report at first.
I'm confused here: - The code in libXrender just truncates the request to fit within the server's maximum request size; so it should just misdraw when you exceed that, and not get killed by the X server. (It's pretty big - I have to up level to 6 to exceed the size on my X server) - I have no problems with the 'Xfake' server from the X server tree - But I do reproduce the problem with my main X server (a 6 month old X.org snapshot) - at sizes less than the maximum request size; no truncation at all. Unfortunately, it's much harder to debug that, though I'll try tomorrow when I get into work and have a second computer, hopefully I still have debug symbols for this server. Move bugs against "cvs" version to "0.9.3" so we can remove the "cvs" version. I'm also experiencing this bug. Please find attached my sample test programm, which is basically the same as Vytas, and, more important, a backtrace. I'm using ubuntu breezy, which ships xorg 6.8.2. Created attachment 3861 [details]
My test program
Created attachment 3862 [details]
backtrace with NBR=20000
Changed version to 1.0.2 (Cairo 1.0.2 is used on Ubuntu 5.10) I've tested my program on Ubuntu 5.10, too. The issue remains, as reported by Emmanuel. I simple get it disconnected by X server: The application 'fractals' lost its connection to the display :0.0; most likely the X server was shut down or you killed/destroyed the application. I experienced this problem since one year ago. The bug showed up on my Powerbook (using Apple's X11) but not on my Slackware Linux box running XFree86. Now I've acquired a new computer running Xorg on a Gentoo Distribution and this bug creeped up. I am too lazy to reinstall XFree86 just for the sake of testing (I am not a developer of cairo afterall ^_^) so I would encourage anyone running a XFree86 to test for this bug. And I hope this extra information helps. I have another test program I just wrote up to demostrate this problem. Quite unexpectedly, while I reckon of its relatively lightness, cairo_stroke is less tolerate of the size of the path. For my test program, the program failed in cairo_stroke with n > 14624, while it failed in cairo_fill when n > 209864. Please see the attachment for the test case (the png backend, as a control case, runs perfectly) Created attachment 5940 [details]
fails with n is large
fails when n > 14624 for cairo_stroke and n > 209864 for cairo_fill
*** This bug has been marked as a duplicate of bug 10672 *** Chris, I don't understand the relationship with #10672. If #10672 is fixed, does that mean a big path will be correctly stroked ? If not, that means this bug is not a duplicate of #10672. Sadly 10672 just contains a fix for the Xserver to accept the large requests triggered by long paths - it has yet to be applied. |
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.