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::length_error' what(): vector::reserve #70

Open
crazy007302 opened this issue Jun 13, 2024 · 0 comments

Comments

@crazy007302
Copy link

When I run a non ROS version of the program on UGV, I occasionally encounter the issue of "terminate called after throwing an instance of 'std:: length_error'", which causes the program to interrupt. The error log obtained from using the GDB debugger is as follows. Among all the programs, only ndtomp uses the "aligned-allocator" function, but I still cannot find the problem. I don't know if you have any suggestions.

terminate called after throwing an instance of 'std::length_error'
what(): vector::reserve
--Type for more, q to quit, c to continue without paging--where

Thread 1 "UGV" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: 没有那个文件或目录.
(gdb) where
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x0000fffff2dc1aac in __GI_abort () at abort.c:79
#2 0x0000fffff30d28bc in __gnu_cxx::__verbose_terminate_handler() ()
at /usr/lib/aarch64-linux-gnu/libstdc++.so.6
#3 0x0000fffff30d020c in () at /usr/lib/aarch64-linux-gnu/libstdc++.so.6
#4 0x0000fffff30d0270 in () at /usr/lib/aarch64-linux-gnu/libstdc++.so.6
#5 0x0000fffff30d0564 in () at /usr/lib/aarch64-linux-gnu/libstdc++.so.6
#6 0x0000fffff30cbb7c in std::__throw_length_error(char const*) ()
at /usr/lib/aarch64-linux-gnu/libstdc++.so.6
#7 0x0000fffff5cfde88 in std::vector<pcl::PointXYZ, Eigen::aligned_allocatorpcl::PointXYZ >::reserve(unsigned long) ()
at /usr/lib/aarch64-linux-gnu/libpcl_io.so.1.10
#8 0x0000fffff3db41d0 in vtkOpenGLIndexBufferObject::AppendPointIndexBuffer(std::vector<unsigned int, std::allocator >&, vtkCellArray*, long long) () at /usr/lib/aarch64-linux-gnu/libvtkRenderingOpenGL2-7.1.so.7.1p
#9 0x0000fffff3db454c in vtkOpenGLIndexBufferObject::CreatePointIndexBuffer(vtkCellArray*) () at /usr/lib/aarch64-linux-gnu/libvtkRenderingOpenGL2-7.1.so.7.1p
#10 0x0000fffff3e12400 in vtkOpenGLPolyDataMapper::BuildIBO(vtkRenderer*, vtkActor*, vtkPolyData*) ()
at /usr/lib/aarch64-linux-gnu/libvtkRenderingOpenGL2-7.1.so.7.1p
#11 0x0000fffff3e15780 in vtkOpenGLPolyDataMapper::BuildBufferObjects(vtkRenderer*, vtkActor*) ()
at /usr/lib/aarch64-linux-gnu/libvtkRenderingOpenGL2-7.1.so.7.1p
--Type for more, q to quit, c to continue without paging--

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

1 participant