SICKAG / sick_safetyscanners

ROS driver for SICK safety laser scanners
https://www.sick.com/de/en/opto-electronic-protective-devices/safety-laser-scanners/c/g187225
Apache License 2.0
61 stars 59 forks source link

terminate called after throwing an instance of 'std::out_of_range' #58

Closed reinzor closed 4 years ago

reinzor commented 4 years ago

Version: 1.0.5

terminate called after throwing an instance of 'std::out_of_range'
what():  vector::_M_range_check: __n (which is 18446744073709551615) >= this->size() (which is 0)

Follow up of #32

Bug still seems to be present in the latest version

lenpuc commented 4 years ago

Hi, am still Not in the Office. Could you maybe Check If the fix_check_measurementdata_length branch does solve this Problem?

If Not a Stacktrace would be appreciated. Since i cannot reproduce the Error.

reinzor commented 4 years ago

No problem. I will try to get a stack trace and/or try the mentioned branch. Problem is really hard to reproduce since it only happens once per week or maybe less. I will keep you updated using this issue.

lenpuc commented 4 years ago

Does the branch fix the problem? If yes, i will merge it into the master

reinzor commented 4 years ago

We have not experienced this issue yet. But it does not occur often so I cannot really validate that the problem is fixed yet.

lenpuc commented 4 years ago

Thanks, i'll might ping in a week again, to see if this is resolved. Thanks for letting me know

lenpuc commented 4 years ago

I merged the branch into the master. If the issue still persists please reopen

akifh commented 3 years ago

@puck-fzi It is still present with 1.0.8 (ros-melodic-sick-safetyscanners 1.0.8-1bionic.20210414.221403)

May 04 22:28:43: terminate called after throwing an instance of 'std::out_of_range'
May 04 22:28:43:   what():  vector::_M_range_check: __n (which is 18446744073709551615) >= this->size() (which is 0)
lenpuc commented 3 years ago

Hi could you build the library in debug mode and provide me with a stacktrace. So I can see where the error occurs. So far I did not experience the error again. Thanks