Problem 1072 - "X Error of failed request: BadValue" with RayTracerX
Summary: "X Error of failed request: BadValue" with RayTracerX
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: visualization/RayTracer (show other problems)
Version: 9.2
Hardware: PC Linux
: P5 trivial
Assignee: John.Allison
URL:
Depends on:
Blocks:
 
Reported: 2009-06-30 23:59 CEST by Pierre
Modified: 2009-11-11 21:18 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Pierre 2009-06-30 23:59:58 CEST
Hello,
I was using the RayTracerX since sometime with the 9.0 and 9.1 without a problem, on both PC/linux g++4.3 and MacOSX g++4.2. However, on both system, I cannot anymore with version 9.2 and 9.3b. If I am trying to open the RayTracerX with

/vis/open RayTracerX 

I receive the message : 

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  1 (X_CreateWindow)
  Value in failed request:  0x0
  Serial number of failed request:  7
  Current serial number in output stream:  9

I tracked down the code up to the function
G4RTXScanner::GetXWindow(const G4String& name, G4ViewParameters& vp)

with the line :
  Status status = XGetRGBColormaps(display, RootWindow(display, screen_num),
     &scmap, &nMaps, XA_RGB_BEST_MAP);

However, I cannot find any reason for that crash. I tested with the N03 example (replacement of OGLIX with RayTracerX in vis.mac).

I certainly hope you will have an idea of what is going on here.

Regards,
Pierre
Comment 1 Pierre 2009-07-02 19:44:06 CEST
I tried also with g++ 4.1.2 on linux and g++ 4.0.1 on macosx, with the same result.

Regards,
Pierre
Comment 2 John.Allison 2009-11-11 21:18:22 CET
This was due to a failure to track a change in the base classes.  Fixed for next release.