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

remollSearchPath doesn't allow full path for magnet files #545

Open
cipriangal opened this issue Jan 7, 2022 · 2 comments
Open

remollSearchPath doesn't allow full path for magnet files #545

cipriangal opened this issue Jan 7, 2022 · 2 comments
Assignees

Comments

@cipriangal
Copy link
Contributor

Environment: (where does this bug occur, have you tried other environments)

  • branch (master for latest released): develop
  • revision (HEAD for most recent): 1652118
  • OS or system: ifarm CUE 2.5

Steps to reproduce: (give a step by step account of how to trigger the bug)

  1. add full path to https://github.com/JeffersonLab/remoll/blob/develop/macros/load_magnetic_fieldmaps.mac#L7 (such as /work/halla/moller12gev/ciprian/moller/remoll/map_directory/V2U.1a.50cm.txt )
  2. run build/remoll macros/runexample.mac

Expected Result: (what do you expect when you execute the steps above)

it completes

Actual Result: (what do you get when you execute the steps above)

it crashes mostly (somehow sometimes it has some other errors or directly crashes without an exception)

terminate  called after throwing an instance of 'std::length_error'
    what(): basic_string::_S_create

As far as I can tell the crash happens on line: https://github.com/JeffersonLab/remoll/blob/develop/src/remollSearchPath.cc#L49

@rakithab
Copy link
Contributor

@cipriangal Can we close this issue? It seems like you made a commit to fix the problem

@cipriangal
Copy link
Contributor Author

I think this needs to remain open since my hack just prevents it from checking if the path is resolvable. So if someone provides the wrong path it will fail in other ways.

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

No branches or pull requests

3 participants