Page 1 of 1

Errors in the "create-flow-files" code

Posted: Sat Nov 26, 2022 8:42 am
by bravebear1985
Hi, Dave

I'm tring to run several cases in SV by using batch file in Windows 10. Currently the automatic job submission and result export are work well. To export the flow files, I complied your code of "create-flow-files" in Ubuntu shell within Win10 (Ubuntu 18.04 LTS) with no problem, but got "Segmentation fault (core dumped)" when create the files, and nothing generated. The operation is normal in GUI.

Attached is the screen shot of the error. Seems like this is caused by memory access problem. Is this caused by the OS version?
error.png
error.png (8.47 KiB) Viewed 222 times
Best Regards,
Guangyu

Re: Errors in the "create-flow-files" code

Posted: Mon Nov 28, 2022 4:21 pm
by davep
Hi Guangyu,

I'm not sure what the problem is. It might be that the results files can't be found or that they don't contain the data needed to compute the cap quantities or that the output directory does not exist. The code is a big hack and does not check if files exist or are valid.

You might need to put in some print statements to see where things are failing.

Cheers,
Dave