Visualisation: "The scene has no extent"

Using
Geant4 Version:_11.2.0
Operating System: RedHat 9.4 / x86_64
Compiler/Version:_x86_64-el9-clang16-opt
CMake Version:_3.26.2
Qt : 5.15.9

In fact, I am sourcing /cvmfs/…./LCG_105/x86_64-el9-clang16-opt/setup.sh

When going from sourcing LCG-101/x86_64-centos7-clang12-opt/setup.sh , (Geant 4.10.07p02, Cmake 3.20, Qt 5.12.4, RHEL7) to LCG-105, I runned into the following errors when visualizing , nothing change in the code or in the vis.mac

-------- WWWW ------- G4Exception-START -------- WWWW -------

*** G4Exception : visman0202
issued by : G4Scene::CalculateExtent
Scene has no extent. Please activate or add something.
The camera needs to have something to point at!
Add a volume. (You may need "/run/initialize".)
Or use "/vis/scene/add/extent".
"/vis/scene/list" to see list of models.
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------

The same kind of message is occurring several times.
The graphic window is created but empty, although all elements are listed in SceneTree
I added /run/initialize before /vis/drawVolume in the macros with no effect

Thank you


Hi Corinne

Is this a G4 example or your own app?

Have you added anything to the scene? A volume? We would need to see your applied macros.

Sorry, unless we know more it is difficult to help. Please supply more information. An please, spend some time digging into the problem yourself.

John

Thank you for the advice. Could it be that I finally made a post because I spent a fair amount of time in digging into the problem ? I am not an expert, neither in display nor in graphic packages.
Though I can appreciate that I did not give enough details. The application is not a Geant4 example but the simulation program of our collaboration, and was not changed.
I naively thought that the problem being due to a change of plateform or to a change of Geant version (since nothing else changed), somebody had encountered it before and could give some clue:

  • on what to verify
  • librairies to check
  • way of coding not tolerated any more in the new version …
    Best regards, Corinne Goy

Hi Corinne

Sorry, but unless we have more details we cannot help. Just make sure your scene is populated.

John

Hello,

The issue was solved by changing in the macro .mac the following line:
/vis/drawVolume to /vis/drawVolume World_physical 0

This at least works for our application.

Best regards,
Corinne Goy