9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] as long as we're on the subject of Sam.
@ 2001-12-07 21:39 David Gordon Hogan
  0 siblings, 0 replies; 3+ messages in thread
From: David Gordon Hogan @ 2001-12-07 21:39 UTC (permalink / raw)
  To: 9fans

> $2 = {type = 0, display = 0x8065530, resourceid = 32, serial = 49,
>   error_code = 2 '\002', request_code = 53 '5', minor_code = 0 '\000'}
>
> according to the X headers, 53 is a pixmap thing. but i'm not quite
> sure what to do from here. i am not an x guru.

What's error code 2?  Is it BadMatch?  (really libXg should print these
things properly).

My guess is that libXg is trying to allocate an 8-bit pixmap on
your 24-bit only display...



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] as long as we're on the subject of Sam.
@ 2001-12-07 22:17 erik quanstrom
  0 siblings, 0 replies; 3+ messages in thread
From: erik quanstrom @ 2001-12-07 22:17 UTC (permalink / raw)
  To: 9fans

2 maps to this text:

BadValue (integer parameter out of range for this operation)

i tried the quick-and-dirty approach of commenting out the
case allowing a depth of 0. that failed with a BadMatch
error.

----

> $2 = {type = 0, display = 0x8065530, resourceid = 32, serial = 49,
>   error_code = 2 '\002', request_code = 53 '5', minor_code = 0 '\000'}
>
> according to the X headers, 53 is a pixmap thing. but i'm not quite
> sure what to do from here. i am not an x guru.

What's error code 2?  Is it BadMatch?  (really libXg should print these
things properly).

My guess is that libXg is trying to allocate an 8-bit pixmap on
your 24-bit only display...


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [9fans] as long as we're on the subject of Sam.
@ 2001-12-07 19:05 erik quanstrom
  0 siblings, 0 replies; 3+ messages in thread
From: erik quanstrom @ 2001-12-07 19:05 UTC (permalink / raw)
  To: 9fans

has anybody else seen this problem with sam on unix:

with an exported display (or just running under Xnest)
sam starts up normally but
when you place the window with whatever window manager
you're using sam commits suicide with this error:

libg error: i/o error:

not terribly informative. wily doesn't have the same
problem. i did a little debugging on it but the error
message is bubbled up to libg from a callback from

(gdb) where
#0  ioerr (d=0x8065530, E=0xbfffefe0) at xtbinit.c:879
#1  0x400f4663 in _XError () from /usr/X11R6/lib/libX11.so.6
#2  0x400f2072 in _XEventsQueued () from /usr/X11R6/lib/libX11.so.6
#3  0x400e572a in XEventsQueued () from /usr/X11R6/lib/libX11.so.6
#4  0x4006ee68 in XtUnmanageChild () from /usr/X11R6/lib/libXt.so.6
#5  0x4006f7e8 in _XtWaitForSomething () from /usr/X11R6/lib/libXt.so.6
#6  0x400706b8 in XtAppProcessEvent () from /usr/X11R6/lib/libXt.so.6
#7  0x080569c8 in waitevent () at xtbinit.c:912
#8  0x08056445 in eread (keys=4294967295, e=0x805c340) at xtbinit.c:739
#9  0x0804c480 in waitforio () at io.c:74
#10 0x0804a2ef in main (argc=1, argv=0xbffffe54) at main.c:54
#11 0x401d95b0 in __libc_start_main () from /lib/libc.so.6

where E is an XErrorEvent* (my modification). gcc claims that E is:

$2 = {type = 0, display = 0x8065530, resourceid = 32, serial = 49,
  error_code = 2 '\002', request_code = 53 '5', minor_code = 0 '\000'}

according to the X headers, 53 is a pixmap thing. but i'm not quite
sure what to do from here. i am not an x guru.

oh, and:

name of display:    :1.0
version number:    11.0
vendor string:    Mandrake Linux (XFree86 4.1.0, patch level 17mdk)
vendor release number:    40100000
XFree86 version: 4.1.0
maximum request size:  4194300 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    2
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 255
focus:  window 0xa0000e, revert to PointerRoot
number of extensions:    22
[...]
screen #0:
  dimensions:    1024x768 pixels (346x260 millimeters)
  resolution:    75x75 dots per inch
  depths (2):    1, 24
  root window id:    0x25
  depth of root window:    24 planes
  number of colormaps:    minimum 1, maximum 1
  default colormap:    0x21
  default number of colormap cells:    256
  preallocated pixels:    black 0, white 16777215
  options:    backing-store NO, save-unders NO
  largest cursor:    32x32
  current input event mask:    0xd8000d
    KeyPressMask             ButtonPressMask          ButtonReleaseMask
    SubstructureNotifyMask   SubstructureRedirectMask PropertyChangeMask
    ColormapChangeMask
  number of visuals:    1
  default visual id:  0x20
  visual:
    visual id:    0x20
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits

erik



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-12-07 22:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-07 21:39 [9fans] as long as we're on the subject of Sam David Gordon Hogan
  -- strict thread matches above, loose matches on Subject: below --
2001-12-07 22:17 erik quanstrom
2001-12-07 19:05 erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).