Crash of salome_cfd when I edit variables

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Mathurin_bld
Posts: 5
Joined: Wed Jul 12, 2023 11:38 am

Crash of salome_cfd when I edit variables

Post by Mathurin_bld »

Hello,

When I edit variables mathematical expression editor in CFDSTUDY module salome crash when i clic on ok.

I've attach the error message, I've tried to resolved this problem by myself but I can't find a solution.

Thank for your help
Best regards
Mathurin

Salome 9.10.0
Code_saturne V8.0
Salome_cfd_extension clone from the master at github
Attachments
Screenshot from 2023-07-13 16-38-57.png
Yvan Fournier
Posts: 4080
Joined: Mon Feb 20, 2012 3:25 pm

Re: Crash of salome_cfd when I edit variables

Post by Yvan Fournier »

Hello,

Do you have the crash only under CFDSTUDY or also in standalone mode ?

Best regards,

Yvan
Mathurin_bld
Posts: 5
Joined: Wed Jul 12, 2023 11:38 am

Re: Crash of salome_cfd when I edit variables

Post by Mathurin_bld »

Hello,

it's only under the CFDSTUDY module, it work perfectly in standalone mode

Best regards

Mathurin
Yvan Fournier
Posts: 4080
Joined: Mon Feb 20, 2012 3:25 pm

Re: Crash of salome_cfd when I edit variables

Post by Yvan Fournier »

Hello,

I can't reproduce the issue on a Debian 11-based system, using code_saturne 8.0 or development branches, and Salome 9.11 (which should behave the same as 9.10 or 9.9 here)...

In my case, I define CS_ROOT_DIR when configuring the salome_cfd_extensions. Do you define it at that time also, or only when trying to execute the code ?

Best regards,

Yvan
Mathurin_bld
Posts: 5
Joined: Wed Jul 12, 2023 11:38 am

Re: Crash of salome_cfd when I edit variables

Post by Mathurin_bld »

Hello,

I define the CS_ROOT_DIR when configuring the salome_cfd_extensions.

I've attached the config.log if it can help you, my the CS_ROOT_DIR path seems to be the right one

Best regards

Mathurin
Attachments
config.log
(81.72 KiB) Downloaded 32 times
Yvan Fournier
Posts: 4080
Joined: Mon Feb 20, 2012 3:25 pm

Re: Crash of salome_cfd when I edit variables

Post by Yvan Fournier »

Hello,

The CS_ROOT_DIR variable should only contain the root directory, not the "/bin" subdirectory.

Can you try removing the trailing "/bin" from that environament variable ? In theory, you do not even need to reinstall anything if you export that variable before launching salome_cfd.

Best regards,

Yvan
Mathurin_bld
Posts: 5
Joined: Wed Jul 12, 2023 11:38 am

Re: Crash of salome_cfd when I edit variables

Post by Mathurin_bld »

Hello,

I've launch a salome shell like for the installation, I've change the CS_ROOT_DIR path and run salome_cfd but it crash the same way as previously I've the same error message.

Is this the right way to change the path ?

Best regards

Mathurin
Yvan Fournier
Posts: 4080
Joined: Mon Feb 20, 2012 3:25 pm

Re: Crash of salome_cfd when I edit variables

Post by Yvan Fournier »

Hello,

And sorry for the late reply.

This is not the way I use most frequently, but it should still work. I usually do the install outside a Salome shell, as the launcher should already source the necessary files.

So you might want to try this, but I suspect the problem is rather due to a subtle incompatibility between the Salome version used and the OS version, or some subtle bug in the distribution's Qt install...

From the color of your screenshot, I assume you are using Ubuntu ? Which version ?

Best regards,

Yvan
Mathurin_bld
Posts: 5
Joined: Wed Jul 12, 2023 11:38 am

Re: Crash of salome_cfd when I edit variables

Post by Mathurin_bld »

Hello,

Don't worry, you are right I'm using Ubuntu version 22.04

For the moment, I didn't try anything else since the last post.

Best regards

Mathurin
Post Reply