Thanks very much to all who responded. Here is the current status.
First, getting back to the original problem:
- Upon execution of "SceneViewer", the following crash occurs:
273% ./SceneViewer
X Error of failed request: BadValue (integer parameter out of
range
for operation)
Major opcode of failed request: 91 (X_QueryColors)
Value in failed request: 0xc3b2ae
Serial number of failed request: 624
Current serial number in output stream: 624
- I believe the problem has been narrowed down to use of the Overlay Planes
on SUN, as Mike (mmh@xxxxxxx) had suggested:
"XQueryColors is used to get the value of a color table entry.
That suggests ... or, more likely, there is a problem
trying to use overlay planes, which are always indexed (try
disabling the overlay planes code in SoXt)."
- I can create an SoXtExaminerViewer with an SoCube in it which looks fine
as long as the viewer's constructor arg "buildFlag" is set to:
"SoXtViewer::BUILD_NONE" or "SoXtViewer::BUILD_DECORATION"
The viewer dies with the above X error when "buildFlag" is set to:
"SoXtViewer::BUILD_ALL" or "SoXtViewer::BUILD_POPUP"
In otherwords, as long as the popup menu's are not created, the viewer
works (except for some problem with translation using the middle mouse where
the displayed objects go shooting off the screen). Rotation with the
leftmouse, the thumbwheels, and the buttons (home, perspective, seek, etc.)
all work. I event tried drawing in hidden line mode and that works. Yeah!
Further, I previously tried "componentTest" in
"inventor/apps/samples/widgets" as suggested by Jonathan Lim
(jlim@xxxxxxxxxxxxxxxxxxxx). Of the 6 components you can select, only 2
didnt work. The material editor dies with the same error as before in the
following location:
SoXtMaterialEditor::SoXtMaterialEditor(...) // constructor
SoXtMaterialEditor::buildWidget(...);
SoXtMaterialEditor::buildPulldownMenu(...);
SoXt::getPopupArgs(...) ; // does alot of visual
searching.
pulldown = XmCreatePulldownMenu(...); <------- dies
here!
My guess is that OpenInventor is trying to create the pop up menus in the
Overlay Planes so it wont cause a redraw in the main window.
Apparently "...there are some unique "gotchas" with overlays on Solaris"
(Mike, mmh@xxxxxxx).
It would be nice if there was a switch to not use Overlay Planes for the
pop up menus. With my limited knowledge of X, at best, I can try to hack a
quick fix to get this running on the SUN's. I dont know if my solution (if I
can come up with one) would be a good one to translate back to the original
version.
We could be very close! It would be great if some one implemented such a
switch. At least some insight on how to proceed would help. I going to start
by grep'ing for "overlay planes". Thanks again for the help.
---------------------------
Steven Connolly
CSC/Pratt & Whitney
connolsv@xxxxxxxx
---------------------------
|