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

rviz segfaults on cturtle, test machines (ros-pkg ticket #4240) #331

Closed
hershwg opened this issue Sep 19, 2012 · 4 comments
Closed

rviz segfaults on cturtle, test machines (ros-pkg ticket #4240) #331

hershwg opened this issue Sep 19, 2012 · 4 comments
Labels

Comments

@hershwg
Copy link
Member

hershwg commented Sep 19, 2012

We've been running rviz on this test machine before. As far as I know, I haven't changed the graphics driver or configuration.

I ran the visualizer, and got this error:
{{{
terminate called after throwing an instance of 'Ogre::InternalErrorException'
what(): OGRE EXCEPTION(7:InternalErrorException): Cannot create GL vertex buffer in GLHardwareVertexBuffer::GLHardwareVertexBuffer at /u/wgtest/production_qual_trees/2010-06-28/stacks/visualization_common/ogre/build/ogre_src_v1-7-1/RenderSystems/GL/src/OgreGLHardwareVertexBuffer.cpp (line 46)
[visualizer-9] process has died [pid 17773, exit code -6].
log files: /u/wgtest/.ros/log/7e92fea8-8b80-11df-918d-001b2150ad40/visualizer-9*.log
}}}

Then I tried running rviz, and it repeatedly segfaulted. I upgraded to ROS 1.1.12. Before the upgrade, everything worked (I think).
visualization: 1.1.2
visualization_common: 1.1.2

I got it to drop a core, here's the back trace:
{{{
(gdb) bt
#0 0x00007f99ea76a386 in wxEvtHandler::Disconnect(int, int, int, void (wxObject::)(wxEvent&), wxObject, wxEvtHandler*) () from /usr/lib/libwx_baseu-2.8.so.0
#1 0x00007f99ec4ed803 in wxEvtHandler::Disconnect (this=0xd0cc60, __in_chrg=)

at /usr/include/wx-2.8/wx/event.h:2449

#2 wxEvtHandler::Disconnect (this=0xd0cc60, __in_chrg=)

at /usr/include/wx-2.8/wx/event.h:2455

#3 ~VisualizationFrame (this=0xd0cc60, __in_chrg=)

at /u/wgtest/production_qual_trees/2010-06-28/stacks/visualization/rviz/src/rviz/visualization_frame.cpp:106

#4 0x00007f99eb07bc63 in wxAppBase::CleanUp() () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#5 0x00007f99ea71006f in wxEntryCleanup() () from /usr/lib/libwx_baseu-2.8.so.0
#6 0x00007f99ea710430 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
#7 0x0000000000414012 in main (argc=1, argv=0xffffffff)

at /u/wgtest/production_qual_trees/2010-06-28/stacks/visualization/rviz/src/rviz/visualizer_app.cpp:307

}}}

trac data:

@hershwg
Copy link
Member Author

hershwg commented Sep 19, 2012

[watts] Josh, any ideas? How can I tell if this is a graphics problem or how to fix it? rviz works fine on the same software on a machine in the next room. It looks like it's crashing while trying to tear down.

More from the same core:
{{{
(gdb) frame 3
#3 ~VisualizationFrame (this=0xd0cc60, _in_chrg=)
at /u/wgtest/production_qual_trees/2010-06-28/stacks/visualization/rviz/src/rviz/visualization_frame.cpp:106
106 toolbar
->Disconnect( wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler( VisualizationFrame::onToolClicked ), NULL, this );
(gdb) info frame
Stack level 3, frame at 0x7fff424927b0:
rip = 0x7f99ec4ed803 in ~VisualizationFrame
(/u/wgtest/production_qual_trees/2010-06-28/stacks/visualization/rviz/src/rviz/visualization_frame.cpp:106); saved rip 0x7f99eb07bc63
called by frame at 0x7fff424927d0, caller of frame at 0x7fff424927b0
source language c++.
Arglist at 0x7fff424926f8, args: this=0xd0cc60, __in_chrg=
Locals at 0x7fff424926f8, Previous frame's sp is 0x7fff424927b0
Saved registers:
rbx at 0x7fff42492778, rbp at 0x7fff42492780, r12 at 0x7fff42492788, r13 at 0x7fff42492790,
r14 at 0x7fff42492798, r15 at 0x7fff424927a0, rip at 0x7fff424927a8
(gdb) info locals
No locals.
(gdb) info args
this = 0xd0cc60
__in_chrg =
(gdb) info args
this = 0xd0cc60
__in_chrg =
(gdb) info locals
No locals.
(gdb) info frame
Stack level 3, frame at 0x7fff424927b0:
rip = 0x7f99ec4ed803 in ~VisualizationFrame
(/u/wgtest/production_qual_trees/2010-06-28/stacks/visualization/rviz/src/rviz/visualization_frame.cpp:106); saved rip 0x7f99eb07bc63
called by frame at 0x7fff424927d0, caller of frame at 0x7fff424927b0
source language c++.
Arglist at 0x7fff424926f8, args: this=0xd0cc60, __in_chrg=
Locals at 0x7fff424926f8, Previous frame's sp is 0x7fff424927b0
Saved registers:
rbx at 0x7fff42492778, rbp at 0x7fff42492780, r12 at 0x7fff42492788, r13 at 0x7fff42492790,
r14 at 0x7fff42492798, r15 at 0x7fff424927a0, rip at 0x7fff424927a8

}}}

@hershwg
Copy link
Member Author

hershwg commented Sep 19, 2012

[watts] Let me take a look at the graphics drivers on that machine.

@hershwg
Copy link
Member Author

hershwg commented Sep 19, 2012

[jfaust] Looks like a driver/card issue if it's on startup with no inputs.

@hershwg
Copy link
Member Author

hershwg commented Sep 19, 2012

[watts] I haven't had a chance to test that rviz works, but we identified a problem with the nvidia drivers when using the RT kernel. We have a script that can patch them manually. Thanks a lot, this should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant