SOFA closes unexpectedly when removing and adding again an object in the simulation, while looking at it in the GUI #4717
Replies: 3 comments
-
Hi @itsmebonny Clearly the Qt GUI of SOFA has not been thought years ago to manage the case of deleted components in the graph. FYI we are in the process of updated the GUI, efforts would rather be put on making sure this behavior does not appear in the ImGUI-based GUI |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I am using Ubuntu 22.04.4 and SOFA 23.12.01 (the precompiled binary available on the website).
I'm trying to run a simple beam deforming under a load and encountered a weird bug. Since the load applied changes every timestep, I need to know which force is applied. To do so, I tried opening the ConstantForceField window in the GUI of Sofa. The problem is that when the ConstantForceField window is open, when I run the next step of the simulation, SOFA crashes and throws a segmentation fault error.
I think the problem is due to the fact that I'm removing the ConstantForceField object in the simulation and replacing it with a new one. In fact, if I do not replace the object, but only remove it, the simulation keeps running with no problems (sorry for the long code, it was the minimal working example that I was able to produce).
Once this script is launched, in the GUI, go to root > LowResSolution2D > ConstantForceField in the GUI and double click to open it. Once the window is open, press the Animate button and SOFA should crash with this error
I wanted to try and reproduce the error using this example from SofaPython3's repository, but launching it on my machine as is throws a segmentation fault error. I hope to solve it and come back with an example in that case. In the meantime this code should be enough to reproduce this error.
Beta Was this translation helpful? Give feedback.
All reactions