-
Notifications
You must be signed in to change notification settings - Fork 22
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
Crash during annotation #27
Comments
Can you provide more details? E.g. more log output, what have you been doing before the crash occurred, does it happen every time or just once? |
Thank you for your reply. It always happens when I create a new annotate box and try to change its shape, but everything works fine when I just change the position of the annotate box. |
[rosmaster.threadpool][ERROR] 2023-12-11 11:11:25,648: Traceback (most recent call last): |
Great, this helps a lot. This error usually occurs when creating ros::Time instances with invalid values. I have fixed similar errors before - seems I didn't catch all yet. |
line 752 in src/annotation_marker.cpp: time_offsets += (point_time >= context.time) ? (point_time - context.time) : (context.time - point_time); but the error still persisted。So, I tried to change the code as follows: if (point_time >= context.time)
time_offsets += point_time - context.time;
else
return context; the error disappeared, but it looks very strange when i adjusting the shape of 3D box. |
Thanks for tracking it down. I wonder if context.time or point_time is_zero() is true here. This would cause the error and would require a special case also (probably do not update time_offsets if one is zero). |
Thank you very much, I think I have fixed the error. |
You are right,the following code fixed this: if (point_time >= context.time)
time_offsets += point_time - context.time; |
[rviz-2] process has died [pid 1048166, exit code -6, cmd /opt/ros/noetic/lib/rviz/rviz -d /home/dell/PytorchWorkspace/annotate_ws/src/annotate/launch/demo.rviz __name:=rviz __log:=/home/dell/.ros/log/71712548-97d2-11ee-971c-9b50c91f07af/rviz-2.log].
log file: /home/dell/.ros/log/71712548-97d2-11ee-971c-9b50c91f07af/rviz-2*.log
The text was updated successfully, but these errors were encountered: