Summary: | Certain rectilienar path+clip combinations crash the image backend at stroke | ||
---|---|---|---|
Product: | cairo | Reporter: | Zoltan Turanyi <teknos> |
Component: | image backend | Assignee: | Chris Wilson <chris> |
Status: | RESOLVED MOVED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | mkasik |
Version: | 1.12.14 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 68382 | ||
Attachments: |
The provided test case in a form suitable for cairo-test-suite
A quick patch fixing the crash |
Description
Zoltan Turanyi
2014-05-06 13:21:04 UTC
Created attachment 98868 [details] The provided test case in a form suitable for cairo-test-suite Thanks for that excellent test case, Zoltan. I hacked it into something suitable for cairo-test-suite and I can confirm that this still dies from the failed assertion on current git/master. And nope, sorry, no quick suggestions for a fix (but I am not sure about ignoring the clip for extents->clip->path == NULL is the right thing unless something somewhere already intersects the drawn boxes with the clip's boxes). Are you ok with the following header being added to your test case? /* * Copyright © 2014 Zoltan Turanyi * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, copy, * modify, merge, publish, distribute, sublicense, and/or sell copies * of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * Author: Zoltan Turanyi <teknos@gmail.com> */ Thanks Uli, please go ahead adding the header. Created attachment 114548 [details] [review] A quick patch fixing the crash Hi, I've observed the same crash when I was looking at this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1203907. Attached is a quick patch which fixes the crash for me although I'm not sure whether it is correct. It was inspired by the function "_cairo_clip_get_polygon()" which accepts 'clip->path == NULL' if there are some boxes in the clip. Regards Marek -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/90. |
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.