Ask Your Question
1

Rviz OGRE Exception(2:InvalidParametersException)

asked 2016-03-01 07:56:26 -0600

arttp2 gravatar image

Hi all,

I am running the map_merger and adhoc_communication nodes.

Upon running Rviz in Ubuntu 14.04.02 in ROS Indigo, the map that I am receiving is not being displayed in Rviz's Map Panel.

I am getting the following error in terminal when it crashes.

:~$ rosrun rviz rviz 
[ INFO] [1456839797.277826148]: rviz version 1.11.10
[ INFO] [1456839797.277920664]: compiled against OGRE version 1.8.1 (Byatis)
[ INFO] [1456839797.424068151]: Stereo is NOT SUPPORTED
[ INFO] [1456839797.424221656]: OpenGl version: 3 (GLSL 1.3).
[ WARN] [1456839858.058198339]: OGRE EXCEPTION(2:InvalidParametersException): Stream size does not match  calculated image size in Image::loadRawData at /build/buildd/ogre-1.8-1.8.1+dfsg/OgreMain/src/OgreImage.cpp (line 283)
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'Ogre::InvalidParametersException'
what():  OGRE EXCEPTION(2:InvalidParametersException): Stream size does not match calculated image size in Image::loadRawData at /build/buildd/ogre-1.8-1.8.1+dfsg/OgreMain/src/OgreImage.cpp (line 283)
Aborted (core dumped)
edit retag flag offensive close merge delete

Comments

This error happens as soon as I subscribe to the required topic where the map is being published.

arttp2 gravatar image arttp2  ( 2016-03-01 07:57:56 -0600 )edit

DId you figure it out ?? I am having the same issue

hpurohit gravatar image hpurohit  ( 2017-06-20 12:15:41 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2018-04-23 09:09:00 -0600

hmchung gravatar image

I got into the same issue and realized it was actually image encoding issue. In my case, I tried to encode gray scale image into "bgr8" for image publisher. Obviously, this is invalid. Maybe you had the same issue?

edit flag offensive delete link more
0

answered 2018-01-23 01:37:48 -0600

130s gravatar image

I briefly saw this today and fixed by making sure the image topic I want was coming through (I was subscribing to topics published on another host, and ROS network wasn't properly configured). Very partial info but still HTH.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.3 LTS
$ rviz -d ~/custom.rviz
[ INFO] [1516658841.051599944]: rviz version 1.12.15
[ INFO] [1516658841.051644922]: compiled against Qt version 5.5.1
[ INFO] [1516658841.051655414]: compiled against OGRE version 1.9.0 (Ghadamon)
[ INFO] [1516658841.164150807]: Stereo is NOT SUPPORTED
[ INFO] [1516658841.164223593]: OpenGl version: 3 (GLSL 1.3).
:
[ WARN] [1516658951.717543181]: OGRE EXCEPTION(2:InvalidParametersException): Stream size does not match calculated image size in Image::loadRawData at /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain
/src/OgreImage.cpp (line 283)
[ERROR] [1516658951.717640251]: Error loading image: OGRE EXCEPTION(2:InvalidParametersException): Stream size does not match calculated image size in Image::loadRawData at /build/ogre-1.9-mqY1wq/ogre-1.9
-1.9.0+dfsg1/OgreMain/src/OgreImage.cpp (line 283)
[ WARN] [1516658951.752948515]: OGRE EXCEPTION(2:InvalidParametersException): Stream size does not match calculated image size in Image::loadRawData at /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain
/src/OgreImage.cpp (line 283)
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

2 followers

Stats

Asked: 2016-03-01 07:56:26 -0600

Seen: 2,571 times

Last updated: Apr 23 '18