Ask Your Question
0

RVIZ cannot be initialized

asked 2012-07-29 22:23:38 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

At the very beginning, the PC cannot be started, after remove the memory and plug back to the slot, the PC could be started. When I run some code, the rviz cannot be started, then I check the RVIZ alone, but it failed again. Corresponding terminal shows as the following:

rct@rct-desktop:~$ rosrun rviz rviz GLib-ERROR **: /build/buildd/glib2.0-2.24.1/glib/gmem.c:137: failed to allocate 251658321 bytes aborting... Aborted rct@rct-desktop:~$ exitallelujah@allelujah-desktop:~/datarecord/rviz$

edit retag flag offensive close merge delete

Comments

Sorry that there is no room to reply to wiki, but to update the software does not work. I think Lorenz could be right, I will clear the memory manually. THX

allelujah-wang gravatar image allelujah-wang  ( 2012-07-29 22:53:15 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-07-29 22:44:34 -0500

Lorenz gravatar image

I don't think this is really a problem with ROS or rviz. Rather, I think you might have a broken memory module that reduces the amount of RAM that is available. It seems like rviz is just unable to allocate enough memory.

edit flag offensive delete link more
0

answered 2012-07-29 22:28:34 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

First try,

$ sudo apt-get install libglib2.0-dev

Then run $ rosrun rviz rviz.

Note: Before this don't forget to start the $roscore

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-07-29 22:23:38 -0500

Seen: 221 times

Last updated: Jul 29 '12