Re: *gl-surface-source: CRASH! Re: make check failed while all tests passed

[email protected]
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
On 08/14, [email protected] wrote:
> > darxus@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;

-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.