Bus Error when trying to display ppm files
Bus Error when trying to display ppm files
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!
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!
- 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
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.
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
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).
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).
- 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
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?
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
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!
********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!
- 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
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?
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
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
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
- 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
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?
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
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!
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC
Yeah, maybe going to the source is the next best bet... fingers crossed!
- 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
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
huh, that is the binary that they have on their website. I'll try the source! Thanks again for your help!
- 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
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
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