Geant4 crash when visualize

Hello. I made a very simple program in geant4 (a cube filled with air) and when I visualize it, I get this:


The cube does not seem to be clear and except for that, the strange is that when I rotate the cube with my cursor, the whole pc crashes and I should restart it!!
Help me please… Thank you.

Very curious! I’ve not seen that before.

Please tell us your operating system (Linux variety or Mac or Windows), the Geant4 version and the Qt version.

The very strange is that I tested it to other devices, and the simulation worked perfectly. Here are my specs:

OS: Ubuntu 22.04.1 LTS
Geant4: 11.0.3
Processor: AMD® Ryzen 5 5500u with radeon graphics × 12 (I updated the AMD graphics today)
Graphics: AMD Renoir
Qt version: Qt 5.15.3 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 11.3.0) on “xcb”
[linux version 5.15.0-53-generic]

Thank you for help. I am also working on it…

Hello fellow,

I am also facing the same issue right now. are you able to solve this problem or not?
I seriously got frustrated now with this issue. So, please reply ASAP if you have any input regarding this issue.
Thanks

Dear Anil/Hachiman512

I think you have posted your problem on another thread (Geometry, Fields and Transportation). It doesn’t help - it only confuses - if you post to more than one thread. It is not yet clear to me whether your problem is to do with visualisation or some other aspect of your code. Moreover, most of us respond to this forum on a best effort basis. I’m sorry you are “seriously frustrated” by your issue, but we will have a look at it as soon as we can. For myself, I have a meeting right now, and will respond to your posting on the other thread this afternoon, all being well. Maybe someone else will respond meanwhile.

John

Dear Giannistsrb

Picking up your message from last November…did you fix your problem?

John

Yes, I fixed it. Tell me about your graphic’s card and ubuntu version you have.

Yes, I have a dedicated NVIDIA graphic card and integrated amd card. I am listing details of both by using “lspci | grep VGA” command:

  1. VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] (rev a1)
  2. VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c6)

Please suggest me something how did you solve this issue. I will be great help.
I am also sharing my system details:
OS: Ubuntu 22.04.2 LTS
Geant4: 11.1.1
Processor: AMD® Ryzen 7 4800hs with radeon graphics × 16
Graphics: AMD Renoir and NVIDIA (I also mentioned it above).
Qt version: Qt 5.15.3
[linux version 5.19.0-38-generic]

I have a suspicion that the problem is in the graphics card and the new version of ubuntu 22.04. There is no driver for AMD graphics in ubuntu 22.04 I think… Search in your ubuntu system if everything is ok about the graphics card.
Because I faced this problem as well (in the past), I reinstalled the whole ubuntu system in a previous version (20.04) and it worked!!!
It was not the code unfortunately. Something’s very wrong.
So, if you can, reinstall ubuntu 20.04 focal fossa and geant4 again and tell us if it works… I think it will work like in my laptop… It worths the while for you to make a try.

***Furthermore, the craziest thing was that when I was running the exampleB1 (before reinstalling the ubuntu), there was no problem and no crash while in the cube there was…! I can’t explain that…

So the solution is to downgrade to ubuntu 20.04? Is there any way we can work on 22.04? By downgrading I will lose all my data so if any solution is there that’s be really helpful.

Thank you