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

terminate called after throwing an instance of 'std::out_of_range' what(): map::at #5

Open
BUG423 opened this issue Apr 22, 2024 · 5 comments
Labels
bug Serious issue that needs to be fixed.

Comments

@BUG423
Copy link

BUG423 commented Apr 22, 2024

image

When running the MSCEqF example with the Euroc dataset using the provided script, the process aborts with the following error:

error message

terminate called after throwing an instance of 'std::out_of_range'
what(): map::at
run.sh: line 8: 1422290 Aborted

Steps to Reproduce:

Navigate to the MSCEqF build directory.
Define dataset sequence, dataset location, and example location.
Run the MSCEqF example with the Euroc dataset using the provided script.

Expected Behavior:

The MSCEqF example should execute successfully without errors.

Actual Behavior:

The process aborts unexpectedly, displaying an 'out_of_range' error related to a 'map::at' operation in the script.

@AlessandroFornasier
Copy link
Member

Hi!

Could you please let me know the structure of /root/ws/src/MSCEqF/dataset/euroc ?

@AlessandroFornasier AlessandroFornasier added the bug Serious issue that needs to be fixed. label Apr 25, 2024
@aforechi
Copy link

Hi Alessandro,

I am facing the same issue but with the first two EuRoC sequences only: euroc-mh-01-easy, euroc-mh-02-easy. I hope you can help me resolve this.

Here's what happens: the program exits with the same error message when I try to run it with these sequences but not the other ones. They follow the same directory structure except that these two sequences tests break when reaching timestamps that are exactly the same for imu0 and cam0. The exception occurs at the following two timestamps for sequences 01 and 02, respectively: 1403636580.313555456 and 1403636859.201666560.

Additionally, the out_of_range exception is thrown at updater.cpp line 104.

Congratulations on your excellent work on this project!

Thank you for your assistance.

@aau-cns aau-cns deleted a comment from BUG423 Aug 19, 2024
@AlessandroFornasier
Copy link
Member

Hi,

Is this happening at the beginning of the sequences? Could you please check if this happens with both zero velocity update active and zero velocity update inactive?

The issue seems to be related to the fact that there is no associated clone for the camera measurement. I suspect this might happen only in one or the other scenario and might be related to an erroneous cleaning of the buffer after initialization.

@aforechi
Copy link

aforechi commented Aug 20, 2024

Hi,

Yes, this issue is occurring at the beginning of the sequences. I checked with both zero velocity update active and inactive. When zero velocity update is disabled, the issue no longer occurs.

Thanks

@AlessandroFornasier
Copy link
Member

I see, I guess this is actually the case:

The issue seems to be related to the fact that there is no associated clone for the camera measurement. I suspect this might happen only in one or the other scenario and might be related to an erroneous cleaning of the buffer after initialization.

I will soon push a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Serious issue that needs to be fixed.
Projects
None yet
Development

No branches or pull requests

3 participants