Page 1 of 1

Bus Error when trying to display ppm files

Posted: 2009-08-24T11:58:12-07:00
by drcoopa
Hi!

I get a Bus Error every time I try to display any ppm file. I just downloaded the MacOSX binary and I'm wondering if I'm missing a library (or two). I have no problem with other image files such as png files.

Thanks for any help!

Re: Bus Error when trying to display ppm files

Posted: 2009-08-24T12:27:04-07:00
by fmw42
How are you creating the NetPBM image?

I am on Mac OSX Tiger, which came with NetPBM. I can use IM to convert some format such as png to NetPBM formats. Then I can display that image.

convert rose: rose.ppm
display rose.ppm

works fine

But one has to load the X11 environment to use the IM display. The X11 environment comes with the Mac but is not always installed by default. You may have to download it from your Mac Install CD and install it. Or get it from the internet at Apples site and install it.

Re: Bus Error when trying to display ppm files

Posted: 2009-08-24T13:18:53-07:00
by drcoopa
The images are being created by a different program, not IM. I can't convert them either, i.e, IM doesn't want to open the file. A more specific error that I have is:
convert: unable to open image `isoelliptest1x1.00176.ppm0:': No such file or directory @ blob.c/OpenBlob/2489.
convert: missing an image filename `test.ppm' @ convert.c/ConvertImageCommand/2772.

I do have X11 environment up & running on my machine (and display does successfully call X11 for other image types).

Re: Bus Error when trying to display ppm files

Posted: 2009-08-24T13:32:40-07:00
by fmw42
looks like your other program is not creating it correctly. try posting a link to one of your images. have you tried to display it in any other display program?

why is there a 0 on the end of ppm? as in ppm0?

does

convert -list format

show

PPM* PNM rw+ Portable pixmap format (color)


Try

convert rose: rose.ppm
display rose.ppm


does that work?

Re: Bus Error when trying to display ppm files

Posted: 2009-08-24T14:00:44-07:00
by drcoopa
Yes, I'm able to open it with GraphicConverter, but I'd prefer to use IM.

********does

convert -list format

show

PPM* PNM rw+ Portable pixmap format (color)

Yep, it does!

And when I try
convert logo: logo.ppm
identify logo.ppm
Bus error

or
convert logo:logo.ppm
display logo.ppm

I get the Bus error.

Thanks!

Re: Bus Error when trying to display ppm files

Posted: 2009-08-24T15:02:43-07:00
by fmw42
Sorry I probably cannot help any further. Perhaps Magick will read this and can suggest something.

but what version of IM are you using? and how was it installed? from binary, from source, using FINK or MacPorts or manually?

Re: Bus Error when trying to display ppm files

Posted: 2009-08-24T15:05:40-07:00
by drcoopa
Thanks for your attempts!

I installed using the binary distribution (which makes me wonder that if I'm missing some libraries) version - ImageMagick-universal-apple-darwin9.7.0.tar.gz

Re: Bus Error when trying to display ppm files

Posted: 2009-08-24T15:13:37-07:00
by fmw42
I installed my IM manually from source along with all the delegates that I wanted. But I don't think you need to install NetPBM as IM should know about it.

But it is possible that the binary you have was not created correctly with regard to this????

Have you tried installing from source?

what version of IM are you using?

convert -version

can you display or identify any other image format?

Re: Bus Error when trying to display ppm files

Posted: 2009-08-24T15:20:37-07:00
by drcoopa
version - Version: ImageMagick 6.4.1 06/19/08 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC


Yeah, maybe going to the source is the next best bet... fingers crossed!

Re: Bus Error when trying to display ppm files

Posted: 2009-08-24T15:42:52-07:00
by fmw42
IM is at 6.5.5.0 so you are about 140 versions old. perhaps there was a bug in that binary. you could try the latest binary or install from source. But with source, you will need to install delegates for jpg, tiff, png, etc

Re: Bus Error when trying to display ppm files

Posted: 2009-08-24T15:44:16-07:00
by drcoopa
huh, that is the binary that they have on their website. I'll try the source! Thanks again for your help!

Re: Bus Error when trying to display ppm files

Posted: 2009-08-24T15:51:26-07:00
by fmw42
The mac binary should be in sync with whatever the unix binary version number is at the top of the page.

http://www.imagemagick.org/script/binary-releases.php

I would find it hard to believe that the mac binary is as old as 6.4.1 when the unix version is 6.5.5