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 470304 - Crash on startup after migrating gimp 2.2 prefs?
Crash on startup after migrating gimp 2.2 prefs?
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: General
2.4.x
Other All
: Normal normal
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2007-08-25 22:12 UTC by Ari Pollak
Modified: 2008-10-30 19:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Tarball of old .gimp* directories (214.15 KB, application/x-compressed-tar)
2007-09-16 00:10 UTC, Ari Pollak
Details
Stacktrace of crashed gimp (85.94 KB, text/plain)
2007-09-23 18:52 UTC, Thomas
Details
$HOME/.gimp-2.4/devicerc that causes gimp to crash (1.90 KB, text/plain)
2007-09-23 18:58 UTC, Thomas
Details

Description Ari Pollak 2007-08-25 22:12:54 UTC
From Debian bug report http://bugs.debian.org/439509.


Gimp doesn't launch, but crashes with a segmentation fault instead. If I remove ~/.gimp*, gimp starts again, but not just if I remove ~/.gimp-2.3 or ~/.gimp-2.4.

Error message:
(script-fu:15308): LibGimpBase-WARNING **: script-fu: gimp_wire_read():
error

Here is the output of GDB:
Starting program: /usr/bin/gimp 
[Thread debugging using libthread_db enabled]
[New Thread -1219848528 (LWP 15314)]
[New Thread -1221854320 (LWP 15317)]
[New Thread -1230247024 (LWP 15318)]

Program received signal SIGSEGV, Segmentation fault.

Thread NaN (LWP 15314)

  • #0 gimp_tool_options_editor_get_title
    at #/home/yusei/gimptmp/gimp-2.4.0~rc1/./app/widgets/gimptooloptionseditor.c line 249
  • #1 gimp_dockable_expose_event
    at /home/yusei/gimptmp/gimp-2.4.0~rc1/./app/widgets/gimpdockable.c line 459
  • #2 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #3 ??
  • #4 ??
  • #5 ??
  • #6 ??
    from /usr/lib/libgobject-2.0.so.0
  • #7 ??
  • #8 ??
  • #9 ??
  • #10 ??
    from /usr/lib/libgobject-2.0.so.0
  • #11 ??
  • #12 ??
  • #13 ??
  • #14 ??
  • #15 ??
  • #16 ??
    at #/home/yusei/gimptmp/gimp-2.4.0~rc1/./app/widgets/gimpdockable.c line 968
  • #17 g_closure_unref
    from /usr/lib/libgobject-2.0.so.0

Comment 1 Raphaël Quinet 2007-08-30 16:48:13 UTC
It would be easier to debug this if we could get a copy of the ~/.gimp-2.2/ settings from the original reporter (as a compressed tarball).

Looking at the stack trace, it is likely that tool_info->blurb is NULL or invalid, which would mean that some file in ~/.gimp-2.2/tool-options/ cannot be parsed correctly or contains suspicious stuff.
Comment 2 Ari Pollak 2007-08-30 20:34:44 UTC
Unfortunately, the submitter says he deleted the original directory, so now he can't get it back.
Comment 3 Raphaël Quinet 2007-08-31 07:44:18 UTC
Hmmm...  That will be very difficult to analyze, then.  I will keep this bug report open for a while, in case the submitter finds a backup copy or anything else that could be useful for us.  There is a small chance that the bug could be found and fixed based on the information provided here, but this is unlikely given that the stack trace does not contain all debug symbols and we do not have the input files.
Comment 4 Ari Pollak 2007-09-16 00:09:27 UTC
The submitter says he has been able to reproduce the problem on another computer. Attached is a tarball of all of his old .gimp* directories.
Comment 5 Ari Pollak 2007-09-16 00:10:42 UTC
Created attachment 95657 [details]
Tarball of old .gimp* directories
Comment 6 Thomas 2007-09-23 18:52:08 UTC
Created attachment 96069 [details]
Stacktrace of crashed gimp

backtrace of crash (with presumably the same problem but unpruned .gimp-2.4 dir - please see debian bug report if that matters to you)
Comment 7 Thomas 2007-09-23 18:57:23 UTC
Here is another instance of (what Ari believes to be) the same bug.
This is reported as
  http://bugs.debian.org/443712
I have attached the backtrace here (see above).

In the meantime I have found out that the problem persists even if I prune my ~/.gimp-2.4 to contain only the devicerc. I'll attach the devicerc below.
I'm not sure whether this is important, but I did try uning a graphics tablet a while ago, it was not attached when I encountered this bug.

Please to not hesitate to ask if I can be of assistance in tracking down this bug.
Comment 8 Thomas 2007-09-23 18:58:43 UTC
Created attachment 96070 [details]
$HOME/.gimp-2.4/devicerc that causes gimp to crash
Comment 9 Sven Neumann 2007-09-23 19:10:18 UTC
I have committed a workaround for the crash for 2.4.0-rc3. Should be investigated further:

2007-09-23  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimptooloptionseditor.c
	(gimp_tool_options_editor_get_title): avoid the crash reported in
	bug #470304.
Comment 10 Thomas 2007-09-23 19:14:16 UTC
Actually, the gimp (prior to Sven's patch) crashes if the following section is present in devicerc

(GimpDeviceInfo "Core Pointer"
    (tool "gimp-magnify-tool")
    (brush "Circle (03)")
    (pattern "Pine")
    (gradient "FG to BG (RGB)")
    (mode screen)
    (axes 2 x y)
    (keys 0))

it does not crash anymore when I rename the device to "Core Pointerx" or somesuch.
Comment 11 Michael Natterer 2007-09-23 19:18:58 UTC
This is the reason for the crash:

2006-02-20  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpmagnifytool.c: renamed to Zoom tool.
Comment 12 Sven Neumann 2007-09-24 09:17:16 UTC
Well, the reason for the crash is that the code didn't deal gracefully with unknown tool identifiers in the devicerc file. This could always happen, not only because we renamed a tool. And it must not crash the application.
Comment 13 Sven Neumann 2007-09-26 18:34:25 UTC
I think we can safely close this bug as FIXED now. I had a look at the code and it seems that other places should not be affected.