[cairo-bugs] [Bug 41409] New: Assertion when marking as dirty a surface on which no Cairo operations have been made

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Oct 2 17:40:56 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=41409

           Summary: Assertion when marking as dirty a surface on which no
                    Cairo operations have been made
           Product: cairo
           Version: 1.10.3
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: ogg.k.ogg.k at googlemail.com
         QAContact: cairo-bugs at cairographics.org


As shown by the test case below.
In my actual code, I modify the surface after loading (I swap R and B values),
the sequence of calls being:
- _create_from_png
- _flush
- _get_data/width/height
- swap R/B values
- _dirty


#include <stdio.h>
#include <cairo.h>

int main()
{
  cairo_surface_t *surface = cairo_image_surface_create_from_png
("/tmp/test.png");
  printf("%d %d\n",cairo_image_surface_get_width(surface),
cairo_image_surface_get_height(surface));
  cairo_surface_flush (surface);
  cairo_surface_mark_dirty (surface);
  return 0;
}

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list