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 323778 - gimp_edit_stroke fails when run non-interactivly
gimp_edit_stroke fails when run non-interactivly
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: General
2.2.x
Other All
: High critical
: 2.2
Assigned To: GIMP Bugs
GIMP Bugs
: 324374 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-12-11 06:54 UTC by Bryan Livingston
Modified: 2008-01-15 13:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bryan Livingston 2005-12-11 06:54:22 UTC
Steps to reproduce:
Run the following from the command line:
gimp -i --batch "(script-fu-sota-chrome-logo -80 -47 0.75 \"fdsa\" 150 
\"RoostHeavy\" \"/usr/share/gimp/2.0/scripts/images/beavis.jpg\" '(0 0 0) '(0 
0 0))" "(gimp-quit 0)"

Stack trace:
(gimp:10357): Gimp-Paint-CRITICAL **: file gimppaintoptions.c: line 418 
(gimp_paint_options_new): assertion `GIMP_IS_PAINT_INFO (paint_info)' failed

(gimp:10357): Gimp-Core-CRITICAL **: file gimpcontext.c: line 1408 
(gimp_context_define_properties): assertion `GIMP_IS_CONTEXT (context)' failed

(gimp:10357): Gimp-Core-CRITICAL **: file gimpcontext.c: line 1326 
(gimp_context_set_parent): assertion `GIMP_IS_CONTEXT (context)' failed

(gimp:10357): GLib-GObject-CRITICAL **: file gobject.c: line 1579 
(g_object_unref): assertion `G_IS_OBJECT (object)' failed

(script-fu:10364): LibGimpBase-WARNING **: script-fu: wire_read(): error

(script-fu:10363): LibGimpBase-WARNING **: script-fu: wire_read(): error
Segmentation fault


Other information:
The sota chrome script of course runs fine when run interactivly, but seg-
faults gimp when run from the command line.  I'm fairly sure the crash happens 
in the gimp_edit_stoke call on line 141 of sota-chrome-logo.scm.

Havn't tested with 2.2.9 but I don't see anything in the change log that makes 
me think this might have been fixed.
Comment 1 Michael Natterer 2005-12-11 15:38:50 UTC
Fixed in both branches:

2005-12-11  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpstrokedesc.c (gimp_stroke_desc_new): fall back to
	the paintbrush if we can't get the paint method from the active
	tool (because there is no active tool). Fixes bug #323778.
Comment 2 Bryan Livingston 2005-12-11 17:45:39 UTC
You RULE!  My bug got fixed within 8 hours!
Comment 3 Michael Schumacher 2005-12-24 12:04:32 UTC
*** Bug 324374 has been marked as a duplicate of this bug. ***