When using a large environment (in development), I had a corruption error after this line
if self._stop_if_anticipation_security_analysis(f_obs, f_env, contingency_line_ids)
Steps to reproduce:
I made a standalone script to reproduce the bug.
- git clone my fork
- follow the standard installation of the usecase example (no need to install interactiveAI)
- activate venv
- run
python standalone_bug.py
- There should be a critical error on step 52 or above :
a double free or corruption (!prev)
Clues:
- The large environment introduces the concept of alerts, this happens after an alert happen. So it might be linked to an incompatible f_obs and lightsim2grid.SecurityAnalysis