[cairo-bugs] [Bug 99054] New: cairo snapshot 1.15.[2, 4], win32 backend: assertion (surface->is_clear) failed
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Dec 11 12:06:31 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=99054
Bug ID: 99054
Summary: cairo snapshot 1.15.[2,4], win32 backend: assertion
(surface->is_clear) failed
Product: cairo
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: critical
Priority: medium
Component: win32 backend
Assignee: cairo-bugs at cairographics.org
Reporter: wippbox at gmx.net
QA Contact: cairo-bugs at cairographics.org
Created attachment 128411
--> https://bugs.freedesktop.org/attachment.cgi?id=128411&action=edit
Fix
I cross-compiled cairo-1.15.2 and cairo-1.15.4 for windows.
When running a test program, I get the following:
> Assertion failed!
>
> File: src/cairo-surface.c, Line 545
>
> Expression: surface->is_clear
>
> abnormal program termination
This happens in cairo_surface_create_similar.
Adding a line
> new_surf->is_clear = TRUE;
at the end of _cairo_win32_display_surface_create_similar in
src/win32/cairo-win32-display-surface.c
fixes the issue (see patch).
Remark: The particular case occured only for width = 0 in
cairo_surface_create_similar. For width > 0 the issue did not happen.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo-bugs/attachments/20161211/ec299922/attachment.html>
More information about the cairo-bugs
mailing list