JeffersonLab / HDGeant4

Geant4 simulation for the GlueX experiment
4 stars 4 forks source link

hdgeant4 with updated support packages crashes #198

Closed markito3 closed 3 years ago

markito3 commented 3 years ago

hdgeant4 crashes just doing its initialization with version set 5.0.0 on the ifarm which runs CentOS7. Here is an example. Oddly this same version set is OK on jlabl4, a RHEL7 machine:

[marki@jlabl4 ~]$ hdgeant4
Error in GlueXUserOptions::ReadControl_in: unable to open file control.in

(This what one should see when there is no control.in file in the current working directory. The example with the crash had no control.in either.)

markito3 commented 3 years ago

I think I have a line on this. Right now we are linking in the wrong Qt libraries for hdgeant4 on the ifarms. Note that qt is mentioned in the crash output. Not at the bottom of it yet...

markito3 commented 3 years ago

I think I solved this one. There is a long story behind the problem and the fix. Summarizing:

  1. The Qt hooks provided by G4 10.04.02 are broken for Qt5. That requires a patch.
  2. The build scripts makefile for hdgeant4 also needs to sense the version of Qt.

The problem is that the fix I had for (2) did not work properly on the ifarm, where Qt4 and Qt5 are both installed. That caused an inconsistent idea of Qt version at Geant4 build time vs. that at HDGeant4 build time. Thus the crash. And thus the problem only on ifarm.

Anyway, it is fixed now with build scripts 2.24. Closing this issue.