Re: Trouble with gimp_text_get_extents_fontname and gimp_text_fontname

2000-10-10 Thread Tom Rathborne

On Tue, Oct 10, 2000 at 11:12:28AM +1100, Darren R. C. KELLY wrote:
 [using gimp-1.0.4-3 ]

Yow! Old!

I'm also having trouble with gimp-perl and text; I am trying to render
text through freetype or gdyntext and they keep segfaulting. I have
tracked the segfault down to this line in gimp-freetype: (line 187)
  strncpy (vals.font_file,   param[4].data.d_string, BUF_SIZE);
This is a safe operation because vals.font_file is allocated as a
char[BUF_SIZE]. Also, if I replace this line with something that prints
out param[4].data.d_string, it segfaults there. Obviously there is
something wrong with the params being passed in, but I can't figure
out where.

It seems fine under script-fu, and the code for gimp-freetype looks
pretty clean, so I suspect a problem in the PDB/Gimp-Perl interface.

Anyways I've attached a short script which demonstrates the failure
so if anyone has any insight into it I'd like to hear it.

Cheers,

Tom

-- 
--   Tom Rathborne [EMAIL PROTECTED] http://www.aceldama.com/~tomr/
--  "It's Like A Warzone, Deep Inside Of Me / When My Mind Becomes My Enemy"
-- -- Praga Khan, "My Mind Is My Enemy"

 text-test.pl


Trouble with gimp_text_get_extents_fontname and gimp_text_fontname

2000-10-09 Thread Darren R. C. KELLY

[using gimp-1.0.4-3 ]

Dear Gimp-developer,

I have a Gimp-perl script for generating rollie buttons that used to work but
now fails,
presumably because of the following message I receive on starting Gimp:

 1: wire_read: unexpected EOF (plug-in crashed?)
 2: overwriting Gimp::Lib::gimp_text_get_extents_fontname (1,1)
 3: overwriting Gimp::Lib::gimp_text_fontname (1,1)
 4: overwriting Gimp::Lib::gimp_text_get_extents_fontname (1,1)
 5: overwriting Gimp::Lib::gimp_text_fontname (1,1)  wire_read: unexpected EOF
(plug-in crashed?)

(my linenumbers)

Line 1: no idea what it is but I don't think it is relevant.

Lines 2-5: gimp_text_get_extents_fontname and gimp_text_get_extents_fontname
are the routines where my plugin _now_ crashes. "Now" means I have successfully
used the script a few weeks back and have not changed it since. This begs the
question "what has changed". In any case it seems these scripts are being
corrupted 
on startup.

Thankfull for any advice,

Darren Kelly



Re: Trouble with gimp_text_get_extents_fontname and gimp_text_fontname

2000-10-09 Thread Seth Burgess

Darren,

Could you send me the script?

Thanks,
Seth Burgess
[EMAIL PROTECTED]

--- "Darren R. C. KELLY" [EMAIL PROTECTED] wrote:
 [using gimp-1.0.4-3 ]
 
 Dear Gimp-developer,
 
 I have a Gimp-perl script for generating rollie
 buttons that used to work but
 now fails,
 presumably because of the following message I
 receive on starting Gimp:
 
  1: wire_read: unexpected EOF (plug-in crashed?)
  2: overwriting
 Gimp::Lib::gimp_text_get_extents_fontname (1,1)
  3: overwriting Gimp::Lib::gimp_text_fontname (1,1)
  4: overwriting
 Gimp::Lib::gimp_text_get_extents_fontname (1,1)
  5: overwriting Gimp::Lib::gimp_text_fontname (1,1) 
 wire_read: unexpected EOF
 (plug-in crashed?)
 
 (my linenumbers)
 
 Line 1: no idea what it is but I don't think it is
 relevant.
 
 Lines 2-5: gimp_text_get_extents_fontname and
 gimp_text_get_extents_fontname
 are the routines where my plugin _now_ crashes.
 "Now" means I have successfully
 used the script a few weeks back and have not
 changed it since. This begs the
 question "what has changed". In any case it seems
 these scripts are being
 corrupted 
 on startup.
 
 Thankfull for any advice,
 
 Darren Kelly


__
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/