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

Silent crash when using MovableText::Load() #3302

Open
tonydangct opened this issue Mar 3, 2023 · 1 comment
Open

Silent crash when using MovableText::Load() #3302

tonydangct opened this issue Mar 3, 2023 · 1 comment

Comments

@tonydangct
Copy link

Environment

  • OS Version: Ubuntu 20.04.5
  • Gazebo version 11.12.0
  • ROS Galactic

Description

I am trying to use the MovableText class to display text in my gazebo simulation. My code looks as follows:

auto text_ptr = new gazebo::rendering::MovableText;
text_ptr->Load("model", "sample_text", "Arial", 1.0, ignition::math::Color::Green);

The code crashes (silently) when trying to load the object:

[ERROR] [gzclient-16]: process has died [pid 166166, exit code -11, cmd 'gzclient --verbose <path_to_world>'].

After inspecting the source code, the exact line where it crashes is here:

this->dataPtr->font->load();

which led me to this (old) Ogre related issue: https://forums.ogre3d.org/viewtopic.php?t=84010. If this is indeed the issue, it should be an easy fix.

Steps to reproduce

Try out the piece of code I added above.

@scpeters
Copy link
Member

scpeters commented Mar 8, 2023

Thank you for the bug report. Where did you add that code? Is it in a plugin or a modification of the code in gzclient?

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

No branches or pull requests

2 participants