Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ddsim] Nicely abort instead of segfault when the argument of --inputFiles does not exist #1246

Closed
BrieucF opened this issue Mar 26, 2024 · 1 comment · Fixed by #1247
Closed
Assignees

Comments

@BrieucF
Copy link
Contributor

BrieucF commented Mar 26, 2024

Would it be possible to check that the files provided to ddsim with --inputFiles exist and nicely abort in case one of them can not be found? Currently it builds the geometry (which can be long) and then segfaults which confuses a lot of people.

Reproducer:

source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
ddsim -I non_existing_file.stdhep -N 10 -O dummy.root --compactFile $K4GEO/FCCee/CLD/compact/CLD_o2_v05/CLD_o2_v05.xml
@andresailer
Copy link
Member

Thanks for pointing out this pain-point!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants