[cairo] *gl-surface-source: CRASH! Re: make check failed while all tests passed
darxus at chaosreigns.com
darxus at chaosreigns.com
Sun Aug 14 23:29:09 UTC 2016
On 08/14, darxus at chaosreigns.com wrote:
> > darxus at dancer:~/source/cairo/test$ DISPLAY=:5 ./cairo-test-suite gl-surface-source
> I copied and pasted this command which was giving me crashes, and now it's
> not running any tests. Git logs don't seem to show any relevant changes.
> $ ./autogen.sh && make && echo worked
This was because I built it without --enable-gl . So it crashes when you
run gl-surface-source or gl-surface-source with the xcb target on Xvfb
(presumably without gl capabilities).
gl-surface-source egl-surface-source are still consistently crashing with
--enable-gl .
I'm still curious why this is resulting in a crash:
surface = cairo_gl_surface_create (device,
CAIRO_CONTENT_COLOR_ALPHA,
size, size);
return surface;
https://cairographics.org/manual/cairo-Image-Surfaces.html#cairo-image-surface-create
"Returns
a pointer to the newly created surface. The caller owns the surface and
should call cairo_surface_destroy() when done with it.
This function always returns a valid pointer, but it will return a pointer
to a "nil" surface if an error such as out of memory occurs. You can use
cairo_surface_status() to check for this."
in test/cairo-test.c this seems to be hitting something like:
if (cairo_surface_status (test_image) == CAIRO_STATUS_INVALID_STATUS)
ret = CAIRO_TEST_CRASHED;
More information about the cairo
mailing list