wn-upf / Komondor

Komondor Wireless Networks Simulator
GNU General Public License v3.0
65 stars 19 forks source link

Segmentation fault while running script files #125

Closed ghost closed 4 years ago

ghost commented 5 years ago

I am using Komondor 2.0 I am faced with a segmentation fault when trying to run a script file located in /Komondor/Code/scripts_multiple_execution

I first gave it permissions using chmod +x multiple_inputs_script_several_seeds.sh

and then ran it ./multiple_inputs_script_several_seeds.sh

Can you please provide me a complete procedure to run a simulation for any input file and any script file?

Screenshot from 2019-07-15 18-28-03

fwilhelmi commented 5 years ago

Hi @shrenikr235 !

It seems that the script is taking some wrong files as input. Notice that the script has detected inputs "agents", "nodes" and "system", which seem to be folders. Instead of that, you should directly tell the script the location of the folder containing the actual node input files. For that, make sure that the paths included in the script are properly set.

I hope that helps. Best, Francesc.

ghost commented 5 years ago

HI, thanks for the quick reply. Still facing the same issue with just the csv input files in the path the script is defined to look in. An example of a script simulation might help, thanks. new

fwilhelmi commented 5 years ago

Hi again!

Again, it seems that some wrong files are taken as an input. You have to consider that the script scans an entire folder in order to execute the files in it (sequentially). Typically, we use these kinds of scripts for simulating multiple input nodes files, but you could modify it in order to use different system inputs, for instance.

So, the problem is that you are sending wrong files to Komondor, which tries to read as if they were node files. But the problem is that they are not node inputs! In the first case, you use the agents.csv, for instance. To solve this, you have to put node inputs to the target folder, or just use the manual mode specifying the exact path of each type of file.

Best, Francesc.