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

segmentation fault when linemod training #33

Open
Wesley-Lin opened this issue Aug 23, 2016 · 2 comments
Open

segmentation fault when linemod training #33

Wesley-Lin opened this issue Aug 23, 2016 · 2 comments

Comments

@Wesley-Lin
Copy link

Wesley-Lin commented Aug 23, 2016

Hi Sir,

I follow the web site to enable object-recognition-kitchen.
I can setup the database successfully, and I also can see mesh via web_ui.
db1
db2

However, when I training it, the segmentation fault will happen,
error

I check the source I built, there is no error neither, thus, I have no idea about that
build

Can anyone give me some tips ? Thanks a lot.

@Wesley-Lin
Copy link
Author

Wesley-Lin commented Aug 30, 2016

Hi
I reinstall again and the error still existed. In additional, I also follows another issue to use GLUT to build, but it seems no useful.
The platform I use is Tegra TK1.
BTW, I run the program with gdb, and I post it as blew

gdb --args python ./training -c rospack find object_recognition_linemod/conf/training.ork --visualize
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/python ./training -c /home/ubuntu/catkin_ws/src/ork/linemod/conf/training.ork --visualize
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0xadd21460 (LWP 3417)]
Training 1 objects.
computing object_id: f3f45b3ae96a87c3508e19cf6d000405
[New Thread 0xad4a1460 (LWP 3419)]
[Thread 0xad4a1460 (LWP 3419) exited]

Program received signal SIGSEGV, Segmentation fault.
_Constructcv::Ptr<cv::linemod::Modality, cv::Ptrcv::linemod::Modality > (__value=..., __p=0x774b9008)
at /usr/include/c++/4.8/bits/stl_construct.h:83
83 ::new(static_cast<void*>(__p)) _T1(__value);
(gdb)

Please help me solve the issue.
Thanks so much

@Wesley-Lin
Copy link
Author

Wesley-Lin commented Sep 1, 2016

Hi
I had solved the issue, but I encountered another issue.
Now I can training at first, but it would stop during loading image, the error log is "NVMAP_IOC_FREE failed: Bad file descriptor".
Any pointer to that will be highly appreciated.

rosrun object_recognition_core training -c rospack find object_recognition_linemod/conf/training.ork
Training 1 objects.
computing object_id: 128237c882f7be7bc32ed45c8a000aec
Info, T0: Load /tmp/fileUE6JdD.stl
Info, T0: Found a matching importer for this file format
Info, T0: Import root directory is '/tmp/'
Info, T0: Entering post processing pipeline
Info, T0: Points: 0, Lines: 0, Triangles: 1, Polygons: 0 (Meshes, X = removed)
Error, T0: FindInvalidDataProcess fails on mesh normals: Found zero-length vector
Info, T0: FindInvalidDataProcess finished. Found issues ...
Info, T0: GenVertexNormalsProcess finished. Vertex normals have been calculated
Error, T0: Failed to compute tangents; need UV data in channel0
Info, T0: JoinVerticesProcess finished | Verts in: 1536 out: 258 | ~83.2%
Info, T0: Cache relevant are 1 meshes (512 faces). Average output ACMR is 0.669922
Info, T0: Leaving post processing pipeline
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor
NVMAP_IOC_FREE failed: Bad file descriptor

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