Bus Error when trying to display ppm files

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
drcoopa

Bus Error when trying to display ppm files

Post 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!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Bus Error when trying to display ppm files

Post 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.
drcoopa

Re: Bus Error when trying to display ppm files

Post 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).
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Bus Error when trying to display ppm files

Post 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?
drcoopa

Re: Bus Error when trying to display ppm files

Post 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!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Bus Error when trying to display ppm files

Post 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?
drcoopa

Re: Bus Error when trying to display ppm files

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Bus Error when trying to display ppm files

Post 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?
drcoopa

Re: Bus Error when trying to display ppm files

Post 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!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Bus Error when trying to display ppm files

Post 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
drcoopa

Re: Bus Error when trying to display ppm files

Post by drcoopa »

huh, that is the binary that they have on their website. I'll try the source! Thanks again for your help!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Bus Error when trying to display ppm files

Post 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
Post Reply