GTK3: Inkscape 0.48+devel crash on close dialog

Bug #1152169 reported by Marek
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
High
Unassigned

Bug Description

Inkscape 0.48+devel r (Feb 26 2013) crash on close dialog;

hardly-ever, but sometimes survives (like on empty document maybe?);
several dialogs are more prone to this:

Doc. Preferences
LPE
Text and Font
...

I also noticed, that inkscape (gtk3) both exports its menu bar to some instance of globalmenu, but also preserves it in the main window.

here is dump:

*** glibc detected *** inkscape: double free or corruption (out): 0x0b9fec50 ***
======= Backtrace: =========
/lib/libc.so.6(+0x72a9f)[0xb5d10a9f]
/usr/lib/libglib-2.0.so.0(g_free+0x20)[0xb60a3ef0]
======= Memory map: ========
08048000-0894d000 r-xp 00000000 08:07 1533053 /usr/bin/inkscape
0894d000-0894e000 r--p 00905000 08:07 1533053 /usr/bin/inkscape
0894e000-0895a000 rw-p 00906000 08:07 1533053 /usr/bin/inkscape
0895a000-08960000 rw-p 00000000 00:00 0
09a8d000-0d3b2000 rw-p 00000000 00:00 0 [heap]
a4e48000-a4f04000 r--p 00000000 08:07 539087 /usr/share/fonts/libertine-ttf/LinLibertine_DR.ttf
a4f04000-a5018000 r--p 00000000 08:06 395024 /home/marek/.fonts/l/lucida_grande.ttf
a5018000-a507c000 r--p 00000000 08:07 538232 /usr/share/fonts/corefonts/times.ttf
a507c000-a5095000 r--p 00000000 08:06 395106 /home/marek/.fonts/m/MyriadPro-BoldIt.otf
a5095000-a50ad000 r--p 00000000 08:06 395103 /home/marek/.fonts/m/MyriadPro-Bold.otf
a50ad000-a50c6000 r--p 00000000 08:06 395113 /home/marek/.fonts/m/MyriadPro-It.otf
a50c6000-a50d9000 r--p 00000000 08:07 536684 /usr/share/fonts/cantarell/Cantarell-Regular.otf
a5218000-a5272000 r--p 00000000 08:07 539145 /usr/share/fonts/corefonts/arial.ttf
a5272000-a52f1000 r--p 00000000 08:06 400863 /home/marek/.fonts/s/segoeui.ttf
a52f1000-a5300000 r--p 00000000 08:07 553689 /usr/share/fonts/inconsolata/Inconsolata.otf
a5300000-a5321000 rw-p 00000000 00:00 0
a5321000-a5400000 ---p 00000000 00:00 0
a5426000-a5454000 r--p 00000000 08:07 538222 /usr/share/fonts/corefonts/verdana.ttf
a54a3000-a54b5000 r--p 00000000 08:06 395219 /home/marek/.fonts/v/Verah___.ttf
a54b5000-a54cc000 r--p 00000000 08:06 395224 /home/marek/.fonts/z/ZapfHumnstEU.ttf
a54e6000-a54e7000 rw-p 00000000 00:00 0
a54e7000-a54ff000 r--p 00000000 08:06 395122 /home/marek/.fonts/m/MyriadPro-Regular.otf
a54ff000-a5500000 ---p 00000000 00:00 0
a5500000-a5d00000 rw-p 00000000 00:00 0 [stack:16672]
a5d00000-a5d21000 rw-p 00000000 00:00 0
a5d21000-a5e00000 ---p 00000000 00:00 0
a5e0f000-a5e27000 r--p 00000000 08:06 395122 /home/marek/.fonts/m/MyriadPro-Regular.otf
a5e27000-a5e2d000 r-xp 00000000 08:07 58975 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
a5e2d000-a5e2e000 r--p 00005000 08:07 58975 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
a5e2e000-a5e2f000 rw-p 00006000 08:07 58975 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
a5e2f000-a5e32000 r--p 00000000 08:07 277401 /usr/share/locale/en_GB/LC_MESSAGES/gdl-3.mo
a5e32000-a5e34000 r-xp 00000000 08:07 1492849 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
a5e34000-a5e35000 r--p 00001000 08:07 1492849 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
a5e35000-a5e36000 rw-p 00002000 08:07 1492849 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
a5e36000-a5e37000 r--s 00000000 08:06 394731 /home/marek/.fontconfig/0c88b5b02b38e27bcd9017e1dda4e4e4-le32d4.cache-3
a5e37000-a5e38000 r--s 00000000 08:06 394850 /home/marek/.fontconfig/b27789666fedaf72b11843ea20144990-le32d4.cache-3
a5e38000-a5e3b000 r--s 00000000 08:06 394906 /home/marek/.fontconfig/fd9f82043c0fb335234fd0dd857f5467-le32d4.cache-3
a5e3b000-a5e40000 r--s 00000000 08:06 400869 /home/marek/.fontconfig/1bd91543cab30b23438c4a50facdf4a9-le32d4.cache-3
a5e40000-a5e41000 r--s 00000000 08:06 394886 /home/marek/.fontconfig/db75b731b896e3709fc44dd304e43a11-le32d4.cache-3
a5e41000-a5e46000 r--s 00000000 08:06 394470 /home/marek/.fontconfig/c1fcac639255c1a89f26f245a61ca4cf-le32d4.cache-3
a5e46000-a5e6d000 r--s 00000000 08:06 394838 /home/marek/.fontconfig/ee0b5e7698db8d3fa7a5a7f5119b55bc-le32d4.cache-3
a5e6d000-a5e71000 r--s 00000000 08:06 394734 /home/marek/.fontconfig/d0feefafbec9c4e4fa897b134e869bd0-le32d4.cache-3
a5e71000-a5e76000 r--s 00000000 08:06 394817 /home/marek/.fontconfig/8ba1d1c660ff8648aacfe9a0e62062a4-le32d4.cache-3
a5e76000-a5e7b000 r--s 00000000 08:06 394861 /home/marek/.fontconfig/baee40bbd02ab5d76889d40b79866b8b-le32d4.cache-3
a5e7b000-a5e88000 r--s 00000000 08:06 394855 /home/marek/.fontconfig/b571340eb7dc99f1a085964c4a565e09-le32d4.cache-3
a5e88000-a5e89000 r--s 00000000 08:06 394786 /home/marek/.fontconfig/57ce48e9972470ec3481c128b40c9d93-le32d4.cache-3
a5e89000-a5e8a000 r--s 00000000 08:06 396713 /home/marek/.fontconfig/aa3ebe2180278e205d6ddfb11358acfd-le32d4.cache-3
a5e8a000-a5e8b000 r--s 00000000 08:06 394830 /home/marek/.fontconfig/94332443606d77da594138e37dbb44f8-le32d4.cache-3
a5e8b000-a5e8e000 r--s 00000000 08:07 1340687 /var/cache/fontconfig/5dac49e74d8a3622eea6c94592a6c625-le32d4.cache-3
a5e8e000-a5e96000 r--s 00000000 08:07 1340686 /var/cache/fontconfig/131ab5cc1583381c4f7ce0194912c56d-le32d4.cache-3
a5e96000-a5e9e000 r--s 00000000 08:07 1340685 /var/cache/fontconfig/09b40e4f8da9c4741b07af6b75bc847f-le32d4.cache-3
a5e9e000-a5e9f000 r--s 00000000 08:07 1340684 /var/cache/fontconfig/5e318dc2e4e71bebff515e4a5204b2f1-le32d4.cache-3
a5e9f000-a5ea1000 r--s 00000000 08:07 1340683 /var/cache/fontconfig/40f7f4bc2faa755b481ebf63ee9fb0d8-le32d4.cache-3
a5ea1000-a5ea5000 r--s 00000000 08:07 1340682 /var/cache/fontconfig/ce0d969af2176489fbefad4fe7aa6451-le32d4.cache-3
a5ea5000-a5ead000 r--s 00000000 08:07 1340680 /var/cache/fontconfig/d722f191fc173fb8c13c8ea6f285de40-le32d4.cache-3
a5ead000-a5eb0000 r--s 00000000 08:07 1340679 /var/cache/fontconfig/a595ca43be94766bbfe429f07fba82d0-le32d4.cache-3
a5eb0000-a5eb1000 r--s 00000000 08:07 1340678 /var/cache/fontconfig/30c5f4a3fa007ce7189acb0c5244d5e0-le32d4.cache-3
a5eb1000-a5eb6000 r--s 00000000 08:07 1340677 /var/cache/fontconfig/d5535e916fa8f7f4faf39b7f47ca7f64-le32d4.cache-3
a5eb6000-a5ebc000 r--s 00000000 08:07 1340674 /var/cache/fontconfig/1dce2cb908b447e938fc03acd9b47fcf-le32d4.cache-3
a5ebc000-a5ec3000 r--s 00000000 08:07 1339988 /var/cache/fontconfig/12b26b760a24f8b4feb03ad48a333a72-le32d4.cache-3
a5ec3000-a5ec4000 ---p 00000000 00:00 0
a5ec4000-a66c4000 rw-p 00000000 00:00 0
a66c4000-a66dc000 r-xp 00000000 08:07 42621 /usr/lib/libdbusmenu-glib.so.4.0.12
a66dc000-a66dd000 r--p 00018000 08:07 42621 /usr/lib/libdbusmenu-glib.so.4.0.12
a66dd000-a66de000 rw-p 00019000 08:07 42621 /usr/lib/libdbusmenu-glib.so.4.0.12
a66de000-a66ee000 r-xp 00000000 08:07 42429 /usr/lib/libdbusmenu-gtk3.so.4.0.12
a66ee000-a66ef000 r--p 00010000 08:07 42429 /usr/lib/libdbusmenu-gtk3.so.4.0.12
a66ef000-a66f0000 rw-p 00011000 08:07 42429 /usr/lib/libdbusmenu-gtk3.so.4.0.12
a66f0000-a6723000 r-xp 00000000 08:07 1204749 /usr/lib/libcroco-0.6.so.3.0.1
a6723000-a6725000 r--p 00032000 08:07 1204749 /usr/lib/libcroco-0.6.so.3.0.1
a6725000-a6726000 rw-p 00034000 08:07 1204749 /usr/lib/libcroco-0.6.so.3.0.1
Emergency save activated!

Emergency save document locations:
  /home/marek/New document 1.2013_03_07_14_24_41.0.svg
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.

Tags: crash gtk3
Revision history for this message
Marek (abulak) wrote :
Download full text (16.7 KiB)

todays version

gdb output:

*** glibc detected *** /usr/bin/inkscape: double free or corruption (out): 0x0b6604f8 ***
======= Backtrace: =========
/lib/libc.so.6(+0x72a9f)[0xb65b8a9f]
/usr/lib/libglib-2.0.so.0(g_free+0x20)[0xb694bef0]
======= Memory map: ========
08048000-0894f000 r-xp 00000000 08:07 1568749 /usr/bin/inkscape
0894f000-08950000 r--p 00907000 08:07 1568749 /usr/bin/inkscape
08950000-0895c000 rw-p 00908000 08:07 1568749 /usr/bin/inkscape
0895c000-0cdc2000 rw-p 00000000 00:00 0 [heap]
a4c49000-a4d6a000 rw-p 00000000 00:00 0
a4dfb000-a52a5000 rw-p 00000000 00:00 0
a5431000-a55bf000 rw-p 00000000 00:00 0
a589a000-a58fe000 r--p 00000000 08:07 538232 /usr/share/fonts/corefonts/times.ttf
a58fe000-a5958000 r--p 00000000 08:07 539145 /usr/share/fonts/corefonts/arial.ttf
a5958000-a598b000 r--p 00000000 08:07 553854 /usr/share/fonts/ubuntu-font-family/UbuntuMono-R.ttf
a59a6000-a5aba000 r--p 00000000 08:06 395024 /home/marek/.fonts/l/lucida_grande.ttf
a5aba000-a5ad2000 r--p 00000000 08:06 395122 /home/marek/.fonts/m/MyriadPro-Regular.otf
a5ae9000-a5b00000 r--p 00000000 08:06 395224 /home/marek/.fonts/z/ZapfHumnstEU.ttf
a5b00000-a5b21000 rw-p 00000000 00:00 0
a5b21000-a5c00000 ---p 00000000 00:00 0
a5c15000-a5c6b000 r--p 00000000 08:07 553861 /usr/share/fonts/ubuntu-font-family/Ubuntu-C.ttf
a5c7b000-a5c8d000 r--p 00000000 08:06 395219 /home/marek/.fonts/v/Verah___.ttf
a5c8d000-a5ca5000 r--p 00000000 08:06 395122 /home/marek/.fonts/m/MyriadPro-Regular.otf
a5ca5000-a5cff000 r--p 00000000 08:07 539145 /usr/share/fonts/corefonts/arial.ttf
a5cff000-a5d00000 ---p 00000000 00:00 0
a5d00000-a6500000 rw-p 00000000 00:00 0 [stack:22513]
a6500000-a6521000 rw-p 00000000 00:00 0
a6521000-a6600000 ---p 00000000 00:00 0
a6604000-a6605000 r--p 00000000 08:07 178400 /usr/share/locale/en/LC_MESSAGES/gtk30.mo
a6605000-a660b000 r-xp 00000000 08:07 58975 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
a660b000-a660c000 r--p 00005000 08:07 58975 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
a660c000-a660d000 rw-p 00006000 08:07 58975 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
a662d000-a665b000 r--p 00000000 08:07 538222 /usr/share/fonts/corefonts/verdana.ttf
a665b000-a6660000 r--p 00000000 08:07 553639 /usr/share/fonts/exljbris-free/Tallys_15.otf
a6664000-a6667000 r--p 00000000 08:07 277401 /usr/share/locale/en_GB/LC_MESSAGES/gdl-3.mo
a6667000-a6669000 r-xp 00000000 08:07 1492849 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
a6669000-a666a000 r--p 00001000 08:07 1492849 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
a666a000-a666b000 rw-p 00002000 08:07 1492849 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
a666b000-a666c000 r--s 00000000 08:06 394731 /home/marek/.fontconfig/0c88b5b02b38e27bcd9017e1dda4e4e4-le32d4.cache-3
a666c000-a666d000 r--s 00000000 08:06 394850 /home/marek/.fontconfig/b27789666fedaf72b11843ea20144990-le32d4.cache-3
a666d000-a6670000 r--s 00000000 08:06 394906 /home/marek/.fontconfig/fd9f82043c0fb335234fd0dd857f5467-le32d4.cache-3
a6670000-a6675000 r--s 00000000 08:0...

Marek (abulak)
description: updated
Revision history for this message
su_v (suv-lp) wrote :

1) Please provide basic information about your OS/distro and desktop used.

2) Could you please clarify:
> Inkscape 0.48+devel r (Feb 26 2013)

This looks like you installed e.g. the PPA for Inskcape trunk (which is known to not include the bzr revision number in the version string).

> I also noticed, that inkscape (gtk3) both exports (…)

This contracts the assumption that you observe the crashes with the official trunk PPA - Inkscape is still a GTK2 application, and only specially configured builds use GTK3 (experimental, work-in-progress). The PPA builds of trunk are done with the default configuration and thus use GTK2.

Could you please share details about whether you compiled inkscape trunk yourself, using the experimental configure option '--enable-gtk3-experimental', or whether you installed the PPA from <https://launchpad.net/~inkscape.dev/+archive/trunk>?

3) missing debug symbols
AFAICT the backtrace doesn't provide any information where the crash actually occurs - can you get hold of the debug symbols, or compile with '-g'?

Changed in inkscape:
status: New → Incomplete
importance: Undecided → High
su_v (suv-lp)
tags: added: ui
Revision history for this message
Marek (abulak) wrote :

Gentoo (mostly stable),

Compiled from source, bzr checkout, using my live-ebuild;

Does Inkscape export code revision somewhere?

inkscape --version prints exactly:
Inkscape 0.48+devel r (some_date)

I'm compiling it just now with -ggdb and without -fomit-frame-pointer CFLAG, i forgot to change them, sorry for this ;-)

Hope the backtrace will be better now;

attached is log from the configure phase;
I've spotted bzr snapshot, how to enable it?

/revision 12176 from config log/

cheers

su_v (suv-lp)
summary: - Inkscape 0.48+devel crash on close dialog
+ GTK3: Inkscape 0.48+devel crash on close dialog
tags: added: gtk3
removed: ui
Changed in inkscape:
status: Incomplete → New
Revision history for this message
Marek (abulak) wrote :

for me it suffices to

start inkscape
Ctrl+Alt+T (Font&Text Tool)
close dialog
watch inkscape crash.

Revision history for this message
su_v (suv-lp) wrote :

Testing r12175 and r12181 on OS X 10.7.4:
- not reproduced with builds using these dependency versions:
GTK+/X11 3.4.4, gtkmm3 3.4.0, glib2 2.32.4, glibmm 2.32.1, gdl3 3.4.2
- reproduced with builds using these dependency versions:
GTK+/Quartz 3.6.4, gtkmm3 3.6.0, glib2 2.34.3, glibmm 2.34.1, gdl3 3.6.2

Steps:
1) launch inkscape (default new prefs)
2) 'Shift+Ctrl+A' (opens 'Align & Distribute', docked)
3) 'Ctrl+W' to close the dialog

-> crash (backtrace from r12181 attached)

Changed in inkscape:
status: New → Confirmed
Revision history for this message
Marek (abulak) wrote :

I also noticed that closing a dialog with x button doesn't (always) make inkscape crash.

My libraries:
gtk+-3.4.4
gtkmm-3.4.0
glib-2.32.4
glibmm-2.32.1
gdl-3.6.2

After downgrading gdl to 3.4 I can not reproduce crash neither with Align&Distribute nor with Text Preferences.

It seems that gdl-3.6 is the main suspect

Revision history for this message
su_v (suv-lp) wrote :

Still present with inkscape trunk r12841 using these versions of the dependencies:
 GTK+/Quartz 3.10.6, gtkmm3 3.10.1, glib2 2.38.2, glibmm 2.38.1, gdl3 3.10.0

Changed in inkscape:
status: Confirmed → Triaged
Revision history for this message
Marek (abulak) wrote :

Gentoo removed gdl-3.4 from its package tree,

I'm experiencing the same crash with gdl-3.6.2 and gdl-3.8.1

other (possibly relevant) installed packages:

gtk-3.8.7
gtkmm-3.8.1
glib-2.36.4
glibmm-2.36.2

Revision history for this message
su_v (suv-lp) wrote :

AFAICT related to (or duplicate of):
- Bug #1090936 “GTK3: Crash on closing Text and Font dialog using "Close" button”
  <https://bugs.launchpad.net/inkscape/+bug/1090936>

Revision history for this message
su_v (suv-lp) wrote :

Crash no longer reproduced with lp:inkscape/experimental (GTK3 build) after r13484 (fix for bug #1090936);
(tested with GTK+ 3.12.2 and GDL 3.12 on OS X 10.7.5)

Linking as duplicate to
- Bug #1090936 “GTK3: Crash on closing Text and Font dialog using "Close" button”
  <https://bugs.launchpad.net/inkscape/experimental/+bug/1090936>

Please add a comment here (bug #1152169) and revert the duplicate status if you disagree and think the two reports are tracking different, independent issues.

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.