| |
Re: Cant read TIFF file: core dump (fwd)
From: Neeraj - Khandelwal (04791@xyz.molar.is)
Date: Tue 22 Jan 2002 - 21:32:28 UTC
Next message: Arnar Mar Hrafnkelsson: "Re: Cant read TIFF file: core dump (fwd)"
Hi,
I have put up the tiff file on the site:
http://www.cs.tamu.edu/people/neerajk/test.tiff
And here are the contents of logfile.txt:
[2002/01/22 18:36:29] log.c:35 0: Imager - log started (level =
1)
[2002/01/22 18:36:29] iolayer.c:972 1: io_new_fd(fd 4)
[2002/01/22 18:36:29] io.c:235 1: mymalloc(size 52) -> 0x82b8d38
[2002/01/22 18:36:29] iolayer.c:980 1: (0x82b8d38) <- io_new_fd
[2002/01/22 18:36:29] iolayer.c:829 1: io_glue_commit_types(ig
0x82b8d38)
[2002/01/22 18:36:29] iolayer.c:830 1: io_glue_commit_types: source
type 3 (CBSEEK)
[2002/01/22 18:36:29] io.c:235 1: mymalloc(size 8) -> 0x82b8a30
[2002/01/22 18:36:29] tiff.c:89 1: i_readtiff_wiol(ig 0x82b8d38,
length -1)
--------
Thanks,
Neeraj.
On Tue, 22 Jan 2002, Arnar Mar Hrafnkelsson wrote:
>
>
> This script is ok (except the typo in the $string line). I suspect the
> TIFF file is odd in some way. You can add the line:
>
> Imager::init(log=>"logfile.txt");
>
> To have it log lowlevel activity to file, those help in debugging the
> problem. If the resulting log is not huge you can post it to the mailing
> list.
>
>
> It would be ideal if you could put the image somewhere on the web and we
> could fetch it from there but you can also send me the tiff file and I
> will put it up (if I don't see what the issue is right away).
>
> One thing about libtiff is that it can be set up in different ways (with
> or without jpeg compression for example). In addition to that some
> tiff is extremely varied in how it is used - you can even consider it more
> of a general 2d data format than image format.
>
> In anycase it should never crash and this should be considered a bug (if
> not in Imager then in libtiff).
>
> - Arnar
>
> --
>
>
>
>
>
>
> On Tue, 22 Jan 2002, Neeraj - Khandelwal wrote:
>
> >
> > Hi all,
> >
> > I am trying to read a tiff file in my perl script using the Imager's
> > read() method:
> >
> > ------
> > use Imager qw(:handy);
> > use strict;
> > use vars qw($i $fname $font @bbox $xs $ys $string $d $wx $shadowcolor
> > $logocolor $bgcolor);
> >
> > $string='(This is not a test');
> >
> > $i=Imager->new();
> > $i->read(file=>"0401110053.tiff", type=>'tiff') or die $i->errstr; # gets
> > type from name
> >
> >
> > -----
> >
> >
> > This is where the script crashes, giving a segmentation fault. I tried
> > attaching the tif file to this mail but the mail was rejected by the list
> > server probably due to oversize. The tiff file opens up nicely on
> > Windows systems and it does not seem to be corrupted. I am a newbie
> > with images and was also wondering if there are different types of tiff
> > formats some of which are not suppoted by Imager?
> >
> > Any help gratefully appreciated.
> >
> > Regards,
> > Neeraj.
> >
> >
> >
> >
> >
>
>
| |