Adrian Aichner <aichner(a)ecf.teradyne.com> writes:
> >>>>> "P" == P E Jareth Hein <jareth(a)camelot.co.jp> writes:
>
> P> This is indicative of something that isn't supposed to be able to
> P> happen. I'll look again at the code in question, but I thought I was
> P> pretty thourough last time... :-( Could you perhaps send me the
> P> output of 'xdpyinfo' so I can get a little info on your X server?
> I got this too in emacs-version "21.0 \"Finnish Landrace\" XEmacs
> Lucid".
>
> It may have well occured while I was viewing some JPEG images, but I
> can't be sure now.
Hi Jareth,
me too! :-)
I can reproduce it by starting XEmacs and then going to the default
Page of W3 (William Perry's page in Indiana). There is a JPEG which
causes this.
BTW: this is also solaris2.6
I put a breakpoint at object-x.c:199 and had a look at color_def and
cells[nearest] :
*color_def = {
pixel = 55U
red = 55512U
green = 53713U
blue = 50886U
flags = '\007'
pad = 'û'
}
cells[20] = {
pixel = 20U
red = 55512U
green = 53713U
blue = 50886U
flags = '\007'
pad = ')'
}
I have no idea why XAllocColor() fails, but it DOES happen :-)
If you'd like any further info, drop me a mail.
Gunnar
name of display: :0.0
version number: 11.0
vendor string: Sun Microsystems, Inc.
vendor release number: 3600
maximum request size: 262140 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, MSBFirst, 32
image byte order: MSBFirst
number of supported pixmap formats: 2
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
depth 8, bits_per_pixel 8, scanline_pad 32
keycode range: minimum 8, maximum 132
focus: window 0x5400030, revert to Parent
number of extensions: 21
AccessX
Adobe-DPS-Extension
DOUBLE-BUFFER
DPSExtension
MIT-SCREEN-SAVER
MIT-SHM
MIT-SUNDRY-NONSTANDARD
Multi-Buffering
SHAPE
SUN_ALLPLANES
SUN_DGA
SUN_OVL
SUN_SME
SYNC
SolarisIA
X3D-PEX
XC-MISC
XIE
XInputDeviceEvents
XInputExtension
XTEST
default screen number: 0
number of screens: 1
screen #0:
dimensions: 1152x900 pixels (325x254 millimeters)
resolution: 90x90 dots per inch
depths (2): 1, 8
root window id: 0x2a
depth of root window: 8 planes
number of colormaps: minimum 1, maximum 1
default colormap: 0x21
default number of colormap cells: 256
preallocated pixels: black 1, white 0
options: backing-store YES, save-unders YES
largest cursor: unlimited
current input event mask: 0x78003f
KeyPressMask KeyReleaseMask ButtonPressMask
ButtonReleaseMask EnterWindowMask LeaveWindowMask
SubstructureNotifyMask SubstructureRedirectMask FocusChangeMask
PropertyChangeMask
number of visuals: 6
default visual id: 0x22
visual:
visual id: 0x22
class: PseudoColor
depth: 8 planes
available colormap entries: 256
red, green, blue masks: 0x0, 0x0, 0x0
significant bits in color specification: 8 bits
visual:
visual id: 0x23
class: DirectColor
depth: 8 planes
available colormap entries: 8 per subfield
red, green, blue masks: 0x7, 0x38, 0xc0
significant bits in color specification: 8 bits
visual:
visual id: 0x24
class: GrayScale
depth: 8 planes
available colormap entries: 256
red, green, blue masks: 0x0, 0x0, 0x0
significant bits in color specification: 8 bits
visual:
visual id: 0x25
class: StaticColor
depth: 8 planes
available colormap entries: 256
red, green, blue masks: 0x7, 0x38, 0xc0
significant bits in color specification: 8 bits
visual:
visual id: 0x26
class: TrueColor
depth: 8 planes
available colormap entries: 8 per subfield
red, green, blue masks: 0x7, 0x38, 0xc0
significant bits in color specification: 8 bits
visual:
visual id: 0x27
class: StaticGray
depth: 8 planes
available colormap entries: 256
red, green, blue masks: 0x0, 0x0, 0x0
significant bits in color specification: 8 bits