ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

'Illegal instruction'

asked 2011-11-06 20:07:27 -0500

jansvec gravatar image

updated 2011-11-11 20:55:36 -0500

Hi, I have a problem with loading and saving models, always return text 'Illegal instruction'.

I have Ubuntu 11.04 electric and all was install and run by tutorials.

Perception-pcl-addons from repository as 'ros-electric-perception-pcl-addons'.

// SAVE
...
writing /tmp/object_recorder_0/Can.Energy_drink_can/face_000.png[ INFO]
[1320658625.942711015]: Received PointCloud
[ INFO] [1320658626.933096772]: Received PointCloud
Illegal instruction

// LOAD
...
[ INFO] [1320458961.172944345]: model path callback; path=/home/user/models/videogame.Videogamecover_kinect
[ INFO] [1320458961.242162236]: loading model aspect: /home/user/models/videogame.Videogamecover_kinect/dense_face_028.pcd
Illegal instruction

Thanks for any help, Jan

edit retag flag offensive close merge delete

Comments

What are the hardware specifications of your computer?
tfoote gravatar image tfoote  ( 2011-11-07 04:14:03 -0500 )edit

3 Answers

Sort by » oldest newest most voted
3

answered 2011-11-12 09:33:36 -0500

Patrick Mihelich gravatar image

Thanks for the backtrace. This looks like another manifestation of http://answers.ros.org/question/2839/illegal-instruction-when-using-image_view-with. Updating your system to the most recent OpenCV package should solve it.

edit flag offensive delete link more
0

answered 2011-11-11 20:46:25 -0500

jansvec gravatar image

updated 2011-11-11 22:17:29 -0500

Hi,

My hardware is FS AMILO Notebook Sa 3650( run without buster ).

GDB:

Starting program:/home/user/ros/stacks/roboearth/object_scanning/re_kinect_object_detector/bin/re_kinect 
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffd3ee2700 (LWP 22478)]
[New Thread 0x7fffd36e1700 (LWP 22479)]
[New Thread 0x7fffd2ee0700 (LWP 22480)]
[New Thread 0x7fffd26df700 (LWP 22485)]
[New Thread 0x7fffcb69e700 (LWP 22493)]
[ WARN] [1321093987.648896789]: no model files loaded!
[ INFO] [1321093998.275109795]: model path callback; path =/tmp/videogame.Videogamecover_kinect
[ INFO] [1321093998.360253889]: loading model aspect: /tmp/videogame.Videogamecover_kinect/dense_face_058.pcd

Program received signal SIGILL, Illegal instruction.
0x00007ffff6d1d034 in cv::SURFInvoker::operator()(cv::BlockedRange const&) const () from /usr/lib/libopencv_features2d.so.2.3

BT:

#0  0x00007ffff6d1d034 in cv::SURFInvoker::operator()(cv::BlockedRange const&) const () from /usr/lib/libopencv_features2d.so.2.3
#1  0x00007ffff6d1ff8a in cvExtractSURF () from /usr/lib/libopencv_features2d.so.2.3
#2  0x00007ffff6d21786 in cv::SURF::operator()(cv::Mat const&, cv::Mat const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, std::vector<float, std::allocator<float> >&, bool) const () from /usr/lib/libopencv_features2d.so.2.3
#3  0x000000000043579e in ObjectAspect::calculate (this=0x7fffcc002e30, image=..., pointcloud=...) at /home/user/ros/stacks/roboearth/object_scanning/re_kinect_object_detector/src/recognitionmodel.cpp:87
#4  0x000000000043a253 in ObjectAspect::fromFile (this=0x7fffcc002e30, filename=...) at /home/user/ros/stacks/roboearth/object_scanning/re_kinect_object_detector/src/recognitionmodel.cpp:415
#5  0x000000000043ab6b in RecognitionModel::loadFromPath (this=0x7fffffffd4d0, path=...) at /home/user/ros/stacks/roboearth/object_scanning/re_kinect_object_detector/src/recognitionmodel.cpp:485
#6  0x0000000000431cd2 in ROSCom::model_path_cb (this=0x7fffffffddc0, model_path_msg=<value optimized out>) at /home/user/ros/stacks/roboearth/object_scanning/re_kinect_object_detector/src/slam_main.cpp:103
#7  0x000000000042a24a in operator() (function_obj_ptr=<value optimized out>, a0=<value optimized out>) at /usr/include/boost/function/function_template.hpp:1013
#8  boost::detail::function::void_function_obj_invoker1<boost::function<void(const boost::shared_ptr<const std_msgs::String_<std::allocator<void> > >&)>, void, boost::shared_ptr<const std_msgs::String_<std::allocator<void> > > >::invoke(boost::detail::function::function_buffer &, boost::shared_ptr<std_msgs::String_<std::allocator<void> > const>) (function_obj_ptr=<value optimized out>, a0=<value optimized out>) at /usr/include/boost/function/function_template.hpp:153
#9  0x000000000042c7b2 in operator() (this=0x7263f0, params=<value optimized out>) at /usr/include/boost/function/function_template.hpp:1013
#10 ros::SubscriptionCallbackHelperT<boost::shared_ptr<std_msgs::String_<std::allocator<void> > const> const&, void>::call (this=0x7263f0, params=<value optimized out>) at /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/include/ros/subscription_callback_helper.h:180
#11 0x00007fffece4400a in ros::SubscriptionQueue::call (this=<value optimized out>) at /tmp/buildd/ros-electric-ros-comm-1.6.4/debian/ros-electric-ros-comm/opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/src/libros/subscription_queue.cpp:164
#12 0x00007fffece894cf in ros::CallbackQueue::callOneCB (this=0x71e3c0, tls=0x7bbcd0) at /tmp/buildd/ros-electric-ros-comm-1.6.4/debian/ros-electric-ros-comm/opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/src/libros/callback_queue.cpp:381
#13 0x00007fffece8a8db in ros::CallbackQueue::callAvailable (this=0x71e3c0, timeout=<value optimized out>) at /tmp/buildd/ros-electric-ros-comm-1.6.4/debian/ros-electric-ros-comm/opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/src/libros/callback_queue.cpp:333
#14 0x00007fffece91e30 in ros::SingleThreadedSpinner::spin (this=<value optimized out>, queue=0x71e3c0) at /tmp/buildd/ros-electric-ros-comm-1.6.4/debian/ros-electric-ros-comm/opt/ros/electric/stacks/ros_comm/clients ...
(more)
edit flag offensive delete link more
0

answered 2011-11-10 00:27:18 -0500

ddimarco gravatar image

It could be an instance of the problem described here: http://answers.ros.org/question/316/move_base-node-dies-cant-tell-why

Please try the hints given there. If the problem still persists, please give a description of your hardware. Also, it would help if you ran the program in gdb and posted the backtrace here.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-11-06 20:07:27 -0500

Seen: 1,396 times

Last updated: Nov 12 '11