Solved graphics/gimp stopped opening files

After some upgrades of ports tree lately, graphics/gimp stopped opening files. With the messages near the end of the process (it even sometimes shows the contents, but then this dialog messages window and need to close all):
Code:
GIMP Message

Plug-in crashed: "file-jpeg"
(/usr/local/libexec/gimp/2.2/plug-ins/file-jpeg/file-jpeg)

The dying plug-in may have messed up GIMP's internal state. You may want to save your images and restart GIMP to be on the safe side.

GIMP Message

Opening '/usr/tmp/4/6/77/8/9/54411784_10211361226145041_1825394597249941504_o.jpg' failed:

Procedure 'file-jpeg-load' returned no return values
The same problem is on two machines STABLE-12 amd64 and STABLE-11 amd64.
Have rebuilt gimp and its dependencies several times, but without luck.
Here's the console output:
Code:
$ gimp
gimp_color_transform_new: using babl for 'GIMP built-in sRGB' -> 'True Internet Color: Samsung SyncMaster 550b'
/usr/local/libexec/gimp/2.2/plug-ins/file-jpeg/file-jpeg: fatal error: Abort trap
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
gimp: GEGL-WARNING: (gegl-tile-handler-cache.c:977):gegl_tile_cache_destroy: runtime check failed: (g_queue_is_empty (&cache_queue))
EEEEeEeek! 2 GeglBuffers leaked
Also graphics/cinepaint stopped opening files. (PNG, JPEG, sometimes TIFF are among not opening). Viewers like graphics/eom still work fine (at least something!).

What can help?
 
I wish I could help, but I only can confirm this problem.
Same here:
12.0-RELEASE-p3
Code:
% gimp -v
GNU Image Manipulation Program version 2.10.8
git-describe: GIMP_2_10_6-294-ga967e8d2c2
C compiler:
    FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)
    Target: x86_64-unknown-freebsd12.0
    Thread model: posix
    InstalledDir: /usr/bin
    
using GEGL version 0.4.12 (compiled against version 0.4.12)
using GLib version 2.56.3 (compiled against version 2.56.3)
using GdkPixbuf version 2.36.12 (compiled against version 2.36.12)
using GTK+ version 2.24.32 (compiled against version 2.24.32)
using Pango version 1.42.3 (compiled against version 1.42.3)
using Fontconfig version 2.12.6 (compiled against version 2.12.6)
using Cairo version 1.15.12 (compiled against version 1.15.12)
%
 
What's the problem? The patch is for graphics/exiv2 not for graphics/gimp. Works fine for me.
Sure, it is graphics/exiv2. May be I tried to patch after build (?!), but now it is O.K.

But graphics/cinepaint still has an error, only with PNG opening.
Code:
$ cinepaint
Locale found in /usr/local/share/locale

(cinepaint:8634): Gtk-WARNING **: 11:40:05.071: A floating object was finalized. This means that someone
called g_object_unref() on an object that had only a floating
reference; the initial floating reference is not owned by anyone
and must be removed with g_object_ref_sink().
WARNING: oyranos_devices.c:815 oyDeviceGetProfile() Unexpected object type: Zero - none(oyConfig_s)[-1] 

cms.c:460 cms_init_oyranos() monitor profile size: 0
Searching plug-ins in path: /home/yury/.cinepaint/plug-ins/:/usr/local/lib/cinepaint/1.0-4/plug-ins
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/bmp
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/bracketing_to_hdr
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/cineon
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/collect
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/compose
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/dbbrowser
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/decompose
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/dicom
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/edge
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/fits
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/gauss_rle
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/gbr
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/gifload
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/hdr
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/iff
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/iol
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/jpeg
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/mblur
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/median
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/minimum
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/noisify
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/openexr
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/pdf
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/pic
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/png
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/pnm
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/psd
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/psd_save
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/rawphoto
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/retinex
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/rotate
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/screenshot
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/script-fu
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/sgi
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/sharpen
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/snoise
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/sobel
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/spread
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/tga
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/tiff
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/unsharp
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/xwd
Loading plug-in: /usr/local/lib/cinepaint/1.0-4/plug-ins/blur
plugin count = 43
script-fu.c:115
/usr/local/lib/cinepaint/1.0-4/plug-ins/script-fu
Error: Unable to set sensitivity for menu which doesn't exist:
<Toolbox>/File/Open/File
Error: Unable to set sensitivity for menu which doesn't exist:
<Image>/File/Open/File
Error: Unable to set sensitivity for menu which doesn't exist:
<Image>/File/Save/File
Error: Unable to set sensitivity for menu which doesn't exist:
<Image>/File/Save as/File
png.c:139
/usr/local/lib/cinepaint/1.0-4/plug-ins/png
wire_write: write error 2

** (process:8637): ERROR (recursed) **: ERROR: gp_proc_run_write failedwire_read: unexpected EOF (plug-in crashed?)
Error: Unable to set sensitivity for menu which doesn't exist:
<Toolbox>/File/Open/File
Error: Unable to set sensitivity for menu which doesn't exist:
<Image>/File/Open/File
Error: Unable to set sensitivity for menu which doesn't exist:
<Image>/File/Save/File
Error: Unable to set sensitivity for menu which doesn't exist:
<Image>/File/Save as/File

(cinepaint:8634): Gtk-WARNING **: 11:40:39.316: A floating object was finalized. This means that someone
called g_object_unref() on an object that had only a floating
reference; the initial floating reference is not owned by anyone
and must be removed with g_object_ref_sink().
 
Confirmed, same problem with graphics/cinepaint. But I think that is an other problem as with graphics/gimp. See Sourceforge: Last Updated 2013-05-06. Seems some things of the port are broken (also print plugin if print=on does not build) and the port has no maintainer.
 
For whatever it's worth, gimp version 2.10.8,2 which I built from ports about 3 weeks ago on FreeBSD-11.2-RELEASE still opens image files okay, but the same version, which I installed from packages on 11.2-RELEASE and 12.0-RELEASE, on Mar. 25 and Mar. 26 respectively, fails to open the same files.

The built-from-ports system which works okay has exiv2 version 0.26_1,1 ... the two systems which don't work okay have exiv2-0.27.0,1 ... and none of these systems has cinepaint.
 
Confirmed, same problem with graphics/cinepaint. But I think that is an other problem as with graphics/gimp. See Sourceforge: Last Updated 2013-05-06. Seems some things of the port are broken (also print plugin if print=on does not build) and the port has no maintainer.
Yes, I believe you are right. But graphics/cinepaint worked with PNGs quite nice long after 2013. I think it was in late 2018.

Sidenote. The reason I need Cinepaint is that I have to use 16-bit depth in the images, which I can't find in GIMP. So, I just afraid it tottaly disappear from ports, like now multimedia/avidemux with any GUI is absent, only old unmaintained CLI version stays. (Not for a long?)
 
Update: Ports maintainer multimedia@FreeBSD.org just updated graphics/exiv2 from version 0.27.0,1 to 0.27.0_1,1 today. The description for the new update addresses the topic of this thread, saying, "add patch to fix gimp."

I haven't tried this yet, so can't personally vouch for it, although I'm not inclined to doubt it. This patched version hasn't reached the "latest" repo for packages yet, which is still on version 0.27.0,1 as of this moment.

None of this affects the "quarterly" repo for packages, which still has version 0.26_1,1 of exiv2 and doesn't exhibit this bug.
 
Update: Ports maintainer multimedia@FreeBSD.org just updated graphics/exiv2 from version 0.27.0,1 to 0.27.0_1,1 today. The description for the new update addresses the topic of this thread, saying, "add patch to fix gimp."

I haven't tried this yet, so can't personally vouch for it, although I'm not inclined to doubt it. This patched version hasn't reached the "latest" repo for packages yet, which is still on version 0.27.0,1 as of this moment.

None of this affects the "quarterly" repo for packages, which still has version 0.26_1,1 of exiv2 and doesn't exhibit this bug.
It works.
 
Back
Top