Skip Menu |

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 76313
Status: resolved
Priority: 40/
Queue: Imager

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.89
Fixed in: (no value)



Subject: t10ft2.t exits
t10ft2.t simply exits without printing any error. Windows XP SP3 Russian 32-bit. perl 5.14.2. Problem is in this line: ok(Imager::Font::FT2::i_ft2_text($ttraw,$backgr,100,150,NC(0, 128, 0),200.0,50, 'MAW',0,1, 0, 0), "drew rotated MAW"); tested version 0.87-0.89. -- Alexandr Ciornii, http://chorny.net
Subject: Re: [rt.cpan.org #76313] t10ft2.t exits
Date: Thu, 5 Apr 2012 09:51:45 +1000
To: Alexandr Ciornii via RT <bug-Imager [...] rt.cpan.org>
From: Tony Cook <tony [...] develop-help.com>
On Wed, Apr 04, 2012 at 07:33:47PM -0400, Alexandr Ciornii via RT wrote: Show quoted text
> t10ft2.t simply exits without printing any error. > Windows XP SP3 Russian 32-bit. perl 5.14.2. > Problem is in this line: > ok(Imager::Font::FT2::i_ft2_text($ttraw,$backgr,100,150,NC(0, 128, > 0),200.0,50, 'MAW',0,1, 0, 0), "drew rotated MAW"); > > tested version 0.87-0.89.
I can't reproduce this with Strawberry perl 5.14.2 32-bit. Could you please send me the contents of FT2/testout/t38ft2font.log after such a failed run? The output of: cd FT2 dmake test TEST_VERBOSE=1 may also be useful. Thanks, Tony
On Wed Apr 04 19:51:56 2012, tony@develop-help.com wrote: Show quoted text
> Could you please send me the contents of FT2/testout/t38ft2font.log > after such a failed run?
attached Show quoted text
> The output of: > > cd FT2 > dmake test TEST_VERBOSE=1 > > may also be useful.
t/t10ft2.t .. 1..193 ok 1 - ft2 should be in %formats ok 2 - loaded raw font #bbox 0 -9 265 41 0 30 265 5 ok 3 - i_ft2_bbox() returns 8 values ok 4 - drawn to channel ok 5 - saved image ok 6 - drew MAW Dubious, test returned 5 (wstat 1280, 0x500) Failed 187/193 subtests Test Summary Report ------------------- t/t10ft2.t (Wstat: 1280 Tests: 6 Failed: 0) Non-zero exit status: 5 Parse errors: Bad plan. You planned 193 tests but ran 6. -- Alexandr Ciornii, http://chorny.net
Subject: t38ft2font.log
[2012/04/05 03:23:30] log.c:41 0: Imager - log started (level = 1) [2012/04/05 03:23:30] Imager.xs:151 1: Imager 0.89 starting [2012/04/05 03:23:30] image.c:111 1: ICL_new_internal(r 255,g 0,b 0,a 0) [2012/04/05 03:23:30] io.c:247 1: mymalloc(size 4) -> 003FDF48 [2012/04/05 03:23:30] image.c:118 1: (003FDF48) <- ICL_new_internal [2012/04/05 03:23:30] img8.c:103 1: IIM_new(x 200, y 70, ch 3) [2012/04/05 03:23:30] img8.c:192 1: i_img_empty_ch(*im 00000000, x 200, y 70, ch 3) [2012/04/05 03:23:30] io.c:247 1: mymalloc(size 148) -> 009E0D10 [2012/04/05 03:23:30] io.c:247 1: mymalloc(size 42000) -> 00F65AD0 [2012/04/05 03:23:30] img8.c:227 1: (009E0D10) <- i_img_empty_ch [2012/04/05 03:23:30] img8.c:107 1: (009E0D10) <- IIM_new [2012/04/05 03:23:30] freetyp2.c:142 1: i_ft2_new(name 003F5A94, index 0) [2012/04/05 03:23:30] io.c:247 1: mymalloc(size 136) -> 009E0698 [2012/04/05 03:23:30] freetyp2.c:345 1: i_ft2_bbox(handle 009E0698, cheight 50.000000, cwidth 0.000000, text 00EC071C, len 5, bbox 0022F98C) [2012/04/05 03:23:30] freetyp2.c:419 1: bbox=> negw=0 glob_desc=-9 pos_wid=265 glob_asc=41 desc=0 asc=30 adv_width=265 rightb=5 [2012/04/05 03:23:30] freetyp2.c:802 1: i_ft2_cp(handle 009E0698, im 009E0D10, tx 5, ty 50, channel 1, cheight 50.000000, cwidth 50.000000, text 00EC085C, len 5, ...) [2012/04/05 03:23:30] img8.c:103 1: IIM_new(x 261, y 31, ch 1) [2012/04/05 03:23:30] img8.c:192 1: i_img_empty_ch(*im 00000000, x 261, y 31, ch 1) [2012/04/05 03:23:30] io.c:247 1: mymalloc(size 148) -> 00F77EA8 [2012/04/05 03:23:30] io.c:247 1: mymalloc(size 8091) -> 00F77F48 [2012/04/05 03:23:30] img8.c:227 1: (00F77EA8) <- i_img_empty_ch [2012/04/05 03:23:30] img8.c:107 1: (00F77EA8) <- IIM_new [2012/04/05 03:23:30] freetyp2.c:661 1: i_ft2_text(handle 009E0698, im 00F77EA8, tx 0, ty 30, cl 0022F8FC, cheight 50.000000, cwidth 50.000000, text 00EC085C, len 1, align 1, aa 4000) [2012/04/05 03:23:30] freetyp2.c:345 1: i_ft2_bbox(handle 009E0698, cheight 50.000000, cwidth 50.000000, text 00EC085C, len 5, bbox 0022F840) [2012/04/05 03:23:30] freetyp2.c:419 1: bbox=> negw=0 glob_desc=-9 pos_wid=265 glob_asc=41 desc=0 asc=30 adv_width=265 rightb=5 [2012/04/05 03:23:30] io.c:247 1: mymalloc(size 32) -> 00F76E18 [2012/04/05 03:23:30] io.c:247 1: mymalloc(size 1060) -> 00F774C8 [2012/04/05 03:23:30] io.c:258 1: myfree(p 00F774C8) [2012/04/05 03:23:30] io.c:258 1: myfree(p 00F76E18) [2012/04/05 03:23:30] image.c:272 1: i_img_destroy(im 00F77EA8) [2012/04/05 03:23:30] image.c:246 1: i_img_exorcise(im* 00F77EA8) [2012/04/05 03:23:30] io.c:258 1: myfree(p 00F77F48) [2012/04/05 03:23:30] io.c:258 1: myfree(p 00F77EA8) [2012/04/05 03:23:30] iolayer.c:249 1: io_new_fd(fd 5) [2012/04/05 03:23:30] io.c:247 1: mymalloc(size 72) -> 00F50D50 [2012/04/05 03:23:30] iolayer.c:260 1: (00F50D50) <- io_new_fd [2012/04/05 03:23:30] pnm.c:776 1: i_writeppm(im 009E0D10, ig 00F50D50) [2012/04/05 03:23:30] io.c:247 1: mymalloc(size 8192) -> 00F77F48 [2012/04/05 03:23:30] image.c:139 1: ICL_set_internal(cl* 003FDF48,r 200,g 200,b 200,a 0) [2012/04/05 03:23:30] image.c:147 1: (003FDF48) <- ICL_set_internal [2012/04/05 03:23:30] img8.c:103 1: IIM_new(x 500, y 300, ch 3) [2012/04/05 03:23:30] img8.c:192 1: i_img_empty_ch(*im 00000000, x 500, y 300, ch 3) [2012/04/05 03:23:30] io.c:247 1: mymalloc(size 148) -> 00F77EA8 [2012/04/05 03:23:30] io.c:247 1: mymalloc(size 450000) -> 00F7A008 [2012/04/05 03:23:30] img8.c:227 1: (00F77EA8) <- i_img_empty_ch [2012/04/05 03:23:30] img8.c:107 1: (00F77EA8) <- IIM_new [2012/04/05 03:23:30] image.c:111 1: ICL_new_internal(r 255,g 64,b 64,a 255) [2012/04/05 03:23:30] io.c:247 1: mymalloc(size 4) -> 00F2CE78 [2012/04/05 03:23:30] image.c:118 1: (00F2CE78) <- ICL_new_internal [2012/04/05 03:23:30] freetyp2.c:661 1: i_ft2_text(handle 009E0698, im 00F77EA8, tx 100, ty 150, cl 00F2CE78, cheight 200.000000, cwidth 50.000000, text 00EC0CAC, len 1, align 1, aa 2291460) [2012/04/05 03:23:30] freetyp2.c:345 1: i_ft2_bbox(handle 009E0698, cheight 200.000000, cwidth 50.000000, text 00EC0CAC, len 3, bbox 0022F8E0) [2012/04/05 03:23:30] freetyp2.c:419 1: bbox=> negw=0 glob_desc=-34 pos_wid=159 glob_asc=163 desc=0 asc=117 adv_width=159 rightb=5 [2012/04/05 03:23:30] io.c:247 1: mymalloc(size 32) -> 00FE7E88 [2012/04/05 03:23:30] io.c:247 1: mymalloc(size 636) -> 00F77768 [2012/04/05 03:23:30] io.c:258 1: myfree(p 00F77768) [2012/04/05 03:23:30] io.c:258 1: myfree(p 00FE7E88) [2012/04/05 03:23:30] image.c:201 1: ICL_DESTROY(cl* 00F2CE78) [2012/04/05 03:23:30] io.c:258 1: myfree(p 00F2CE78) [2012/04/05 03:23:30] image.c:111 1: ICL_new_internal(r 0,g 128,b 0,a 255) [2012/04/05 03:23:30] io.c:247 1: mymalloc(size 4) -> 00F2CE78 [2012/04/05 03:23:30] image.c:118 1: (00F2CE78) <- ICL_new_internal [2012/04/05 03:23:30] freetyp2.c:661 1: i_ft2_text(handle 009E0698, im 00F77EA8, tx 100, ty 150, cl 00F2CE78, cheight 200.000000, cwidth 50.000000, text 00EC0E5C, len 0, align 1, aa 2291460) [2012/04/05 03:23:30] freetyp2.c:345 1: i_ft2_bbox(handle 009E0698, cheight 200.000000, cwidth 50.000000, text 00EC0E5C, len 3, bbox 0022F8E0) [2012/04/05 03:23:30] freetyp2.c:419 1: bbox=> negw=0 glob_desc=-34 pos_wid=156 glob_asc=163 desc=0 asc=116 adv_width=156 rightb=5 [2012/04/05 03:23:30] io.c:247 1: mymalloc(size 32) -> 00FE7E88
On Wed Apr 04 20:26:06 2012, CHORNY wrote: Show quoted text
> On Wed Apr 04 19:51:56 2012, tony@develop-help.com wrote: >
> > Could you please send me the contents of FT2/testout/t38ft2font.log > > after such a failed run?
> > attached
Unfortunately it's not telling me a whole lot. I tried downloading the most recent strawberry perl 5.14.2.1 32-bit and that tested Imager successfully. Are you running in a command-prompt with SetErrorMode() set to discard errors? I suspect you're running into a general protection fault (GPF, or SIGSEGV in Unix terms) which Windows isn't producing a popup. If this is the case, I'll need a gdb backtrace of the failure (or another debugger if you can make it work). If it isn't, I have no clue why it would be exiting. You may want to double check that that libraries being built with match the libraries you expect - if it's picking up an old set of headers but using newer libraries, it may cause a GPF. Tony