[Xastir] PNG snapshot problem

Chris Hare, KD5WIM kd5wim at comcast.net
Sat Oct 11 22:47:51 EDT 2003


Well, not quite.

convert is happy -
I can convert JPG to PNG
I can convert PNG to XPM
I can convert from XPM to PNG

I have one snapshot actually created late last night, but each time I
turn on PNG snapshots, xastir crashes.

Here is my .xastir/tmp directory 
[chare at zeta .xastir]$ cd tmp
[chare at zeta tmp]$ ls -l
total 6868
-rw-rw-rw-    1 chare    chare       47712 Oct 10 22:51 map.gif
-rw-rw-rw-    1 chare    chare      594786 Oct 11 15:18 map.jpg
-rw-rw-r--    1 chare    chare     3278037 Oct 11 21:35 map.png
-rw-rw-r--    1 chare    chare     2497884 Oct 11 21:37 map.xpm
-rw-rw-rw-    1 chare    chare      585867 Oct 10 23:58 snapshot.png
[chare at zeta tmp]$

On the XPM files created by convert, the last line is a 

};

So, I am not sure what the problem is.  Is there some form of logging I
can enable?

On Sat, 2003-10-11 at 21:19, Curt Mills, WE7U wrote:
> On 11 Oct 2003, Chris Hare, KD5WIM wrote:
> 
> > I just downloaded the October 10 snapshot and compiled it.  But I am
> > having the same problem as with the Oct 1 version.  When I run xastir
> > and turn on PNG snapshots, I get the following error when xastir aborts:
> 
> The error you showed was fairly generic X11 stuff, which doesn't tell
> us why Xastir died.
> 
> I suspect that your ImageMagick setup may be flawed.  I would try
> using the "convert" command from the command line to verify that you
> can convert from an XPM file to a PNG file, and also verify that an
> XPM snapshot file was created in the ~/.xastir/tmp directory.  If
> the file exists there, you've got an XPM format snapshot of the
> Xastir drawing area.
> 
> Another problem that you can have, which doesn't appear to kill
> Xastir, but nevertheless is a problem, is that the "convert" command
> will die when it tries to convert an XPM file, where the XPM file
> last line is not just
> 
> };
> 
> On some of my systems, those two characters get appended to the last
> image line instead, and then ImageMagick doesn't recognize it as a
> valid XPM file.  "xv" handles it just fine.  Adding a linefeed ahead
> of those characters makes ImageMagick happy as well.
> 
> Curt, WE7U.				archer at eskimo.com
> http://www.eskimo.com/~archer
>   Lotto:  A tax on people who are bad at math. - unknown
> Windows:  Microsoft's tax on computer illiterates. - WE7U.
> The world DOES revolve around me:  I picked the coordinate system!"
> 



More information about the Xastir mailing list