gimps crashes in file open dialog

Bug #554877 reported by Xolotl Loki
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gimp (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: gimp

Gimp crashes every time I try to open a file on Karmic. I installed gimp-dbg, so hopefully ubuntu-bug was able to get good data from the backtrace. If not, I can add a manual backtrace and core.

I'm not entirely sure when this started, since I seldom need to run gimp. I know I have run gimp successfully after upgrading Jaunty to Karmic.

What's interesting is that the problem only appears after running gimp once. If I create a new user, ssh -Y newuser@localhost, then I can run gimp fine, and the file open dialog works normally. However, if I run gimp again, it crashes.

I then tried the same experiment again, and created a new user. This time I repeatedly rsync'd the new user's home directory to /attic: before logging in, after logging in, after running gimp successfully, and after it crashed. I noticed the creation of ~/.gimp-2.6, ~/.thumbnails, etc. So I decided to remove ~/.gimp-2.6, and was able to run gimp again. However, after one successful run, gimp always crashed on the second run, without even having to <ctrl>-O.

So I tried the same thing with my normal user. Removing ~/.gimp-2.6 allows gimp to run normally once, but crashes on invocation every subsequent attempt, unless I keep removing the newly created ~/.gimp-2.6. Notice that this behavior is different; before removing ~/.gimp-2.6, I was able to start gimp, and it did not crash until I tried to open a file. After removing it once, I must remove it before running gimp, or else I don't even get the chance to try to open files.

ProblemType: Bug
Architecture: amd64
Date: Sat Apr 3 14:57:39 2010
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: gimp 2.6.7-1ubuntu1.1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-20.58-generic
SourcePackage: gimp
Uname: Linux 2.6.31-20-generic x86_64

Revision history for this message
Xolotl Loki (xoloki) wrote :
Revision history for this message
Xolotl Loki (xoloki) wrote :
Download full text (5.5 KiB)

It doesn't look like ubuntu-bug grabbed a backtrace or a core, so here they are:

Program terminated with signal 11, Segmentation fault.
#0 0x00007f563b0ecfea in graphite_PangoGlyphString () from /usr/lib/pango/1.6.0/modules/graphite/pango-graphite.so
(gdb) bt
#0 0x00007f563b0ecfea in graphite_PangoGlyphString () from /usr/lib/pango/1.6.0/modules/graphite/pango-graphite.so
#1 0x00007f5645b89d3a in pango_shape () from /usr/lib/libpango-1.0.so.0
#2 0x00007f5645b7d4bb in ?? () from /usr/lib/libpango-1.0.so.0
#3 0x00007f5645b7de31 in ?? () from /usr/lib/libpango-1.0.so.0
#4 0x00007f5645b7f955 in ?? () from /usr/lib/libpango-1.0.so.0
#5 0x00007f5645b808fc in ?? () from /usr/lib/libpango-1.0.so.0
#6 0x00007f5645b8112e in pango_layout_get_size () from /usr/lib/libpango-1.0.so.0
#7 0x00007f5646c58bfe in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#8 0x00007f5646c5e55d in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#9 0x00007f56444435ae in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#10 0x00007f564445829c in ?? () from /usr/lib/libgobject-2.0.so.0
#11 0x00007f5644459d39 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#12 0x00007f564445a0a4 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#13 0x00007f5646cd3d28 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#14 0x0000000000594fe9 in gimp_thumb_box_new (context=<value optimized out>) at /build/buildd/gimp-2.6.7/./app/widgets/gimpthumbbox.c:443
#15 0x0000000000568442 in gimp_file_dialog_add_preview (gimp=<value optimized out>, action=53105632, title=0x71fbea "Open Image",
    role=0x32b3700 "gimp-file-open", stock_id=0x716307 "gtk-open", help_id=0x721b14 "gimp-file-open")
    at /build/buildd/gimp-2.6.7/./app/widgets/gimpfiledialog.c:632
#16 gimp_file_dialog_new (gimp=<value optimized out>, action=53105632, title=0x71fbea "Open Image", role=0x32b3700 "gimp-file-open",
    stock_id=0x716307 "gtk-open", help_id=0x721b14 "gimp-file-open") at /build/buildd/gimp-2.6.7/./app/widgets/gimpfiledialog.c:379
#17 0x000000000049b02d in file_open_dialog_new (gimp=0x1aaa070) at /build/buildd/gimp-2.6.7/./app/dialogs/file-open-dialog.c:74
#18 0x0000000000556aa5 in gimp_dialog_factory_dialog_new_internal (factory=0x1f16d90, screen=<value optimized out>, context=0x1c50150,
    identifier=0x7221a0 "gimp-file-open-dialog", view_size=0, return_existing=0, present=0)
    at /build/buildd/gimp-2.6.7/./app/widgets/gimpdialogfactory.c:471
#19 0x0000000000557221 in gimp_dialog_factory_dialog_new (factory=0x1f16d90, screen=0x1a5ecf0, identifier=0x7221a0 "gimp-file-open-dialog",
    view_size=-1, present=0) at /build/buildd/gimp-2.6.7/./app/widgets/gimpdialogfactory.c:595
#20 0x0000000000482905 in file_open_dialog_show (gimp=0x1aaa070, parent=0x2746170, title=<value optimized out>, image=0x0, uri=0x0,
    open_as_layers=0) at /build/buildd/gimp-2.6.7/./app/actions/file-commands.c:473
#21 0x00007f56444435ae in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#22 0x00007f5644458983 in ?? () from /usr/lib/libgobject-2.0.so.0
#23 0x00007f5644459d39 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#24 0x00007f564445a283 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#25 0x0...

Read more...

Revision history for this message
Xolotl Loki (xoloki) wrote :
Download full text (5.2 KiB)

I thought about the backtrace, and wondered if some weird font was causing issues. So I removed some of the more exotic ttf fonts, and the problem went away. Notice how the font system complained until I removed the last two fonts, which makes me think this is a pango bug relating to not having a CIDSupplement for a particular font.

I'm going to leave the bug open, since pango shouldn't crash no matter what font I have installed, but it should probably be reclassified.

xoloki@xocotl:~/Desktop$ sudo apt-get remove ttf-devanagari-fonts ttf-kacst ttf-lao ttf-punjabi-fonts ttf-sazanami-gothic ttf-sazanami-mincho ttf-sil-andika ttf-sil-doulos ttf-unfonts-core ttf-wqy-zenhei
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  ttf-devanagari-fonts ttf-kacst ttf-lao ttf-punjabi-fonts ttf-sazanami-gothic ttf-sazanami-mincho ttf-sil-andika ttf-sil-doulos
  ttf-unfonts-core ttf-wqy-zenhei tuxtype
0 upgraded, 0 newly installed, 11 to remove and 0 not upgraded.
After this operation, 54.5MB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 450743 files and directories currently installed.)
Removing ttf-devanagari-fonts ...
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-devanagari-fonts
No CIDSupplement specified for Batang-Bold, defaulting to 0.
No CIDSupplement specified for ZenHei, defaulting to 0.
No CIDSupplement specified for Dotum-Regular, defaulting to 0.
No CIDSupplement specified for ZenHei-CNS, defaulting to 0.
No CIDSupplement specified for Batang-Regular, defaulting to 0.
No CIDSupplement specified for Dotum-Bold, defaulting to 0.
Removing ttf-kacst ...
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-kacst
No CIDSupplement specified for Batang-Bold, defaulting to 0.
No CIDSupplement specified for ZenHei, defaulting to 0.
No CIDSupplement specified for ZenHei-CNS, defaulting to 0.
No CIDSupplement specified for Batang-Regular, defaulting to 0.
No CIDSupplement specified for Dotum-Regular, defaulting to 0.
No CIDSupplement specified for Dotum-Bold, defaulting to 0.
Removing ttf-lao ...
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-lao
No CIDSupplement specified for Batang-Bold, defaulting to 0.
No CIDSupplement specified for ZenHei, defaulting to 0.
No CIDSupplement specified for ZenHei-CNS, defaulting to 0.
No CIDSupplement specified for Batang-Regular, defaulting to 0.
No CIDSupplement specified for Dotum-Regular, defaulting to 0.
No CIDSupplement specified for Dotum-Bold, defaulting to 0.
Removing ttf-punjabi-fonts ...
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-punjabi-fonts
No CIDSupplement specified for Dotum-Regular, defaulting to 0.
No CIDSupplement specified for ZenHei-CNS, defaulting to 0.
No CIDSupplement specified for ZenHei, defaulting to 0.
No CIDSupplement specified for Batang-Regular, defaulting to 0.
No CIDSupplement specified for Dotum-Bold, defaulting to 0.
No CIDSupplement specified for Batang-Bold, defaulting to 0.
Removing ttf-sazanami-gothic ...
Updating fontconfig cache for /usr/share/fonts/truetype/sazanami
No CIDSupplement specified for Dotum-Regula...

Read more...

Revision history for this message
Dmitry Diskin (diskin) wrote :

ttf-sil-andika ttf-sil-doulos crashed nautilus, metacity on 10.04. I installed qimo-games, and the fonts were installed with it, and after that I was unable to sign in to gnome or xfce. Strace nautilus showed that the last file open before segfault was ttf-sil-doulos, so I removed both and things restored.

Revision history for this message
Ted (tedks) wrote :

GIMP doesn't crash for me after installing ttf-sil-doulos. Could you post the steps to generate a crash?

Changed in gimp (Ubuntu):
status: New → Incomplete
Revision history for this message
Xolotl Loki (xoloki) wrote :

I filed the bug against Karmic, not Lucid. I just tried to reproduce it on Lucid, and now gimp runs fine with ttf-sil-doulos/ttf-sazanami-gothic installed. Presumably whatever bug I was seeing was fixed upstream in pango between Karmic and Lucid.

I'm running xubuntu, so I can't test Dmitri's report.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for gimp (Ubuntu) because there has been no activity for 60 days.]

Changed in gimp (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.