You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reaktoro relies on the yaml-cpp library to parse YAML formatted files and strings. However, a critical issue arises when a Reaktoro application is executed under specific circumstances, leading to execution failure. The problem occurs when the following combination of factors is present:
The yaml-cpp library is compiled with MSVC (Microsoft Visual C++) in Release mode. For instance, if you're using the yaml-cpp version provided by conda-forge, this scenario is typical.
The Reaktoro application is compiled with MSVC in Debug mode.
The Reaktoro application involves the parsing of YAML files or strings, such as when constructing a SupcrtDatabase object with the argument "supcrtbl". This triggers the parsing of the embedded YAML file supcrt98.yaml through the yaml-cpp library.
The specific point of failure is observed during the invocation of the YAML::Load function of yaml-cpp. Interestingly, the issue does not happen if yaml-cpp is compiled in Debug mode with MSVC. The application executes correctly and error-free.
Steps to Reproduce
To replicate the issue, follow these steps:
Compile the yaml-cpp library with MSVC in Release mode.
Compile a Reaktoro application with MSVC in Debug mode.
Within the Reaktoro application, involve the parsing of YAML files or strings using functions that use yaml-cpp, such as SupcrtDatabase("supcrtbl").
Expected Behavior
The Reaktoro application should execute successfully regardless of the compilation mode of the yaml-cpp library and the application itself. The YAML::Load function should perform the YAML parsing correctly, ensuring proper communication between Reaktoro and yaml-cpp.
Actual Behavior
Under the specific combination of circumstances mentioned above, the Reaktoro application encounters execution failure.
The text was updated successfully, but these errors were encountered:
Issue Description
Reaktoro relies on the
yaml-cpp
library to parse YAML formatted files and strings. However, a critical issue arises when a Reaktoro application is executed under specific circumstances, leading to execution failure. The problem occurs when the following combination of factors is present:yaml-cpp
library is compiled with MSVC (Microsoft Visual C++) in Release mode. For instance, if you're using theyaml-cpp
version provided by conda-forge, this scenario is typical.SupcrtDatabase
object with the argument"supcrtbl"
. This triggers the parsing of the embedded YAML filesupcrt98.yaml
through theyaml-cpp
library.The specific point of failure is observed during the invocation of the
YAML::Load
function ofyaml-cpp
. Interestingly, the issue does not happen ifyaml-cpp
is compiled in Debug mode with MSVC. The application executes correctly and error-free.Steps to Reproduce
To replicate the issue, follow these steps:
yaml-cpp
library with MSVC in Release mode.yaml-cpp
, such asSupcrtDatabase("supcrtbl")
.Expected Behavior
The Reaktoro application should execute successfully regardless of the compilation mode of the
yaml-cpp
library and the application itself. TheYAML::Load
function should perform the YAML parsing correctly, ensuring proper communication between Reaktoro andyaml-cpp
.Actual Behavior
Under the specific combination of circumstances mentioned above, the Reaktoro application encounters execution failure.
The text was updated successfully, but these errors were encountered: