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

RVIZ font issue with TF #24

Closed
capaulson opened this issue Jan 3, 2021 · 5 comments
Closed

RVIZ font issue with TF #24

capaulson opened this issue Jan 3, 2021 · 5 comments
Labels
osx Related to OSX build platform

Comments

@capaulson
Copy link

Using on Mac OS X. RVIZ runs fine, but when you attempt to add the TF info, RVIZ crashes with:

libc++abi.dylib: terminating with uncaught exception of type Ogre::Exception: : Could not find font Liberation Sans in MovableText::setFontName

Not sure where to start, any pointers?

@Tobias-Fischer
Copy link
Collaborator

Tobias-Fischer commented Jan 3, 2021

Hiya,

Could you try applying the following patch? I'm not sure where this file ends up, let me know if you cannot find it.

diff --git a/ogre_media/fonts/liberation_sans.fontdef b/ogre_media/fonts/liberation_sans.fontdef
index e714db0f..311a7ac5 100644
--- a/ogre_media/fonts/liberation_sans.fontdef
+++ b/ogre_media/fonts/liberation_sans.fontdef
@@ -1,12 +1,12 @@
-Liberation Sans
-{
-  type truetype
-  source liberation-sans/LiberationSans-Regular.ttf
-  size 18
-  resolution 96
-}
+// Liberation Sans
+// {
+//   type truetype
+//   source liberation-sans/LiberationSans-Regular.ttf
+//   size 18
+//   resolution 96
+// }
 
-# Ogre >= 1.10 has changed the format
+// Ogre >= 1.10 has changed the format
 font "Liberation Sans"
 {
   type truetype

(from conda-forge/ogre-feedstock#15)

@Tobias-Fischer Tobias-Fischer added the osx Related to OSX build platform label Jan 4, 2021
@Tobias-Fischer
Copy link
Collaborator

Actually this patch I mentioned before is not needed anymore - it must be something else. I am not sure where to start either, then, sorry .. I would build rviz with the patches applied (https://github.com/RoboStack/ros-noetic/blob/master/patch/ros-noetic-rviz.patch & https://github.com/RoboStack/ros-noetic/blob/master/patch/ros-noetic-rviz.osx.patch) in debug configuration within a catkin_ws, and then try to see whether you can get any more specific pointers where things fail.

@Tobias-Fischer
Copy link
Collaborator

Tobias-Fischer commented Jan 7, 2021

@capaulson: Could you please post the output of rosrun rviz rviz -l? As well as the output of conda list

@Tobias-Fischer
Copy link
Collaborator

Found the culprit - rviz is rebulding now. Please uninstall & reinstall and it should work (wait an hour at least for the rebuild)

@capaulson
Copy link
Author

Fantastic! Thank you for the very quick response!

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

No branches or pull requests

2 participants