Gpaint will close itself after change font.

Bug #262131 reported by Alex Lin
This bug report is a duplicate of:  Bug #262889: gpaint crashed when user changes font. Edit Remove
6
Affects Status Importance Assigned to Milestone
gpaint (Debian)
Fix Released
Unknown
gpaint (Ubuntu)
New
Undecided
Unassigned

Bug Description

Reproduce Steps
1.Open Gpaint
2.Click fonts options ("Sans 12"), check its setting opened;
3.If click ok, gpaint will close itself.

Revision history for this message
Pete Goodall (pgoodall) wrote :

GPaint is not a supported application for Ubuntu Netbook Remix. This does not mean we won't fix this necessarily, but this will be low priority.

Changed in payson:
importance: Undecided → Low
Kevin Huang (wasikevin)
Changed in payson:
status: New → Confirmed
Revision history for this message
Torsten Spindler (tspindler) wrote :

Unsupported application.

Changed in payson:
importance: Low → Wishlist
Revision history for this message
Caroline Ford (secretlondon) wrote :

I'd no idea there were specific supported applications for netbook remix!

It's certainly a member of universe though and edubuntu.

Revision history for this message
Torsten Spindler (tspindler) wrote :

You are right, of course gpaint is supported through universe and edubuntu. Please ignore my last comment.

Revision history for this message
Caroline Ford (secretlondon) wrote :

Which version of gpaint is this? I can't reproduce on hardy.

Revision history for this message
Caroline Ford (secretlondon) wrote :

The debian bug says this is in intrepid. Intrepid has the same version of gpaint as hardy.

This is either an issue with a library change, or maybe certain locales.

Did the original submitter also submit to debian? It would be better to see if anyone could reproduce first, debian don't really want all Ubuntu bugs.

Revision history for this message
Caroline Ford (secretlondon) wrote :
Download full text (3.7 KiB)

From the debian bug:

Package: gpaint
Version: 0.3.3-1
Severity: normal
User: <email address hidden>
Usertags: origin-ubuntu intrepid

*** Please type your report below this line ***

Open gpaint and click the fonts selector and press OK will get segfault.

gdb trace log:

Starting program: /tmp/gpaint-0.3.3/src/gpaint-2
[Thread debugging using libthread_db enabled]
[New Thread 0xb7263910 (LWP 14858)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7263910 (LWP 14858)]
0x08062516 in text_attribute (tool=0x93d7cc0, attrib=GpaintFont,
    data=0x9481b68) at text.c:156
156 GtkWidget *widget = GTK_WIDGET(tool->canvas->drawing_area);
(gdb) bt
#0 0x08062516 in text_attribute (tool=0x93d7cc0, attrib=GpaintFont,
    data=0x9481b68) at text.c:156
#1 0xb7585074 in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#2 0xb7577923 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#3 0xb758ae9d in ?? () from /usr/lib/libgobject-2.0.so.0
#4 0x091d61e8 in ?? ()
#5 0x00000000 in ?? ()
(gdb) print tool->canvas
$1 = (gpaint_canvas *) 0x0
(gdb)

The tool->canvas is only set on tool_palette.c on_tool_select() at line 400:
    canvas_set_tool(canvas_lookup(GTK_WIDGET(tb->widget)), tb->tool);
Which means the users have to click the text-tool button at least once
to set the tool->canvas to avoid the crash.

Reference:
[1] https://bugs.launchpad.net/ubuntu/+source/gpaint/+bug/262889
[2] https://bugs.launchpad.net/ubuntu/+source/gpaint/+bug/262131

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=zh_TW.UTF-8, LC_CTYPE=zh_TW.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gpaint depends on:
ii libart-2.0-2 2.3.20-2 Library of functions for 2D
graphi
ii libatk1.0-0 1.22.0-1 The ATK accessibility toolkit
ii libc6 2.7-13 GNU C Library: Shared libraries
ii libcairo2 1.6.4-6 The Cairo 2D vector
graphics libra
ii libfontconfig1 2.6.0-1 generic font configuration
library
ii libfreetype6 2.3.7-2 FreeType 2 font engine,
shared lib
ii libglade2-0 1:2.6.2-1 library to load .glade
files at ru
ii libglib2.0-0 2.16.4-2 The GLib library of C routines
ii libgnomecanvas2-0 2.20.1.1-1 A powerful object-oriented
display
ii libgnomeprint2.2-0 2.18.4-1 The GNOME 2.2 print
architecture -
ii libgnomeprintui2.2-0 2.18.2-1 GNOME 2.2 print
architecture User
ii libgtk2.0-0 2.12.11-3 The GTK+ graphical user
interface
ii libpango1.0-0 1.20.5-1 Layout and rendering of
internatio
ii libpng12-0 1.2.27-1 PNG library - runtime
ii libx11-6 2:1.1.4-2 X11 client-side library
ii libxcursor1 1:1.1.9-1 X cursor management library
ii libxext6 2:1.0.4-1 X11 miscellaneous extension
librar
ii libxfixes3 1:4.0.3-2 X11 miscellaneou...

Read more...

Changed in gpaint:
status: Unknown → New
Changed in gpaint:
status: New → Fix Committed
Changed in gpaint:
status: Fix Committed → Fix Released
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.