Ask Your Question
0

*** glibc detected *** /opt/ros/groovy/lib/rviz/rviz: free(): invalid next size (normal): 0x000000000526d7f0 ***

asked 2014-03-03 14:53:55 -0600

chao gravatar image

Hi,

Would like to check if rviz is incompatible with groovy now? I am currently using ubuntu 12.04 and groovy.

i am managed to run the original rviz with minimal settings. however, for example, when i try to add in the laser scan data from the hokuyo node. it clashes and show the following errors. can anyone help me please? Thank you.

The error message shows

rosrun rviz rviz -d `rospack find rbx1_nav`/nav.rviz
[ INFO] [1393839197.213827908]: rviz version 1.9.34
[ INFO] [1393839197.213970839]: compiled against OGRE version 1.7.4 (Cthugha)
[ INFO] [1393839197.626062602]: OpenGl version: 4.4 (GLSL 4.4).
Segmentation fault (core dumped)

or

rosrun rviz rviz -d `rospack find rbx1_nav`/nav_test.rviz
[ INFO] [1393839262.349156655]: rviz version 1.9.34
[ INFO] [1393839262.349220165]: compiled against OGRE version 1.7.4 (Cthugha)
[ INFO] [1393839262.758079698]: OpenGl version: 4.4 (GLSL 4.4).
*** glibc detected *** /opt/ros/groovy/lib/rviz/rviz: free(): invalid next size (normal): 0x000000000526d7f0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x7f88b7addb96]
/usr/lib/x86_64-linux-gnu/OGRE-1.7.4/RenderSystem_GL.so(_ZN4Ogre21GLHardwarePixelBuffer10freeBufferEv+0x1b)[0x7f887a0de39b]
/usr/lib/x86_64-linux-gnu/OGRE-1.7.4/RenderSystem_GL.so(_ZN4Ogre21GLHardwarePixelBuffer14blitFromMemoryERKNS_8PixelBoxERKNS_3BoxE+0x259)[0x7f887a0de939]
/usr/lib/x86_64-linux-gnu/OGRE-1.7.4/RenderSystem_GL.so(_ZN4Ogre15GLTextureBuffer14blitFromMemoryERKNS_8PixelBoxERKNS_3BoxE+0x34)[0x7f887a0dfd64]
/usr/lib/x86_64-linux-gnu/libOgreMain.so.1.7.4(_ZN4Ogre7Texture11_loadImagesERKSt6vectorIPKNS_5ImageENS_12STLAllocatorIS4_NS_22CategorisedAllocPolicyILNS_14MemoryCategoryE0EEEEEE+0x81e)[0x7f88b4f1bf9e]
/usr/lib/x86_64-linux-gnu/libOgreMain.so.1.7.4(_ZN4Ogre7Texture9loadImageERKNS_5ImageE+0x101)[0x7f88b4f1b541]
/usr/lib/x86_64-linux-gnu/libOgreMain.so.1.7.4(_ZN4Ogre7Texture11loadRawDataERNS_9SharedPtrINS_10DataStreamEEEttNS_11PixelFormatE+0x79)[0x7f88b4f1a009]
/usr/lib/x86_64-linux-gnu/libOgreMain.so.1.7.4(_ZN4Ogre14TextureManager11loadRawDataERKSsS2_RNS_9SharedPtrINS_10DataStreamEEEttNS_11PixelFormatENS_11TextureTypeEifb+0x31c)[0x7f88b4f1e37c]
/opt/ros/groovy/lib/libdefault_plugin.so(_ZN4rviz10MapDisplay6updateEff+0x8e2)[0x7f8867c4b362]
/opt/ros/groovy/lib/librviz.so(_ZN4rviz12DisplayGroup6updateEff+0x81)[0x7f88b90d40b1]
/opt/ros/groovy/lib/librviz.so(_ZN4rviz20VisualizationManager8onUpdateEv+0x109)[0x7f88b917bd99]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x2b1)[0x7f88b4146281]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN7QObject5eventEP6QEvent+0x99)[0x7f88b414b179]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xb4)[0x7f88b8500894]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x113)[0x7f88b8505713]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8c)[0x7f88b4131e9c]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x1ac1f2)[0x7f88b41631f2]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x1a9c0d)[0x7f88b4160c0d]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x133)[0x7f88b2eb6d13]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x48060)[0x7f88b2eb7060]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x34)[0x7f88b2eb7124]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x6f)[0x7f88b41613bf]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x273d9e)[0x7f88b85a8d9e]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x32)[0x7f88b4130c82]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xf7)[0x7f88b4130ed7]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN16QCoreApplication4execEv+0x87)[0x7f88b4135f67]
/opt/ros/groovy/lib/rviz/rviz(main+0x4c)[0x400b0c]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f88b7a8076d]
/opt/ros/groovy/lib/rviz/rviz[0x400ba1]
======= Memory map: ========
00400000-00401000 r-xp 00000000 08:07 2368934                            /opt/ros/groovy/lib/rviz/rviz
00601000-00602000 r--p 00001000 08:07 2368934                            /opt/ros/groovy/lib/rviz/rviz
00602000-00603000 rw-p 00002000 08:07 2368934                            /opt/ros/groovy/lib/rviz/rviz
0143c000-0577e000 rw-p 00000000 00:00 0                                  [heap]
402da000-40378000 rw-p 00000000 00:00 0
40963000-40965000 r-xs 00000000 08:07 266350                             /tmp/glAhESiD (deleted)
41038000-410d6000 rw-p 00000000 00:00 0
41985000-41a23000 rw-p 00000000 00:00 ...
(more)
edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
2

answered 2014-03-03 20:37:31 -0600

Current rviz for groovy from .debs crashing when displaying data like pointclouds or laser scans is a known issue, see also here, here and here

There are two ways around this:

  • Compiling rviz yourself

or

  • Using the fuerte or hydro versions (the latter is recommended)

You´ll find info about those two in the links I posted.

edit flag offensive delete link more

Comments

I have read the 1st link but not the latter two. Thanks alot :)

chao gravatar imagechao ( 2014-03-03 21:29:49 -0600 )edit
0

answered 2018-01-17 03:29:56 -0600

nickcking gravatar image

updated 2018-01-17 03:37:39 -0600

jayess gravatar image

I encountered similar error,

free(): invalid next size " and "../sysdeps/unix/sysv/linux/raise.c: No such file or directory.

I was running a peripheral init job and then do ROS init and some other job. The peripheral init job runs fine and the ROS init job also works fine. But when do them together it always report this error. finally I found this is a memory problem. in the malloc() I missed a * in sizeof() then the size of malloc memory is not correct. just for someone who in the same boat.

edit flag offensive delete link more
0

answered 2014-03-03 15:09:27 -0600

brice rebsamen gravatar image

I'm using rviz with fuerte and hydro on Precise. It's unlikely that it would work with those 2 but not groovy. I'd suggest you check your hardware acceleration drivers. See http://wiki.ros.org/rviz/Troubleshooting

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

1 follower

Stats

Asked: 2014-03-03 14:53:55 -0600

Seen: 451 times

Last updated: Jan 17 '18