Robotics StackExchange | Archived questions

QApplication error when using collada model

I am trying to follow the Import Meshes tutorial with a model that I downloaded from the Google Sketchup 3D Warehouse. I downloaded the .dae Collada file. I made a simple world according to the tutorial in the same directory as the model. When I try to launch Gazebo with the world, I get the following error:

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 'std::logicerror' what(): basicstring::Sconstruct null not valid

Asked by sm02 on 2016-03-22 13:21:08 UTC

Comments

Can you provide a full backtrace? Also let us know what version of Gazebo you are using, and how you are running Gazebo.

Asked by nkoenig on 2016-03-23 09:50:37 UTC

Same problem here! Did you find a solution? The example .dae file (yellow duck) works perfectly fine - any downloaded .dae file will cause 'std::logic_error' what(): basic_string::_S_construct null not valid

Asked by subs on 2016-05-12 10:36:32 UTC

I have the same problem: if I insert a model that has a mesh (which uses jpg images, downloaded from 3D Warehouse) and run Gazebo in verbose mode I obtain:

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 'std::logic_error' what(): basic_string::_S_construct null not valid

I'm using Gazebo 6.6.0

Asked by Marco on 2016-05-23 09:49:39 UTC

Answers

Can you open the collada file, and check that the image path is correct?

You can also try using a different image.

It would also be helpful if you point us to the model in the 3d warehouse.

Asked by nkoenig on 2016-05-24 07:42:37 UTC

Comments

I ran into similar problem with : https://3dwarehouse.sketchup.com/model.html?id=bb6d77fb0397a1caa3ed516aa372c122

terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_S_construct null not valid Warning [gazebo_main.cc:91] escalating to SIGKILL on server Gazebo 2.2.3 on 14.04 32bit Not sure how to open collada file in linux without gazebo The yellow duck example works. I will try other examples on sketchworks too

Asked by shaviland3 on 2016-09-09 10:43:31 UTC

I tried some different models and found that if I export only with 'Triangulate all Faces' and don't include 'export edges' it works. Not sure if that works for all models

Asked by shaviland3 on 2016-09-11 11:17:26 UTC