Trajectories not shown after /run/beamOn

I just installed a recent Geant4 and started to use OpenGL.
Running the exampleB1, I find the trajectories are not shown after ‘/run/beamOn’.
I can draw them using ‘/vis/viewer/rebuild’, but the command needs to be typed after every run, which is not very convenient.

I didn’t have this problem when I used an old version (9.5) of Geant4 with QT. I am not sure whether the issue is related to Geant4 or OpenGL.

Does anyone have a similar issue?

Thank you.

Geant4 Version: 11.2.2
Operating System: Windows 10
Compiler/Version: Visual Studio 17 2022 (?)
CMake Version: 4.0.0

Mmm. This is strange. I take it you are not using Qt this time - you must be using G4UIWin32, I guess. I’m afraid I am not a Windows user, and am not in a position to check this. Does any non-Qt Windows user have these symptoms?

Can you try using Qt?

John

Hi.

One of our users has verified your symptoms with “Win32” GUI (G4UIWin32) and the OGLSWin32 graphics driver. We are looking into it. I think it qualifies as a bug, so could you post a bug report, please. (If you can fix the problem yourself, please do, and send us the fix.)

As I said, I believe there is no problem with Qt.

John

When I ran CMake, I checked ‘GEANT4_USE_OPENGL_WIN32’ instead of ‘GEANT4_USE_QT’. I guess this is what you meant by using G4UIWin32. I tried to install Qt, but there were version conflicts that I couldn’t resolve.

Thanks much, John. Let me submit a bug report.