-
-
May 24, 2023 at 2:47 pm
Chris_g
SubscriberHi everyone,
I am experiencing a weird issue in fluent, were I get the "error 126" after having an error during compiling from another UDF. So basically I compile a UDF, get a compiler error, fix the error, delete the libudf folder, compile again without any error, load the UDF and get the error 126. After that point it doesn't matter which UDF I compile (even very simple "Hello World" UDF) I will always get the error on loading. When I log out off and back into my account on the PC, the error is gone and the same UDFs as before compile and load fine up until I try to compile another UDF with an compiler error.
Do you have any idea on how to solve this problem?
I'm not sure if this is connected, but this problem only started recently after installing ANSYS Rocky (with fluent coupling).
Thanks for any help
Chris
-
May 25, 2023 at 8:01 am
Chris_g
SubscriberOne correction: It doesn't have to be a compilation error, other errors can trigger this as well. Today, my simulation threw a SIGSEGV error. After restarting fluent, on auto-compiling and loading the UDF I also got the error 126 but no compiler error.
-
May 25, 2023 at 11:10 am
Rob
Ansys EmployeeWhat is the UDF hooked into? Did you set the model up from scratch? I've seen a few issues when changing UDF.c files where the values the UDF needs to calculate the values used elsewhere didn't exist and caused a few errors.
-
May 25, 2023 at 1:45 pm
Chris_g
SubscriberI did some further investigation, there is an error in my UDF that causes the SIGSEGV. This error then somehow seems to cause the error 126. I will probably find the error in the UDF after some more searching, but my problem is the 126 error as it makes debugging very tedious, because I have to close all programms and log off and back on my PC before trying something else.
I think the error 126 is somehow caused by the Rocky installation. I have not seen it before that and I tried on several PCs. 2 have Rocky installed and throw this error. One doesn't have a Rocky installation and also don't produce this error. Is there something modified by the Rocky installation that causes this behaviour?
-
May 25, 2023 at 2:47 pm
Rob
Ansys EmployeeIf a UDF causes Fluent to fail you should just need to restart Fluent. Rocky does change a few things, but nothing that conflicts with standalone Fluent or the Clang compiler in Fluent. You are using the built in compiler?
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error: Received signal SIGSEGV
-
5162
-
3275
-
2451
-
1308
-
956
© 2023 Copyright ANSYS, Inc. All rights reserved.