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 557061 - Alpha to Logo
Alpha to Logo
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Script-Fu
2.6.1
Other All
: Normal minor
: 2.6
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2008-10-20 11:25 UTC by Terry Anderson
Modified: 2009-05-21 16:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix floating selection test (431 bytes, patch)
2009-05-19 14:13 UTC, Eric Lamarque
committed Details | Review

Description Terry Anderson 2008-10-20 11:25:54 UTC
Please describe the problem:
Cool Metal error messages
1.Plug-In 'Cool Metal' left image undo in inconsistent state, closing open undo groups.

2.Error while executing script-fu-cool-metal-logo-alpha:

Error: Procedure execution of gimp-floating-sel-to-layer failed on invalid input arguments: Cannot convert this layer to a normal layer because it is not a floating selection. 


Steps to reproduce:
1. New - enter text
2. goto alpha to logo & select Cool metal
3. click on OK


Actual results:
2 error messages above

Expected results:


Does this happen every time?
YES

Other information:
I am using Ubuntu 8.04 AMD64. Previous version never had a problem before the 2.6 upgrade when it was XTNS - Logos etc.
Comment 1 Michael Schumacher 2008-10-20 15:15:00 UTC
On Windows, using GIMP 2.6.1, this does even crash GIMP (and not only script-fu).
Comment 2 Terry Anderson 2008-10-20 16:49:55 UTC
The text entry line remains greyed out.  Previously it was possible to use the Alpha to Logo as a stand alone.  Now everything is greyed unless you start New - Text, and then the text entry lines are not active.?
Comment 3 Michael Schumacher 2008-10-23 15:10:03 UTC
No idea what your second comment is supposed to tell us.
Comment 4 Tor Lillqvist 2008-10-23 16:20:48 UTC
The crash on Windows comes from trying to printf NULL as %s:

  • #0 strlen
    from C:\WINDOWS\system32\msvcrt.dll
  • #1 _g_gnulib_vasnprintf
    at vasnprintf.c line 581
  • #2 _g_gnulib_vasprintf
    at printf.c line 144
  • #3 g_vasprintf
    at gprintf.c line 309
  • #4 g_strdup_vprintf
    at gstrfuncs.c line 218
  • #5 g_logv
    at gmessages.c line 472
  • #6 g_log
    at gmessages.c line 517
  • #7 gimp_plug_in_cleanup_image
    at gimpplugin-cleanup.c line 284
  • #8 gimp_plug_in_cleanup
    at gimpplugin-cleanup.c line 208
  • #9 gimp_plug_in_proc_frame_dispose
    at gimppluginprocframe.c line 140
  • #10 gimp_plug_in_proc_frame_unref
    at gimppluginprocframe.c line 164
  • #11 gimp_plug_in_manager_call_run_temp
    at gimppluginmanager-call.c line 347
  • #7 gimp_plug_in_cleanup_image
    at gimpplugin-cleanup.c line 284
279
280       if (cleanup->undo_group_count != image->group_count)
281         {
282           GimpProcedure *proc = proc_frame->procedure;
283
284           g_message ("Plug-In '%s' left image undo in inconsistent state, "
285                      "closing open undo groups.",
286                      gimp_plug_in_procedure_get_label (GIMP_PLUG_IN_PROCEDURE (proc)));
287
288           while (image->pushing_undo_group != GIMP_UNDO_GROUP_NONE &&
(gdb) p proc
$1 = (GimpProcedure *) 0x0

Comment 5 Michael Natterer 2008-10-23 17:01:11 UTC
Gah, my fault. I added code that sets proc_frame->procedure to NULL in my
last patch to this file. will fix.
Comment 6 Michael Natterer 2008-10-23 17:14:54 UTC
Fixed the crash on windows but not the actual bug:

2008-10-23  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/gimppluginprocframe.c
	(gimp_plug_in_proc_frame_dispose): set proc_frame->procedure to
	NULL *after* calling gimp_plug_in_cleanup(). Fixes the crash on
	windows in bug #557061 (but not the bug).

Comment 7 Rob 2008-12-20 07:49:04 UTC
Hi, I'm new here. I can confirm that this bug still exists in 2.6.3 (and 2.6.2).  The error shows up when choosing Cool Metal from the Filter/Alpha-to-Logo path after using the Text tool, as initially pointed out by Terry above, and the same error messages will appear.  But Cool Metal does work if chosen from the other path, File/Create/Logo.  This is using Gimp 2.6 under Windows XP/Home SP3, Mobile  Pentium 4. 

For more info, I wrote some posts in http://gimptalk.com/forum/gimp-2-6-3-released-t35771.html
Comment 8 Eric Lamarque 2009-05-19 14:13:04 UTC
Created attachment 134939 [details] [review]
Fix floating selection test
Comment 9 Sven Neumann 2009-05-20 23:32:24 UTC
This should be committed to both branches before the next 2.6 release.
Comment 10 Sven Neumann 2009-05-21 16:52:43 UTC
Thanks for the fix, I have pushed this to both branches:

commit 35ac02e66d177db4094f655ba26bf40a0f01bf43
Author: Sven Neumann <sven@gimp.org>
Date:   Thu May 21 18:49:51 2009 +0200

    Bug 557061 – Alpha to Logo
    
    Applied patch from Eric Lamarque fixing an error in the Cool Metal Logo
    script.

 plug-ins/script-fu/scripts/coolmetal-logo.scm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)