[Gimp-developer] segmentation fault when trying to replace deprecated functions in lcms.c
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 0x7f216af03c2f 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 -- http://ninedegreesbelow.com Articles and tutorials on open source digital imaging and photography ___ gimp-developer-list mailing list gimp-developer-list@gnome.org https://mail.gnome.org/mailman/listinfo/gimp-developer-list
Re: [Gimp-developer] segmentation fault when trying to replace deprecated functions in lcms.c
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 0x7f216af03c2f 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 ___ gimp-developer-list mailing list gimp-developer-list@gnome.org https://mail.gnome.org/mailman/listinfo/gimp-developer-list
Re: [Gimp-developer] segmentation fault when trying to replace deprecated functions in lcms.c
On 9/6/12, Michael Natterer mi...@gimp.org wrote: Do you call gegl_init()? Look at file-pat.c or goat-exercise.c for simple examples of gegl-enabled plugins. 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. Thanks! gegl_init() enabled the plug-in to run without segmentation faulting. Now to see if I can actually replace a deprecated function or five! Elle ___ gimp-developer-list mailing list gimp-developer-list@gnome.org https://mail.gnome.org/mailman/listinfo/gimp-developer-list
Re: [Gimp-developer] history of great bugs
hi, If you want a fun bug, Id say the drag-and-drop ghost in 2.4 series(I think it got fixed by 2.6?) takes the cake. It eluded people for a while... I think it was Michael Mure before his first GSoC who found the issue... Best, Alexia ___ gimp-developer-list mailing list gimp-developer-list@gnome.org https://mail.gnome.org/mailman/listinfo/gimp-developer-list
Re: [Gimp-developer] Reviving Tito (The menu search tool)
Hey Alexandre, git pull g...@github.com:ssrihari/gimp-tito.git tito make make install Merges and builds fine for me. Please ensure that you pulled from the* tito branch.* If it still fails, could you please let me know what the problem is? it was unable to locate GEGL Could you elaborate on this? On Thu, Sep 6, 2012 at 8:31 AM, Alexandre Prokoudine alexandre.prokoud...@gmail.com wrote: On Thu, Sep 6, 2012 at 6:57 AM, Srihari Sriraman wrote: Here's the thing: -I love Tito, I've been using it very often. -Quite a few people on the web seem to like Tito. -About a dozen (people who pulled the source and built it) have tried it. I'm surprised. I couldn't even get it to build -- it was unable to locate GEGL. Needless to say, I have a few branch builds of GIMP around, and all of them compile. Alexandre Prokoudine http://libregraphicsworld.org ___ gimp-developer-list mailing list gimp-developer-list@gnome.org https://mail.gnome.org/mailman/listinfo/gimp-developer-list -- * * *Regards, * *Srihari Sriraman * ___ gimp-developer-list mailing list gimp-developer-list@gnome.org https://mail.gnome.org/mailman/listinfo/gimp-developer-list