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 694417 - GIMP Segmentation Faults (Segfault, Crash) after Changing Color of Text Blocks
GIMP Segmentation Faults (Segfault, Crash) after Changing Color of Text Blocks
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Tools
2.8.4
Other All
: Normal critical
: 2.8
Assigned To: GIMP Bugs
GIMP Bugs
: 699851 700046 700172 700204 700209 701559 702834 711312 724274 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-02-22 07:59 UTC by catlover2
Modified: 2015-04-03 17:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Archive containing the console output and crash dump for ArchLinux and OS X. (14.16 KB, application/x-bzip2)
2013-02-22 07:59 UTC, catlover2
  Details
output of gimp --verbose on ubuntu 12.04 (6.40 KB, text/bar)
2013-02-28 07:03 UTC, gandalf3
  Details
proposed patch (1.36 KB, patch)
2013-04-21 10:21 UTC, Massimo
none Details | Review

Description catlover2 2013-02-22 07:59:55 UTC
Created attachment 237145 [details]
Archive containing the console output and crash dump for ArchLinux and OS X.

To reproduce:

1. Start GIMP and create a new image.
2. Select some of the image with Text Tool and type some random stuff. It does NOT matter whether or not "Use Editor" is selected; it crashes all the same.
3. Make sure different parts of the text are different colors, different sizes, and some are bolded, underlined, italicized, etc.
4. Now, select all the text and try to change its color. If the bug appears, GIMP will segfault immediately after pressing OK on the color selection dialog.

It seems a bit finicky; sometimes it'll crash and sometimes it won't. However, there is one configuration which ALWAYS crashes for me; see below. Please excuse my HTML, but it's the best way I can think of to demonstrate this.


Something.

Something Else.

<i>Another.</i> <i>Thing</i>!!!!


When I input that into the Text Tool's input box, select all, and attempt to change the entire block's color, GIMP reliably segfaults every time.

All of Text Tool's settings are set to default except that Justify is set to Center.

This bug is reproducible with GIMP 2.8.4 on at least Arch Linux and Mac OS X 10.7.5. I can and will test with Windows 8 Pro in the near future.
Comment 1 Michael Natterer 2013-02-22 13:36:11 UTC
Are there any warnings before it crashes? Please start GIMP from the
terminal to check.
Comment 2 catlover2 2013-02-22 18:50:51 UTC
gimp --verbose
INIT: gimp_load_config
Parsing '/home/catlover2/.gimp-2.8/unitrc'
Parsing '/etc/gimp/2.0/gimprc'
Parsing '/home/catlover2/.gimp-2.8/gimprc'
gimp_composite: verbose=no
Processor instruction sets: +mmx +sse +sse2 -3dnow -altivec -vis
Adding theme 'Default' (/usr/share/gimp/2.0/themes/Default)
Adding theme 'Small' (/usr/share/gimp/2.0/themes/Small)
Writing '/home/catlover2/.gimp-2.8/themerc'
Trying splash '/home/catlover2/.gimp-2.8/gimp-splash.png' ... failed
Trying splash '/usr/share/gimp/2.0/images/gimp-splash.png' ... OK
INIT: gimp_initialize
INIT: gimp_real_initialize
INIT: gui_initialize_after_callback
INIT: gimp_restore
Parsing '/home/catlover2/.gimp-2.8/parasiterc'
Loading 'brush factory' data
Loading 'dynamics factory' data
Loading 'pattern factory' data
Loading 'palette factory' data
Loading 'gradient factory' data
Loading fonts
Loading 'tool preset factory' data
Parsing '/home/catlover2/.gimp-2.8/templaterc'
Parsing '/home/catlover2/.gimp-2.8/modulerc'
Loading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-lcms.so'
Unloading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-lcms.so'
Loading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-proof.so'
Unloading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-proof.so'
Loading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-gamma.so'
Unloading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-gamma.so'
Loading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-color-blind.so'
Unloading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-color-blind.so'
Loading module '/usr/lib/gimp/2.0/modules/libcontroller-midi.so'
Unloading module '/usr/lib/gimp/2.0/modules/libcontroller-midi.so'
Loading module '/usr/lib/gimp/2.0/modules/libcolor-selector-water.so'
Unloading module '/usr/lib/gimp/2.0/modules/libcolor-selector-water.so'
Loading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-high-contrast.so'
Unloading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-high-contrast.so'
Loading module '/usr/lib/gimp/2.0/modules/libcolor-selector-cmyk.so'
Unloading module '/usr/lib/gimp/2.0/modules/libcolor-selector-cmyk.so'
Loading module '/usr/lib/gimp/2.0/modules/libcontroller-linux-input.so'
Unloading module '/usr/lib/gimp/2.0/modules/libcontroller-linux-input.so'
Loading module '/usr/lib/gimp/2.0/modules/libcolor-selector-wheel.so'
Unloading module '/usr/lib/gimp/2.0/modules/libcolor-selector-wheel.so'
INIT: gui_restore_callback
clipboard: writable pixbuf format: image/png
clipboard: writable pixbuf format: image/bmp
clipboard: writable pixbuf format: image/x-bmp
clipboard: writable pixbuf format: image/x-MS-bmp
clipboard: writable pixbuf format: image/tiff
clipboard: writable pixbuf format: image/x-icon
clipboard: writable pixbuf format: image/x-ico
clipboard: writable pixbuf format: image/x-win-bitmap
clipboard: writable pixbuf format: image/jpeg
Parsing '/home/catlover2/.gimp-2.8/sessionrc'
Parsing '/home/catlover2/.gimp-2.8/dockrc'
Parsing '/home/catlover2/.gimp-2.8/toolrc'
Parsing '/home/catlover2/.gimp-2.8/contextrc'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-rect-select-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-ellipse-select-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-free-select-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-fuzzy-select-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-by-color-select-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-iscissors-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-foreground-select-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-vector-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-color-picker-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-zoom-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-measure-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-move-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-align-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-crop-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-rotate-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-scale-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-shear-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-perspective-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-flip-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-cage-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-text-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-bucket-fill-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-blend-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-pencil-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-paintbrush-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-eraser-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-airbrush-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-ink-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-clone-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-heal-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-perspective-clone-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-convolve-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-smudge-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-dodge-burn-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-desaturate-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-color-balance-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-hue-saturation-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-colorize-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-brightness-contrast-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-threshold-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-levels-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-curves-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-posterize-tool'
Parsing '/home/catlover2/.gimp-2.8/tool-options/gimp-gegl-tool'
INIT: gimp_real_restore
Parsing '/home/catlover2/.gimp-2.8/pluginrc'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-pat'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/gradient-map'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-xjt'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/blur'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/depth-merge'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-jp2-load'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-html-table'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/channel-mixer'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/sinus'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-jpeg'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/waves'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/lens-apply'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/contrast-stretch-hsv'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/despeckle'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-pcx'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-psd-save'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/photocopy'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-glob'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/qbist'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/py-slice.py'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/blinds'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/displace'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-sgi'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/tile-small'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/colormap-remap'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-ps'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-cel'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/python-eval.py'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/mail'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/diffraction'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/imagemap'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/tile-glass'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/warp'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/van-gogh-lic'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/plugin-browser'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/blur-motion'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/bump-map'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/pixelize'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-xpm'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/noise-solid'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/map-object'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/fractal-explorer'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/oilify'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/decompose'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/jigsaw'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/destripe'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-xwd'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/softglow'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/color-to-alpha'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/ifs-compose'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-uri'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/guillotine'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/print'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/sphere-designer'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/unsharp-mask'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/noise-spread'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-bmp'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-xbm'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/polar-coords'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/checkerboard'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/maze'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/edge-sobel'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/lighting'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/max-rgb'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/help'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/unit-editor'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/colorxhtml.py'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/noise-rgb'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/metadata'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/threshold-alpha'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/palette-to-gradient.py'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/edge-laplace'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/cubism'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/mosaic'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-sunras'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/noise-randomize'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-tiff-load'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/lcms'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-csource'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-header'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/deinterlace'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-dicom'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/emboss'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-tiff-save'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-gih'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-compressor'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/hot'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/crop-zealous'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-gif-save'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/blur-gauss-selective'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/shift'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/web-browser'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/animation-optimize'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/plasma'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/compose'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-pnm'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/apply-canvas'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-pdf-load'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-psp'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/curve-bend'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/cml-explorer'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/newsprint'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/illusion'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/tile-paper'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/value-propagate'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/screenshot'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/selection-to-path'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/foggify.py'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-psd-load'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/rotate'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/tile'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-fits'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/sharpen'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-faxg3'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-png'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/grid'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/edge-dog'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/whirl-pinch'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-fli'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-pix'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/help-browser'
/usr/lib/gimp/2.0/plug-ins/help-browser: error while loading shared libraries: libwebkitgtk-1.0.so.0: cannot open shared object file: No such file or directory

(gimp:1289): LibGimpBase-WARNING **: gimp: gimp_wire_read(): error
Terminating plug-in: '/usr/lib/gimp/2.0/plug-ins/help-browser'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/gimpressionist'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/cartoon'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/color-exchange'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/antialias'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/color-enhance'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/noise-hsv'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/script-fu'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/gradient-flare'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/film'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/ripple'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-pdf-save'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/border-average'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-desktop-link'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/nl-filter'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/color-cube-analyze'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/nova'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/align-layers'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/edge-neon'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/semi-flatten'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/gfig'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/contrast-stretch'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-mng'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-openraster.py'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/iwarp'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-tga'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/edge'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/engrave'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/contrast-retinex'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/web-page'
/usr/lib/gimp/2.0/plug-ins/web-page: error while loading shared libraries: libwebkitgtk-1.0.so.0: cannot open shared object file: No such file or directory

(gimp:1289): LibGimpBase-WARNING **: gimp: gimp_wire_read(): error
Terminating plug-in: '/usr/lib/gimp/2.0/plug-ins/web-page'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-raw'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/smooth-palette'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/red-eye-removal'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-wmf'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/python-console.py'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/lens-distortion'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/colorify'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/gradients-save-as-css.py'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/value-invert'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/palette-offset.py'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/contrast-normalize'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/lens-flare'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/color-rotate'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/filter-pack'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/tile-seamless'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/sample-colorize'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/crop-auto'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/convolution-matrix'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-gif-load'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/flame'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/palette-sort.py'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-xmc'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/text-brush.py'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/alien-map'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/pagecurl'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/sparkle'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/video'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/animation-play'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-svg'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-gbr'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/wind'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/blur-gauss'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/procedure-browser'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/fractal-trace'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-ico'
Writing '/home/catlover2/.gimp-2.8/pluginrc'
Starting extension: 'extension-script-fu'
INIT: gui_restore_after_callback
Parsing '/home/catlover2/.gimp-2.8/menurc'
Parsing '/home/catlover2/.gimp-2.8/devicerc'
Parsing '/home/catlover2/.gimp-2.8/controllerrc'
Parsing '/home/catlover2/.gimp-2.8/colorrc'
loading menu '/usr/share/gimp/2.0/menus/image-menu.xml' for /image-menubar
Loading module '/usr/lib/gimp/2.0/modules/libdisplay-filter-lcms.so'
Loading module '/usr/lib/gimp/2.0/modules/libcolor-selector-water.so'
Loading module '/usr/lib/gimp/2.0/modules/libcolor-selector-cmyk.so'
Loading module '/usr/lib/gimp/2.0/modules/libcolor-selector-wheel.so'

(script-fu:1480): LibGimpBase-WARNING **: script-fu: gimp_wire_read(): error
[1]    1289 segmentation fault (core dumped)  gimp --verbose


That is where is crashes with Arch.
Comment 3 catlover2 2013-02-22 19:22:53 UTC
Here's what Windows 8 has to say:

 Problem Event Name:	APPCRASH
  Application Name:	gimp-2.8.exe
  Application Version:	2.8.4.0
  Application Timestamp:	5112cea4
  Fault Module Name:	msvcrt.dll
  Fault Module Version:	7.0.9200.16384
  Fault Module Timestamp:	5010ac20
  Exception Code:	c0000005
  Exception Offset:	0000000000036670
  OS Version:	6.2.9200.2.0.0.256.48
  Locale ID:	1033
  Additional Information 1:	eeb7
  Additional Information 2:	eeb7cc32fd45a110a6acb02051b26443
  Additional Information 3:	b92b
  Additional Information 4:	b92bfdb899905c3c3ad9fd84a02dd3ad
Comment 4 Michael Natterer 2013-02-26 22:27:17 UTC
I can't reproduce any of this in 2.8.4 or git master. Can you give us a
stack trace of the crash on linux?
Comment 5 catlover2 2013-02-27 18:28:20 UTC
(In reply to comment #4)
> I can't reproduce any of this in 2.8.4 or git master. Can you give us a
> stack trace of the crash on linux?

Thread 1 (Thread 0x7ffff7f998c0 (LWP 27818))

  • #0 __strcmp_sse2
    from /usr/lib/libc.so.6
  • #1 gimp_text_buffer_get_font_tag
    at gimptextbuffer.c line 856
  • #2 gimp_text_style_editor_list_tags
    at gimptextstyleeditor.c line 592
  • #3 gimp_text_style_editor_color_changed
    at gimptextstyleeditor.c line 748

Comment 6 Michael Natterer 2013-02-27 23:23:43 UTC
Thanks, it obviously crashes in gimp_text_buffer_get_font_tag()
because gimp_text_style_editor_list_tags() passes it the NULL font
it got from gimp_context_get_font_name(). I was under the impression
this got fixed with bug #689523.

Do you have fonts there at all, apart from the default font? If yes,
what font do you use?
Comment 7 catlover2 2013-02-28 06:59:40 UTC
(In reply to comment #6)
> Thanks, it obviously crashes in gimp_text_buffer_get_font_tag()
> because gimp_text_style_editor_list_tags() passes it the NULL font
> it got from gimp_context_get_font_name(). I was under the impression
> this got fixed with bug #689523.
> 
> Do you have fonts there at all, apart from the default font? If yes,
> what font do you use?

I am using the default "Arial" font.
Comment 8 gandalf3 2013-02-28 07:03:29 UTC
Created attachment 237579 [details]
output of gimp --verbose on ubuntu 12.04
Comment 9 gandalf3 2013-02-28 07:06:17 UTC
reproducible on Ubuntu 12.04 using 2.8.4 from this ppa:

https://launchpad.net/~otto-kesselgulasch/+archive/gimp
Comment 10 Nils Philippsen 2013-03-15 11:52:42 UTC
I can reproduce the crash with gimp-2.8.4-1.fc18 from Fedora 18 -- just type in a bunch of text, make bold, italicize, under-strike, strike through and change size of some overlapping regions of text, then try to change the color of the whole.

With current git master (b941986bbb655aa88574f5f28c3ca92a65d09de5) I don't get a crash but the UI hangs and I get a bunch of warnings:

(gimp-2.9:30538): GLib-GObject-WARNING **: cannot register existing type `GimpColorWheel'

(gimp-2.9:30538): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed

(gimp-2.9:30538): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed

(gimp-2.9:30538): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_WIDGET (widget)' failed

(gimp-2.9:30538): Gtk-CRITICAL **: IA__gtk_widget_show: assertion `GTK_IS_WIDGET (widget)' failed

(gimp-2.9:30538): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(gimp-2.9:30538): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
Comment 11 Nils Philippsen 2013-03-15 11:57:14 UTC
Not sure if it helps, but here's a BT of all threads when attaching gdb to the running/hanging gimp git master process:

(gdb) thread apply all bt

Thread 1 (Thread 0x7f844a1d7980 (LWP 30538))

  • #0 pthread_cond_wait
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S line 165
  • #1 g_cond_wait
    at gthread-posix.c line 748
  • #2 g_once_init_enter
    at gthread.c line 682
  • #3 gimp_color_wheel_get_type
    at ../../modules/gimpcolorwheel.c line 118
  • #4 colorsel_wheel_set_color
    at ../../modules/color-selector-wheel.c line 138
  • #5 gimp_color_selector_set_color
    at ../../libgimpwidgets/gimpcolorselector.c line 230
  • #6 gimp_color_selector_new
    at ../../libgimpwidgets/gimpcolorselector.c line 150
  • #7 gimp_color_notebook_add_page
    at ../../libgimpwidgets/gimpcolornotebook.c line 380
  • #8 gimp_color_notebook_init
    at ../../libgimpwidgets/gimpcolornotebook.c line 172
  • #9 g_type_create_instance
    at gtype.c line 1890
  • #10 g_object_constructor
    at gobject.c line 1854
  • #11 g_object_newv
    at gobject.c line 1637
  • #12 g_object_new
    at gobject.c line 1547
  • #13 gimp_color_selector_new
    at ../../libgimpwidgets/gimpcolorselector.c line 148
  • #14 gimp_color_selection_init
    at ../../libgimpwidgets/gimpcolorselection.c line 189
  • #15 g_type_create_instance
    at gtype.c line 1890
  • #16 g_object_constructor
    at gobject.c line 1854
  • #17 g_object_newv
    at gobject.c line 1637
  • #18 g_object_new
    at gobject.c line 1547
  • #19 gimp_color_selection_new
    at ../../libgimpwidgets/gimpcolorselection.c line 364
  • #20 gimp_color_dialog_init
    at ../../../app/widgets/gimpcolordialog.c line 128
  • #21 g_type_create_instance
    at gtype.c line 1890
  • #22 g_object_constructor
    at gobject.c line 1854
  • #23 g_object_newv
    at gobject.c line 1718
  • #24 g_object_new_valist
    at gobject.c line 1835
  • #25 g_object_new
    at gobject.c line 1550
  • #26 gimp_color_dialog_new
    at ../../../app/widgets/gimpcolordialog.c line 270
  • #27 gimp_color_panel_clicked
    at ../../../app/widgets/gimpcolorpanel.c line 164
  • #28 _g_closure_invoke_va
    at gclosure.c line 840
  • #29 g_signal_emit_valist
    at gsignal.c line 3211
  • #30 g_signal_emit
    at gsignal.c line 3356
  • #31 gtk_real_button_released
    from /lib64/libgtk-x11-2.0.so.0
  • #32 g_closure_invoke
    at gclosure.c line 777
  • #33 signal_emit_unlocked_R
    at gsignal.c line 3481
  • #34 g_signal_emit_valist
    at gsignal.c line 3300
  • #35 g_signal_emit
    at gsignal.c line 3356
  • #36 gtk_button_button_release
    from /lib64/libgtk-x11-2.0.so.0
  • #37 _gtk_marshal_BOOLEAN__BOXED
    from /lib64/libgtk-x11-2.0.so.0
  • #38 g_closure_invoke
    at gclosure.c line 777
  • #39 signal_emit_unlocked_R
    at gsignal.c line 3589
  • #40 g_signal_emit_valist
    at gsignal.c line 3310
  • #41 g_signal_emit
    at gsignal.c line 3356
  • #42 gtk_widget_event_internal
    from /lib64/libgtk-x11-2.0.so.0
  • #43 gtk_propagate_event
    from /lib64/libgtk-x11-2.0.so.0
  • #44 gtk_main_do_event
    from /lib64/libgtk-x11-2.0.so.0
  • #45 gdk_event_dispatch
    from /lib64/libgdk-x11-2.0.so.0
  • #46 g_main_dispatch
    at gmain.c line 2715
  • #47 g_main_context_dispatch
    at gmain.c line 3219
  • #48 g_main_context_iterate
    at gmain.c line 3290
  • #49 g_main_loop_run
    at gmain.c line 3484
  • #50 app_run
    at ../../app/app.c line 256
  • #51 main
    at ../../app/main.c line 438

Comment 12 Nils Philippsen 2013-03-15 12:47:56 UTC
Just for the record, now I can't get it to crash anymore. A strange bug indeed.
Comment 13 Massimo 2013-04-21 10:21:54 UTC
Created attachment 242074 [details] [review]
proposed patch

If there is no objection I'll push the attached patch.

To reproduce:

Change the color of a text selection including
characters with different fonts.
Comment 14 Michael Natterer 2013-04-21 15:48:05 UTC
"characters with different fonts" -> that's it, but please wait a minute,
I'm looking into something here.
Comment 15 Michael Natterer 2013-04-21 15:56:41 UTC
An enhanced patch, also fixes the bug. Pushed to master and gimp-2-8:

commit 839734463a96392ad1e2ce26c9c29a8d2fdf1b6e
Author: Michael Natterer <mitch@gimp.org>
Date:   Sun Apr 21 17:51:08 2013 +0200

    Bug 694417 - GIMP Segmentation Faults (Segfault, Crash) after Changing Color...
    
    Don't pass a NULL pointer to gimp_text_buffer_get_font_tag() because
    it is dereferenced in a call to strcmp().
    
    gimp_context_get_font_name() returns NULL when the selected text
    includes spans with different fonts. Add the same special handling for
    spans with inconsistent sizes too, and add comments that we should
    have the same for the color.
    
    Original patch from Massimo Valentini.
    (cherry picked from commit 804313bbecf92e099952ef0b9e12824d57100ccd)

 app/widgets/gimptextstyleeditor.c |   50 +++++++++++++++++++++++++++++++------------------
 1 file changed, 32 insertions(+), 18 deletions(-)
Comment 16 Michael Natterer 2013-05-11 18:40:34 UTC
*** Bug 700046 has been marked as a duplicate of this bug. ***
Comment 17 Michael Natterer 2013-05-11 18:42:12 UTC
*** Bug 699851 has been marked as a duplicate of this bug. ***
Comment 18 Michael Natterer 2013-05-12 13:50:30 UTC
*** Bug 700172 has been marked as a duplicate of this bug. ***
Comment 19 Michael Natterer 2013-05-12 22:16:29 UTC
*** Bug 700204 has been marked as a duplicate of this bug. ***
Comment 20 Michael Schumacher 2013-05-13 07:47:24 UTC
*** Bug 700209 has been marked as a duplicate of this bug. ***
Comment 21 Moltres_rider 2013-05-13 12:46:22 UTC
popular bug... so many duplicates lol
Comment 22 Michael Natterer 2013-06-03 20:32:57 UTC
*** Bug 701559 has been marked as a duplicate of this bug. ***
Comment 23 Michael Schumacher 2013-06-21 21:43:30 UTC
*** Bug 702834 has been marked as a duplicate of this bug. ***
Comment 24 Michael Schumacher 2013-11-02 22:58:07 UTC
*** Bug 711312 has been marked as a duplicate of this bug. ***
Comment 25 Michael Natterer 2015-04-03 17:44:26 UTC
*** Bug 724274 has been marked as a duplicate of this bug. ***