Re: [Gimp-developer] segmentation fault when trying to replace deprecated functions in lcms.c
- From: Michael Natterer <mitch gimp org>
- To: Elle Stone <l elle stone gmail com>
- Cc: Gimp-developer <gimp-developer-list gnome org>
- Subject: Re: [Gimp-developer] segmentation fault when trying to replace deprecated functions in lcms.c
- Date: Thu, 06 Sep 2012 19:38:22 +0200
Do you call gegl_init()?
Look at file-pat.c or goat-exercise.c for simple examples
of gegl-enabled plugins.
--mitch
On Thu, 2012-09-06 at 12:59 -0400, Elle Stone wrote:
> When I try to call the recommended new functions to replace the
> deprecated functions in the lcms.c plug-in, the code segmentation
> faults.
>
> To illustrate the problem, I wrote a line of code to call
> 'gimp_drawable_get_buffer' and put a printf statement just above and
> below:
>
> printf("lcms: lcms_drawable_transform: before call to GeglBuffer\n");
> GeglBuffer *buffer = gimp_drawable_get_buffer (layer_id);
> printf("lcms: lcms_drawable_transform: after call to GeglBuffer\n");
>
> The code "segmentation faults" when it gets to "GeglBuffer *buffer =
> gimp_drawable_get_buffer (layer_id);".
>
> Although I am not experienced in interpreting backtraces, and could
> easily be completely wrong, it looks like the problem is that babl
> doesn't accomodate the file format "RGB u16":
>
> #6 0x00007f216af03c2f in babl_format (name=0xb50610 "RGB u16") at
> babl-format.c:667
>
> line 667 is the end of babl-format.c and "RGB u16" does not occur
> anywhere in babl-format.c.
>
> I am not sure how to fix this problem. The full backtrace and the
> relevant lcms.c code (high bit depth version) can be found here:
> http://ninedegreesbelow.com/temp/gimp-lcms-deprecated.html
>
> Elle Stone
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]