-
Notifications
You must be signed in to change notification settings - Fork 218
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
Error with hdf5 output on current dev branch #3037
Comments
Hmm, the key line in Unhandled exception of type 'St12out_of_range' with message 'vector::_M_range_check: __n (which is 2) >= this->size() (which is 2)', terminating The following little program reproduces the error, although I don't exactly know where yours comes from, yet. #include <iostream>
#include <vector>
int bad_function() {
std::vector<int> v(2);
return v.at(2);
}
int main() {
bad_function();
return 0;
} Output: terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check: __n (which is 2) >= this->size() (which is 2) |
If I start the Laser Wakefield example I get the same error messages... |
Although this seams to be a logic error on our side, maybe check the last updates/PRs regarding the plugin, I would recommend to use parallel HDF5 not with the ancient OpenMPI version in the current module. Maybe check if newer modules exist in parallel or request them? Here is a number of recommended releases to mitigate two severe OpenMPI bugs that we found with typical sims on Hemera:
Alternatively as a quick test, try if exporting That said: probably a logic bug in recent changes, best is to compile with debug symbols and find at which exact line in the code this is thrown. |
I'm using the tpl files from the same branch and this line is included in them. So this does not mitigate the issue. But I'll also look into the other issues. |
Yes, I think it's likely another issue. Nevertheless, I just recalled that Feel free to post the line that throws this as soon as you found out. |
Fixed by #3038. |
I pulled the current dev branch 0f800d0 and created an example based on the Kelvin Helmholtz example. If I have hdf5 output enabled (the default), the simulation instantly crashes and gives me following error messages:
stdout
And here is the stderr which is too long to paste it directly into the issue:
stderr
I've run this simulation on the
gpu
partition ofhemera
withetc/include/16.cfg
, but I think I've had it onk20
too. If I run the simulation without hdf5 output, it runs. It only seems to appear, when hdf5 output is enabled.The text was updated successfully, but these errors were encountered: