Runtime error while running tutorial_filter_extract_indices

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Runtime error while running tutorial_filter_extract_indices

Piyush
Hi,

I am running ros-unstable using binaries (updated), on lucid. I get
the following error running tutorial_filter_extract_indices in
pcl_tutorials (other tutorials output similar errors), while first
encountering the problem in my own code

The runtime error I get is:

tutorial_filter_extract_indices:
/opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/MatrixStorage.h:67:
Eigen3::ei_matrix_array<T, Size, MatrixOptions, 16>::ei_matrix_array()
[with T = float, int Size = 4, int MatrixOptions = 0]: Assertion
`(reinterpret_cast<size_t>(array) & 0xf) == 0 && "this assertion is
explained here: "
"http://eigen.tuxfamily.org/dox/UnalignedArrayAssert.html" " **** READ
THIS WEB PAGE !!! ****"' failed.

The backtrace from gdb is:

#0  0xb7fe2430 in __kernel_vsyscall ()
#1  0xb43d9651 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb43dca82 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb43d2718 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#4  0x08056ef8 in ei_matrix_array (a1=...) at
/opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/MatrixStorage.h:67
#5  ei_matrix_storage (a1=...) at
/opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/MatrixStorage.h:101
#6  DenseStorageBase (a1=...) at
/opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/DenseStorageBase.h:338
#7  Matrix (a1=...) at
/opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/Matrix.h:290
#8  Quaternion (a1=...) at
/opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Geometry/Quaternion.h:227
#9  PointCloud (a1=...) at
/opt/ros/unstable/stacks/perception_pcl/pcl/include/pcl/point_cloud.h:81
#10 boost::make_shared<pcl::PointCloud<pcl::PointXYZ>,
pcl::PointCloud<pcl::PointXYZ> > (a1=...) at
/usr/include/boost/smart_ptr/make_shared.hpp:185
#11 0x08050f64 in main (argc=1, argv=0xbffff0f4)
    at /tmp/buildd/ros-unstable-perception-pcl-addons-0.2.0/debian/ros-unstable-perception-pcl-addons/opt/ros/unstable/stacks/perception_pcl_addons/pcl_tutorials/src/filter_extract_indices.cpp:106

Line 106 in filter_extract_indices.cpp is:
seg.setInputCloud (boost::make_shared<pcl::PointCloud<pcl::PointXYZ>
>(cloud_filtered));

I am not entirely sure what causes this error. Also, my experience
with boost::shared_ptr is limited, however I don't understand the the
call to make_shared, as all we should really need is a reference to
the statically allocated object. Wouldn't it be more efficient to use
something like this for the statically allocated object.

template <typename T>
void noDelete(T *ptr) {
}

pcl::PointCloud<pcl::PointXYZ>::ConstPtr ptr(&cloud,
noDelete<pcl::PointCloud<pcl::PointXYZ> >);
seg.setInputCloud(ptr);

This works in my code and does not generate any errors. I would
appreciate any feedback/help on this.

Thanks,
Piyush
_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Runtime error while running tutorial_filter_extract_indices

Piyush
Hi,

I am running ros-unstable using binaries (updated), on lucid. I get
the following error running tutorial_filter_extract_indices in
pcl_tutorials (other tutorials output similar errors), while first
encountering the problem in my own code

The runtime error I get is:

tutorial_filter_extract_indices:
/opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/MatrixStorage.h:67:
Eigen3::ei_matrix_array<T, Size, MatrixOptions, 16>::ei_matrix_array()
[with T = float, int Size = 4, int MatrixOptions = 0]: Assertion
`(reinterpret_cast<size_t>(array) & 0xf) == 0 && "this assertion is
explained here: "
"http://eigen.tuxfamily.org/dox/UnalignedArrayAssert.html" " **** READ
THIS WEB PAGE !!! ****"' failed.

The backtrace from gdb is:

#0  0xb7fe2430 in __kernel_vsyscall ()
#1  0xb43d9651 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb43dca82 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb43d2718 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#4  0x08056ef8 in ei_matrix_array (a1=...) at
/opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/MatrixStorage.h:67
#5  ei_matrix_storage (a1=...) at
/opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/MatrixStorage.h:101
#6  DenseStorageBase (a1=...) at
/opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/DenseStorageBase.h:338
#7  Matrix (a1=...) at
/opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/Matrix.h:290
#8  Quaternion (a1=...) at
/opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Geometry/Quaternion.h:227
#9  PointCloud (a1=...) at
/opt/ros/unstable/stacks/perception_pcl/pcl/include/pcl/point_cloud.h:81
#10 boost::make_shared<pcl::PointCloud<pcl::PointXYZ>,
pcl::PointCloud<pcl::PointXYZ> > (a1=...) at
/usr/include/boost/smart_ptr/make_shared.hpp:185
#11 0x08050f64 in main (argc=1, argv=0xbffff0f4)
   at /tmp/buildd/ros-unstable-perception-pcl-addons-0.2.0/debian/ros-unstable-perception-pcl-addons/opt/ros/unstable/stacks/perception_pcl_addons/pcl_tutorials/src/filter_extract_indices.cpp:106

Line 106 in filter_extract_indices.cpp is:
seg.setInputCloud (boost::make_shared<pcl::PointCloud<pcl::PointXYZ>
>(cloud_filtered));

I am not entirely sure what causes this error. Also, my experience
with boost::shared_ptr is limited, however I don't understand the the
call to make_shared, as all we should really need is a reference to
the statically allocated object. Wouldn't it be more efficient to use
something like this for the statically allocated object.

template <typename T>
void noDelete(T *ptr) {
}

pcl::PointCloud<pcl::PointXYZ>::ConstPtr ptr(&cloud,
noDelete<pcl::PointCloud<pcl::PointXYZ> >);
seg.setInputCloud(ptr);

This works in my code and does not generate any errors. I would
appreciate any feedback/help on this.

Thanks,
Piyush
_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Runtime error while running tutorial_filter_extract_indices

Radu B. Rusu
Administrator
Piyush,

Can you please try the new releases (0.8 and 0.3)? I think we fixed all these issues there.

https://code.ros.org/svn/ros-pkg/stacks/perception_pcl/tags/unstable
https://code.ros.org/svn/ros-pkg/stacks/perception_pcl_addons/tags/unstable

Also, check out the e-mail that I sent a few hours ago:

http://point-cloud-library-pcl-mailing-list.967500.n3.nabble.com/makeShared-make-shared-and-Eigen-PCL-Was-Re-Ros-kinect-about-about-Kinect-Compatibility-amp-install--td2381641.html

Cheers,
Radu.
--
http://pointclouds.org

On 01/29/2011 06:28 PM, Piyush wrote:

> Hi,
>
> I am running ros-unstable using binaries (updated), on lucid. I get
> the following error running tutorial_filter_extract_indices in
> pcl_tutorials (other tutorials output similar errors), while first
> encountering the problem in my own code
>
> The runtime error I get is:
>
> tutorial_filter_extract_indices:
> /opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/MatrixStorage.h:67:
> Eigen3::ei_matrix_array<T, Size, MatrixOptions, 16>::ei_matrix_array()
> [with T = float, int Size = 4, int MatrixOptions = 0]: Assertion
> `(reinterpret_cast<size_t>(array)&  0xf) == 0&&  "this assertion is
> explained here: "
> "http://eigen.tuxfamily.org/dox/UnalignedArrayAssert.html" " **** READ
> THIS WEB PAGE !!! ****"' failed.
>
> The backtrace from gdb is:
>
> #0  0xb7fe2430 in __kernel_vsyscall ()
> #1  0xb43d9651 in raise () from /lib/tls/i686/cmov/libc.so.6
> #2  0xb43dca82 in abort () from /lib/tls/i686/cmov/libc.so.6
> #3  0xb43d2718 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
> #4  0x08056ef8 in ei_matrix_array (a1=...) at
> /opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/MatrixStorage.h:67
> #5  ei_matrix_storage (a1=...) at
> /opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/MatrixStorage.h:101
> #6  DenseStorageBase (a1=...) at
> /opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/DenseStorageBase.h:338
> #7  Matrix (a1=...) at
> /opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/Matrix.h:290
> #8  Quaternion (a1=...) at
> /opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Geometry/Quaternion.h:227
> #9  PointCloud (a1=...) at
> /opt/ros/unstable/stacks/perception_pcl/pcl/include/pcl/point_cloud.h:81
> #10 boost::make_shared<pcl::PointCloud<pcl::PointXYZ>,
> pcl::PointCloud<pcl::PointXYZ>  >  (a1=...) at
> /usr/include/boost/smart_ptr/make_shared.hpp:185
> #11 0x08050f64 in main (argc=1, argv=0xbffff0f4)
>     at /tmp/buildd/ros-unstable-perception-pcl-addons-0.2.0/debian/ros-unstable-perception-pcl-addons/opt/ros/unstable/stacks/perception_pcl_addons/pcl_tutorials/src/filter_extract_indices.cpp:106
>
> Line 106 in filter_extract_indices.cpp is:
> seg.setInputCloud (boost::make_shared<pcl::PointCloud<pcl::PointXYZ>
>> (cloud_filtered));
>
> I am not entirely sure what causes this error. Also, my experience
> with boost::shared_ptr is limited, however I don't understand the the
> call to make_shared, as all we should really need is a reference to
> the statically allocated object. Wouldn't it be more efficient to use
> something like this for the statically allocated object.
>
> template<typename T>
> void noDelete(T *ptr) {
> }
>
> pcl::PointCloud<pcl::PointXYZ>::ConstPtr ptr(&cloud,
> noDelete<pcl::PointCloud<pcl::PointXYZ>  >);
> seg.setInputCloud(ptr);
>
> This works in my code and does not generate any errors. I would
> appreciate any feedback/help on this.
>
> Thanks,
> Piyush
> _______________________________________________
> [hidden email] / http://pointclouds.org
> https://code.ros.org/mailman/listinfo/pcl-users
_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Runtime error while running tutorial_filter_extract_indices

Piyush
Thanks for all the info! Everything works fine with the new releases.

Also, any ideas when these new builds (0.8 and 0.3) will be pushed out?

Piyush

On Sun, Jan 30, 2011 at 2:49 AM, Radu Bogdan Rusu <[hidden email]> wrote:

> Piyush,
>
> Can you please try the new releases (0.8 and 0.3)? I think we fixed all
> these issues there.
>
> https://code.ros.org/svn/ros-pkg/stacks/perception_pcl/tags/unstable
> https://code.ros.org/svn/ros-pkg/stacks/perception_pcl_addons/tags/unstable
>
> Also, check out the e-mail that I sent a few hours ago:
>
> http://point-cloud-library-pcl-mailing-list.967500.n3.nabble.com/makeShared-make-shared-and-Eigen-PCL-Was-Re-Ros-kinect-about-about-Kinect-Compatibility-amp-install--td2381641.html
>
> Cheers,
> Radu.
> --
> http://pointclouds.org
>
> On 01/29/2011 06:28 PM, Piyush wrote:
>>
>> Hi,
>>
>> I am running ros-unstable using binaries (updated), on lucid. I get
>> the following error running tutorial_filter_extract_indices in
>> pcl_tutorials (other tutorials output similar errors), while first
>> encountering the problem in my own code
>>
>> The runtime error I get is:
>>
>> tutorial_filter_extract_indices:
>>
>> /opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/MatrixStorage.h:67:
>> Eigen3::ei_matrix_array<T, Size, MatrixOptions, 16>::ei_matrix_array()
>> [with T = float, int Size = 4, int MatrixOptions = 0]: Assertion
>> `(reinterpret_cast<size_t>(array)&  0xf) == 0&&  "this assertion is
>> explained here: "
>> "http://eigen.tuxfamily.org/dox/UnalignedArrayAssert.html" " **** READ
>> THIS WEB PAGE !!! ****"' failed.
>>
>> The backtrace from gdb is:
>>
>> #0  0xb7fe2430 in __kernel_vsyscall ()
>> #1  0xb43d9651 in raise () from /lib/tls/i686/cmov/libc.so.6
>> #2  0xb43dca82 in abort () from /lib/tls/i686/cmov/libc.so.6
>> #3  0xb43d2718 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
>> #4  0x08056ef8 in ei_matrix_array (a1=...) at
>>
>> /opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/MatrixStorage.h:67
>> #5  ei_matrix_storage (a1=...) at
>>
>> /opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/MatrixStorage.h:101
>> #6  DenseStorageBase (a1=...) at
>>
>> /opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/DenseStorageBase.h:338
>> #7  Matrix (a1=...) at
>>
>> /opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/Matrix.h:290
>> #8  Quaternion (a1=...) at
>>
>> /opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Geometry/Quaternion.h:227
>> #9  PointCloud (a1=...) at
>> /opt/ros/unstable/stacks/perception_pcl/pcl/include/pcl/point_cloud.h:81
>> #10 boost::make_shared<pcl::PointCloud<pcl::PointXYZ>,
>> pcl::PointCloud<pcl::PointXYZ>  >  (a1=...) at
>> /usr/include/boost/smart_ptr/make_shared.hpp:185
>> #11 0x08050f64 in main (argc=1, argv=0xbffff0f4)
>>    at
>> /tmp/buildd/ros-unstable-perception-pcl-addons-0.2.0/debian/ros-unstable-perception-pcl-addons/opt/ros/unstable/stacks/perception_pcl_addons/pcl_tutorials/src/filter_extract_indices.cpp:106
>>
>> Line 106 in filter_extract_indices.cpp is:
>> seg.setInputCloud (boost::make_shared<pcl::PointCloud<pcl::PointXYZ>
>>>
>>> (cloud_filtered));
>>
>> I am not entirely sure what causes this error. Also, my experience
>> with boost::shared_ptr is limited, however I don't understand the the
>> call to make_shared, as all we should really need is a reference to
>> the statically allocated object. Wouldn't it be more efficient to use
>> something like this for the statically allocated object.
>>
>> template<typename T>
>> void noDelete(T *ptr) {
>> }
>>
>> pcl::PointCloud<pcl::PointXYZ>::ConstPtr ptr(&cloud,
>> noDelete<pcl::PointCloud<pcl::PointXYZ>  >);
>> seg.setInputCloud(ptr);
>>
>> This works in my code and does not generate any errors. I would
>> appreciate any feedback/help on this.
>>
>> Thanks,
>> Piyush
>> _______________________________________________
>> [hidden email] / http://pointclouds.org
>> https://code.ros.org/mailman/listinfo/pcl-users
>
_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Runtime error while running tutorial_filter_extract_indices

Radu B. Rusu
Administrator

On 01/30/2011 09:07 AM, Piyush wrote:
> Thanks for all the info! Everything works fine with the new releases.
>
> Also, any ideas when these new builds (0.8 and 0.3) will be pushed out?

Not sure, usually they come a few hours after the releases are made.


Cheers,
Radu.
--
http://pointclouds.org

>
> Piyush
>
> On Sun, Jan 30, 2011 at 2:49 AM, Radu Bogdan Rusu<[hidden email]>  wrote:
>> Piyush,
>>
>> Can you please try the new releases (0.8 and 0.3)? I think we fixed all
>> these issues there.
>>
>> https://code.ros.org/svn/ros-pkg/stacks/perception_pcl/tags/unstable
>> https://code.ros.org/svn/ros-pkg/stacks/perception_pcl_addons/tags/unstable
>>
>> Also, check out the e-mail that I sent a few hours ago:
>>
>> http://point-cloud-library-pcl-mailing-list.967500.n3.nabble.com/makeShared-make-shared-and-Eigen-PCL-Was-Re-Ros-kinect-about-about-Kinect-Compatibility-amp-install--td2381641.html
>>
>> Cheers,
>> Radu.
>> --
>> http://pointclouds.org
>>
>> On 01/29/2011 06:28 PM, Piyush wrote:
>>>
>>> Hi,
>>>
>>> I am running ros-unstable using binaries (updated), on lucid. I get
>>> the following error running tutorial_filter_extract_indices in
>>> pcl_tutorials (other tutorials output similar errors), while first
>>> encountering the problem in my own code
>>>
>>> The runtime error I get is:
>>>
>>> tutorial_filter_extract_indices:
>>>
>>> /opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/MatrixStorage.h:67:
>>> Eigen3::ei_matrix_array<T, Size, MatrixOptions, 16>::ei_matrix_array()
>>> [with T = float, int Size = 4, int MatrixOptions = 0]: Assertion
>>> `(reinterpret_cast<size_t>(array)&    0xf) == 0&&    "this assertion is
>>> explained here: "
>>> "http://eigen.tuxfamily.org/dox/UnalignedArrayAssert.html" " **** READ
>>> THIS WEB PAGE !!! ****"' failed.
>>>
>>> The backtrace from gdb is:
>>>
>>> #0  0xb7fe2430 in __kernel_vsyscall ()
>>> #1  0xb43d9651 in raise () from /lib/tls/i686/cmov/libc.so.6
>>> #2  0xb43dca82 in abort () from /lib/tls/i686/cmov/libc.so.6
>>> #3  0xb43d2718 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
>>> #4  0x08056ef8 in ei_matrix_array (a1=...) at
>>>
>>> /opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/MatrixStorage.h:67
>>> #5  ei_matrix_storage (a1=...) at
>>>
>>> /opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/MatrixStorage.h:101
>>> #6  DenseStorageBase (a1=...) at
>>>
>>> /opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/DenseStorageBase.h:338
>>> #7  Matrix (a1=...) at
>>>
>>> /opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Core/Matrix.h:290
>>> #8  Quaternion (a1=...) at
>>>
>>> /opt/ros/unstable/stacks/geometry/eigen3/include/Eigen3/src/Geometry/Quaternion.h:227
>>> #9  PointCloud (a1=...) at
>>> /opt/ros/unstable/stacks/perception_pcl/pcl/include/pcl/point_cloud.h:81
>>> #10 boost::make_shared<pcl::PointCloud<pcl::PointXYZ>,
>>> pcl::PointCloud<pcl::PointXYZ>    >    (a1=...) at
>>> /usr/include/boost/smart_ptr/make_shared.hpp:185
>>> #11 0x08050f64 in main (argc=1, argv=0xbffff0f4)
>>>     at
>>> /tmp/buildd/ros-unstable-perception-pcl-addons-0.2.0/debian/ros-unstable-perception-pcl-addons/opt/ros/unstable/stacks/perception_pcl_addons/pcl_tutorials/src/filter_extract_indices.cpp:106
>>>
>>> Line 106 in filter_extract_indices.cpp is:
>>> seg.setInputCloud (boost::make_shared<pcl::PointCloud<pcl::PointXYZ>
>>>>
>>>> (cloud_filtered));
>>>
>>> I am not entirely sure what causes this error. Also, my experience
>>> with boost::shared_ptr is limited, however I don't understand the the
>>> call to make_shared, as all we should really need is a reference to
>>> the statically allocated object. Wouldn't it be more efficient to use
>>> something like this for the statically allocated object.
>>>
>>> template<typename T>
>>> void noDelete(T *ptr) {
>>> }
>>>
>>> pcl::PointCloud<pcl::PointXYZ>::ConstPtr ptr(&cloud,
>>> noDelete<pcl::PointCloud<pcl::PointXYZ>    >);
>>> seg.setInputCloud(ptr);
>>>
>>> This works in my code and does not generate any errors. I would
>>> appreciate any feedback/help on this.
>>>
>>> Thanks,
>>> Piyush
>>> _______________________________________________
>>> [hidden email] / http://pointclouds.org
>>> https://code.ros.org/mailman/listinfo/pcl-users
>>
_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users