wg-perception / linemod

An OR pipeline based on LINE-MOD from OpenCV
47 stars 54 forks source link

segmentation fault when linemod training #33

Open Wesley-Lin opened 8 years ago

Wesley-Lin commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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