openrave runtime error

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

openrave runtime error

virgil
Hi,

I was wondering if anyone has encountered this obscure runtime error:

openrave(57457,0xb0207000) malloc: *** error for object 0x11e58674: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
openrave(57457,0xb0207000) malloc: *** error for object 0x11e58674: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug

I built the system on OSX 10.5.6, with gcc42 and macports 1.8.2.
Alternatively, if a kind soul could point me to a dmg openrave package, the danger of me
going postal on my Mac while trying to build this thing would be greatly reduced :-).

Best,
virgil
Reply | Threaded
Open this post in threaded view
|

Re: openrave runtime error

Rosen Diankov
Administrator
hi virgil,

i have never encountered this error, so i am guessing it is something
associated with mac osx. can you possibly run openrave in gdb and then
type 'bt' at the crash point so we can see at least what library is
the culprit? how often does it crash?

as for official package releases like dmg/deb/rpm, we first need to
wait for an official openrave version to get released. there was a
thread about what is required:

http://openrave-users-list.185357.n3.nabble.com/Re-releasing-plugins-td683573.html#a683573

this might take anywhere from 6 months to a year. until then, people
would have to build their own openrave versions....... and mac osx
happens to be the most painful out of linux/windows.

rosen,

2010/5/3 virgil <[hidden email]>:

>
> Hi,
>
> I was wondering if anyone has encountered this obscure runtime error:
>
> openrave(57457,0xb0207000) malloc: *** error for object 0x11e58674:
> Non-aligned pointer being freed
> *** set a breakpoint in malloc_error_break to debug
> openrave(57457,0xb0207000) malloc: *** error for object 0x11e58674:
> Non-aligned pointer being freed
> *** set a breakpoint in malloc_error_break to debug
>
> I built the system on OSX 10.5.6, with gcc42 and macports 1.8.2.
> Alternatively, if a kind soul could point me to a dmg openrave package, the
> danger of me
> going postal on my Mac while trying to build this thing would be greatly
> reduced :-).
>
> Best,
> virgil
> --
> View this message in context: http://openrave-users-list.185357.n3.nabble.com/openrave-runtime-error-tp774429p774429.html
> Sent from the OpenRAVE Users List mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Openrave-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/openrave-users
>

------------------------------------------------------------------------------
_______________________________________________
Openrave-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openrave-users
Reply | Threaded
Open this post in threaded view
|

Re: openrave runtime error

virgil
Hi Rosen,

Thank you for your quick reply. The crash is immediate on issuing the command and
as such I was never able to run openrave (which now is on top of my wishes for XMas).
Here is the output of backtracking in gdb:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
[Switching to process 57877 thread 0x1303]
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x13c19561 in SoQtGLWidgetP::qt_metacall (this=0x11ae02e0, _c=QMetaObject::InvokeMetaMethod, _id=-3, _a=0xb02062e4) at SoQtGLWidget.cpp:769
#2  0x13a95aca in QMetaObject::activate ()
#3  0x13c5f132 in SoQtGLArea::initializeGL () at moc_SoQtGLWidgetP.icc:78
#4  0x14bd5161 in QGLWidget::glInit () at moc_SoQtGLWidgetP.icc:78
#5  0x14bcfb4b in QGLWidget::resizeEvent () at moc_SoQtGLWidgetP.icc:78
#6  0x12e9a6ab in QWidget::event ()
#7  0x14bd4f2b in QGLWidget::event () at moc_SoQtGLWidgetP.icc:78
#8  0x13c5f053 in SoQtGLArea::event () at moc_SoQtGLWidgetP.icc:78
#9  0x12e40f1f in QApplicationPrivate::notify_helper ()
#10 0x12e46f81 in QApplication::notify ()
#11 0x13a82f72 in QCoreApplication::notifyInternal ()
#12 0x12e960cb in QWidgetPrivate::sendPendingMoveAndResizeEvents ()
#13 0x12e9d8d7 in QWidgetPrivate::show_helper ()
#14 0x12e9e063 in QWidget::setVisible ()
#15 0x12e9d848 in QWidgetPrivate::showChildren ()
#16 0x12e9d8ff in QWidgetPrivate::show_helper ()
#17 0x12e9e063 in QWidget::setVisible ()
#18 0x12e9d848 in QWidgetPrivate::showChildren ()
#19 0x12e9d8ff in QWidgetPrivate::show_helper ()
#20 0x12e9e063 in QWidget::setVisible ()
#21 0x12e9d848 in QWidgetPrivate::showChildren ()
#22 0x12e9d8ff in QWidgetPrivate::show_helper ()
#23 0x12e9e063 in QWidget::setVisible ()
#24 0x12e9d848 in QWidgetPrivate::showChildren ()
#25 0x12e9d8ff in QWidgetPrivate::show_helper ()
#26 0x12e9e063 in QWidget::setVisible ()
#27 0x13c161eb in SoQtComponent::show (this=0x11ae01d0) at SoQtComponent.cpp:582
#28 0x12d33742 in QtCoinViewer::main (this=0x12061400, bShow=64) at /Users/virgila/openrave/plugins/qtcoinrave/qtcoinviewer.cpp:1946
#29 0x000083ec in ~shared_count [inlined] () at /Users/virgila/openrave/src/openrave.cpp:533
#30 ~shared_ptr [inlined] () at shared_count.hpp:221
#31 ~shared_ptr [inlined] () at shared_count.hpp:169
#32 MainOpenRAVEThread () at shared_ptr.hpp:533
#33 0x0003ca0d in thread_proxy ()
#34 0x9673c155 in _pthread_start ()
#35 0x9673c012 in thread_start ()
(gdb)

I would venture to say I feel fairly limited as a debugger in this situation, especially since on my system
there are present multiple development environments (System Framework, Developer, /usr/bin, /usr/local/bin and /opt/local/bin) and although I started with a fresh macports install, I have a feeling
that things get mixed up during the numerous ensuing compilations.

Thanks,

Virgil
I
Reply | Threaded
Open this post in threaded view
|

Re: openrave runtime error

Rosen Diankov
Administrator
hi virgil,

you are having trouble compiling the viewer plugin for openrave, which
relies on a library called soqt. SoQt itself uses a 3D library called
coin3d and a GUI called Qt (version 4). The errors below are most
likely due to these libraries not being linked correctly (ie you have
multiple versions of one library). As far as i remember, in macports
there are two different versions of qt4, so that might be a place you
can begin searching.

unfortunately, the soqt viewer is the only viewer plugin in openrave
right now. most likely a new openrave viewer based on the
openscenegraph library will be developed to counter the countless
problems associated with soqt...

rosen,

2010/5/3 virgil <[hidden email]>:

>
> Hi Rosen,
>
> Thank you for your quick reply. The crash is immediate on issuing the
> command and
> as such I was never able to run openrave (which now is on top of my wishes
> for XMas).
> Here is the output of backtracking in gdb:
>
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
> [Switching to process 57877 thread 0x1303]
> 0x00000000 in ?? ()
> (gdb) bt
> #0  0x00000000 in ?? ()
> #1  0x13c19561 in SoQtGLWidgetP::qt_metacall (this=0x11ae02e0,
> _c=QMetaObject::InvokeMetaMethod, _id=-3, _a=0xb02062e4) at
> SoQtGLWidget.cpp:769
> #2  0x13a95aca in QMetaObject::activate ()
> #3  0x13c5f132 in SoQtGLArea::initializeGL () at moc_SoQtGLWidgetP.icc:78
> #4  0x14bd5161 in QGLWidget::glInit () at moc_SoQtGLWidgetP.icc:78
> #5  0x14bcfb4b in QGLWidget::resizeEvent () at moc_SoQtGLWidgetP.icc:78
> #6  0x12e9a6ab in QWidget::event ()
> #7  0x14bd4f2b in QGLWidget::event () at moc_SoQtGLWidgetP.icc:78
> #8  0x13c5f053 in SoQtGLArea::event () at moc_SoQtGLWidgetP.icc:78
> #9  0x12e40f1f in QApplicationPrivate::notify_helper ()
> #10 0x12e46f81 in QApplication::notify ()
> #11 0x13a82f72 in QCoreApplication::notifyInternal ()
> #12 0x12e960cb in QWidgetPrivate::sendPendingMoveAndResizeEvents ()
> #13 0x12e9d8d7 in QWidgetPrivate::show_helper ()
> #14 0x12e9e063 in QWidget::setVisible ()
> #15 0x12e9d848 in QWidgetPrivate::showChildren ()
> #16 0x12e9d8ff in QWidgetPrivate::show_helper ()
> #17 0x12e9e063 in QWidget::setVisible ()
> #18 0x12e9d848 in QWidgetPrivate::showChildren ()
> #19 0x12e9d8ff in QWidgetPrivate::show_helper ()
> #20 0x12e9e063 in QWidget::setVisible ()
> #21 0x12e9d848 in QWidgetPrivate::showChildren ()
> #22 0x12e9d8ff in QWidgetPrivate::show_helper ()
> #23 0x12e9e063 in QWidget::setVisible ()
> #24 0x12e9d848 in QWidgetPrivate::showChildren ()
> #25 0x12e9d8ff in QWidgetPrivate::show_helper ()
> #26 0x12e9e063 in QWidget::setVisible ()
> #27 0x13c161eb in SoQtComponent::show (this=0x11ae01d0) at
> SoQtComponent.cpp:582
> #28 0x12d33742 in QtCoinViewer::main (this=0x12061400, bShow=64) at
> /Users/virgila/openrave/plugins/qtcoinrave/qtcoinviewer.cpp:1946
> #29 0x000083ec in ~shared_count [inlined] () at
> /Users/virgila/openrave/src/openrave.cpp:533
> #30 ~shared_ptr [inlined] () at shared_count.hpp:221
> #31 ~shared_ptr [inlined] () at shared_count.hpp:169
> #32 MainOpenRAVEThread () at shared_ptr.hpp:533
> #33 0x0003ca0d in thread_proxy ()
> #34 0x9673c155 in _pthread_start ()
> #35 0x9673c012 in thread_start ()
> (gdb)
>
> I would venture to say I feel fairly limited as a debugger in this
> situation, especially since on my system
> there are present multiple development environments (System Framework,
> Developer, /usr/bin, /usr/local/bin and /opt/local/bin) and although I
> started with a fresh macports install, I have a feeling
> that things get mixed up during the numerous ensuing compilations.
>
> Thanks,
>
> Virgil
> I
> --
> View this message in context: http://openrave-users-list.185357.n3.nabble.com/openrave-runtime-error-tp774429p774635.html
> Sent from the OpenRAVE Users List mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Openrave-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/openrave-users
>

------------------------------------------------------------------------------
_______________________________________________
Openrave-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openrave-users
Reply | Threaded
Open this post in threaded view
|

Re: openrave runtime error

virgil
Hi Rosen,

No complaints whatsoever, I was just hoping that someone else fought with this
misery, but it appears I am uniquely hapless. I will try rebuilding Qt, SoQt and openrave,
if that doesn't work, I'll build it in ubuntu in a virtual machine.

Cheers,

virgil