walt posted on Fri, 16 Dec 2011 12:50:46 -0800:

> On 12/16/2011 12:03 PM, Heinrich Mueller wrote:
>> Am 16.12.2011 19:24, schrieb walt:
> 
>>> So I deleted the assertion from cairo's code, and now pan works
>>> perfectly.
> 
>> Can you point me to the line number in the file?
> 
> You mean cairo's code, right?
> 
> This machine is running cairo-1.10.2, and here is the troublesome code
> in cairo-surface.c.  The assertion is line 1287:
> 
> void cairo_surface_set_device_offset (cairo_surface_t *surface,
>                                   double           x_offset,
>                                   double           y_offset)
> {
>      cairo_status_t status;
> 
>      if (surface->status)
>          return;
> 
>      assert (surface->snapshot_of == NULL);
> 
>      if (surface->finished) {
>          status = _cairo_surface_set_error (surface, _cairo_error
>          (CAIRO_STATUS_SURFACE_FINISHED));
>          return;
>      }
> 
>      _cairo_surface_begin_modification (surface);
> 
>      surface->device_transform.x0 = x_offset;
>      surface->device_transform.y0 = y_offset;
> 
>      surface->device_transform_inverse = surface->device_transform;
>      status = cairo_matrix_invert (&surface->device_transform_inverse);
>      /* should always be invertible unless given pathological input */
>      assert (status == CAIRO_STATUS_SUCCESS);
> 
>      _cairo_observers_notify (&surface->device_transform_observers,
>      surface);
> }

Did you turn all the optimizations off, in pan, too?
You can pass them via configure.
./configure CFLAGS=... CXXFLAGS=...
Also, could you try to pull from their git and compile that version of 
cairo. Second, could you try to use an older version of libgcrypt if 
possible. Just if you have the time....
So the error means cairo is passed an invalid matrix, hmmm.
Well, anyway thanks for your debugging so far, keep it up.

Cheers.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Pan-devel mailing list
Pan-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/pan-devel

Reply via email to