tkn-tub / ns3-gym

ns3-gym - The Playground for Reinforcement Learning in Networking Research
GNU General Public License v2.0
514 stars 196 forks source link

using gdb to debug ns3-script in a separate shell results into the script restarting #75

Closed prototact closed 1 year ago

prototact commented 1 year ago

Hi,

I am trying to debug my simulations, and currently I face the following problem: The command ./ns3 run "<program-name> <--options>" is run on one shell and the python control script is run on a separate shell. The parameters used for both programs are the same. The moment traffic starts to flow in the simulation script, the Python process restarts, which causes the simulation script to hold. Specifically, an empty observation is received from the sim process, which causes the python process to crash. This started happening recently and I cannot pinpoint the reason.

prototact commented 1 year ago

Setting the parameter to the Ns3Env constructor as startSim=False fixes the issue.