Geant4 visualization

Please fill out the following information to help in answering your question, and also see tips for posting code snippets. If you don’t provide this information it will take more time to help with your problem!

_Geant4 Version:_11.3.2
_Operating System:_Ubuntu24
_Compiler/Version: Cmake 3.28.3
Hi all,

I installed the newest version of root and Geant4 successfully, but unfortunately, I cannot get the visualization window to show the geometry. The GUI opens, but the geometry does not show after running the line: /control/execute macrofile. I checked the OpenGL and the newest version is installed. I also tried: sudo apt-get install libglu1-mesa libpulse-mainloop-glib0 libnss3 libasound2t64 qt5dxcb-plugin

However it is not working. One of my colleagues is running into the same issue with the visualization after installing the newest version. Do you have any ideas why this might be happening and/or what package/dependencies we are missing?

Thank you,

Azin


Hi

Search for “Ubuntu”. Have a look at Black Screen when running Example1. I’m not an Ubuntu user, but I picked these quotes:

“I found a work around here Geant4 OGL visualiztion in Ubuntu 23.04. Setting XDG_SESSION_TYPE=x11 right before executing ./example1 worked.”

“Also setting QT_QPA_PLATFORM=xcb works in case some one has similar issue in the future.”

John

1 Like

That worked! Thank you so much :slight_smile:

Thanks for the feedback. You’re welcome.