cairo snapshot 1.15.[2,4], win32 backend: assertion (surface->is_clear) failed
Submitted by Gerhard Bräunlich
Assigned to cairo-bugs mailing list
Created attachment 128411 Fix
I cross-compiled cairo-1.15.2 and cairo-1.15.4 for windows. When running a test program, I get the following:
File: src/cairo-surface.c, Line 545
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.
Patch 128411, "Fix":
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information