[Xastir] Snapshot

James Ewen jewen at shaw.ca
Wed Jan 19 22:16:13 EST 2005


> Ok, you're trying to fetch online maps (over a slow link perhaps?)
> plus do snapshots.  Since those are all done in the same thread,
> there shouldn't be any timing problems here.

Yes, I am trying to get Toporama maps over a slow link. I am only seeing 
about 3 mb/s on my cable modem. I am getting timeouts trying to get the 
Toporama images. I'll have to reinstall them locally again. However, I don't 
think that's the source of the problem. I changed the map shown on the 
screen long before the snapshot would have been taken.

> About the only thing I can think of might be the colors?
> Color-depth?  It's possible that the XpmWriteFileFromPixmap() call
> is having problems either due to your X-Windows server color depth
> or your Windows color depth.  There are a couple of outstanding bugs
> on the buglist regarding colordepth.  One is a 24-bit bug, one a
> 32-bit bug.  I run in 16-bit myself (Linux).  Perhaps you could
> check your colordepths for both X11 and Windows and report back?

Windows colour depth was at 32 bpp... changing it to 16 bpp caused this 
error:

Warning:
    Name: File Tear-off
    Class: TransientShell
    /home/harold/x-devel/4.3/ports/lesstif/lesstif-0.93.94/lib/Xm-2.1/RowColumn.c(3538):_XmMenuFocus() 
 - XmMENU_FOCUS_RESTORE
    window is not viewable

Who's harold, and why would he have an account on my machine? 8)

I'm still seeing the same errors as originally seen at 32 bpp. Does Xastir 
dynamically change the colour depth of the screen as required?  Supposedly 
X11 inherits the colour depth of the Windows operating system. I have been 
unable to find a way to tell what X11 is using for a colour depth.

I don't think this is the real issue either. The png created when I am using 
only shapefiles has a colour depth of 24 bpp, with 20 colours used in the 
image. I took a snapshot of the screen with Paintshop Pro, while displaying 
the Toporama files and shapefiles. That image is still 24 bpp, but has 5629 
colours used.

Hmm, I managed to kill Xastir yet again. this time I had a map of southern 
BC and Washington/Idaho on screen using online maps. I tried to get a 
snaphot of that screen, and poof:

Map Refresh set to 720.
curl told us 28
curlerr is Operation timed out with 0 out of -1 bytes received
Xlib: unexpected async reply (sequence 0xc92494)!
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  67 (X_PolyRectangle)
  Resource id in failed request:  0x88854e
  Serial number of failed request:  13182101
  Current serial number in output stream:  13182100

Hee, hee, I'm getting good at killing things...

James
VE6SRV





More information about the Xastir mailing list