After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 770848 - Gimp 2.8.X with gegl-0.3 compiles, has lots of startup warnings, cage tool crashes
Gimp 2.8.X with gegl-0.3 compiles, has lots of startup warnings, cage tool cr...
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: General
2.8.18
Other All
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
: 774766 784148 784865 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2016-09-04 13:22 UTC by Aapo Rantalainen
Modified: 2018-05-24 16:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Aapo Rantalainen 2016-09-04 13:22:59 UTC
Prerequirements:
gegl-0.3 installed
gegl-0.2 NOT installed

Steps:
Download https://download.gimp.org/mirror/pub/gimp/v2.8/gimp-2.8.18.tar.bz2
Modify configure.ac
-m4_define([gegl_required_version], [0.2.0])
+m4_define([gegl_required_version], [0.3.0])
-PKG_CHECK_MODULES(GEGL, gegl-0.2 >= gegl_required_version)
+PKG_CHECK_MODULES(GEGL, gegl-0.3 >= gegl_required_version)

./configure ; make

-> Compiles without issues.
But starting gimp causes
(gimp:8784): GLib-GObject-WARNING **: g_object_set_valist: object class 'GeglConfig' has no property named 'cache-size'

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x2247D40 from "gimp:point-layer-mode" to "gimp:dissolve-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x2248210 from "gimp:point-layer-mode" to "gimp:behind-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x22488A0 from "gimp:point-layer-mode" to "gimp:multiply-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x2248C70 from "gimp:point-layer-mode" to "gimp:screen-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x2249060 from "gimp:point-layer-mode" to "gimp:overlay-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x2249490 from "gimp:point-layer-mode" to "gimp:difference-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x2249850 from "gimp:point-layer-mode" to "gimp:addition-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x2249C90 from "gimp:point-layer-mode" to "gimp:subtract-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x224A050 from "gimp:point-layer-mode" to "gimp:darken-only-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x224A4A0 from "gimp:point-layer-mode" to "gimp:lighten-only-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x224A8B0 from "gimp:point-layer-mode" to "gimp:hue-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x224ABE0 from "gimp:point-layer-mode" to "gimp:saturation-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x224B040 from "gimp:point-layer-mode" to "gimp:color-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x224BCE0 from "gimp:point-layer-mode" to "gimp:value-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x224C030 from "gimp:point-layer-mode" to "gimp:divide-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x224C4B0 from "gimp:point-layer-mode" to "gimp:dodge-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x224C820 from "gimp:point-layer-mode" to "gimp:burn-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x224CC70 from "gimp:point-layer-mode" to "gimp:hardlight-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x224D010 from "gimp:point-layer-mode" to "gimp:softlight-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x224D410 from "gimp:point-layer-mode" to "gimp:grain-extract-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x224D870 from "gimp:point-layer-mode" to "gimp:grain-merge-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x224DC20 from "gimp:point-layer-mode" to "gimp:color-erase-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x224E010 from "gimp:point-layer-mode" to "gimp:erase-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x224E430 from "gimp:point-layer-mode" to "gimp:replace-mode"

(gimp:8784): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x224E800 from "gimp:point-layer-mode" to "gimp:anti-erase-mode"



(Sidenote: If gegl-0.2 installed then unmodified gimp-2.8.18 compiles and runs without these warnings)

----

Why this matters:
Gimp-2.8.18 speficically uses gegl-0.2, but distros like Debian and Ubuntu compiles it (actually gimp-2.8.16) against gegl-0.3. Since: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790421

Many bugreports in this tracker and Ubuntu's tracker about gimp are polluted with these warnings. I don't know if there is any really issues relating this.

(Sidenote: Currenct Ubuntu has gegl-0.3.4 and can easily compile gimp-2.9.2, but not gimp-2.9.4 which needs gegl-0.3.8 and couple more too new library).
Comment 1 Massimo 2016-09-04 14:05:46 UTC
(In reply to Aapo Rantalainen from comment #0)
> Prerequirements:
> gegl-0.3 installed
> gegl-0.2 NOT installed
> 
...
> ----
> 
> Why this matters:
> Gimp-2.8.18 speficically uses gegl-0.2, but distros like Debian and Ubuntu
> compiles it (actually gimp-2.8.16) against gegl-0.3. Since:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790421
> 
> Many bugreports in this tracker and Ubuntu's tracker about gimp are polluted
> with these warnings. I don't know if there is any really issues relating
> this.


I'd say gegl-0.3 required a fix in GIMP master to avoid
a dead lock caused by a recursive mutex lock.

gimp-2.8 cage tool would freeze without that bug fixed if run
against gegl-0.3:

https://bugzilla.gnome.org/show_bug.cgi?id=678085#c5
Comment 2 Massimo 2016-09-05 11:28:08 UTC
(In reply to Massimo from comment #1)
> 
> 
> I'd say gegl-0.3 required a fix in GIMP master to avoid
> a dead lock caused by a recursive mutex lock.
> 
> gimp-2.8 cage tool would freeze without that bug fixed if run
> against gegl-0.3:
> 
> https://bugzilla.gnome.org/show_bug.cgi?id=678085#c5


This is a report in debian bug tracker of the cage tool freeze:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809064

I don't know if it is possible to back port the fix
in such a way that it works with gegl-0.2 and with gegl-0.3,
I'm not going to investigate. If downstream patches GIMP
build system to not use gegl-0.2, they have to support 
gegl-0.3 or later and so it is easier for them.

The other warnings are not pretty (not GIMP devs fault),
but it would be hard for users to see the related problems 
(IIRC 'use GEGL' was removed from menus in gimp-2.8).

I'd close this bug as not GIMP's bug
Comment 3 Michael Schumacher 2016-09-10 22:20:37 UTC
I think we discussed moving 2.8 to gegl 0.3 on #gimp, and were in favor of it.
Comment 4 Michael Schumacher 2016-12-14 08:43:58 UTC
https://bugs.launchpad.net/ubuntu/+source/gimp/+bug/1614593 has an attempt to patch GIMP's cage tool to work with gegl-0.3 attached, based on Massimo's branch, but the author openly admits it has drawbacks.
Comment 5 Michael Schumacher 2016-12-14 08:44:16 UTC
s/branch/patch/
Comment 6 Michael Natterer 2017-07-15 19:14:31 UTC
*** Bug 784865 has been marked as a duplicate of this bug. ***
Comment 7 Michael Natterer 2017-07-15 19:15:40 UTC
*** Bug 774766 has been marked as a duplicate of this bug. ***
Comment 8 Michael Natterer 2017-07-15 19:16:57 UTC
The last two duplicates are about the cage tool crashing due to this
mis-packaging. Bug 774766 has some links to patches.
Comment 9 Michael Schumacher 2017-08-31 22:06:01 UTC
*** Bug 784148 has been marked as a duplicate of this bug. ***
Comment 10 GNOME Infrastructure Team 2018-05-24 16:51:18 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/954.