{"action":"created","issue":{"url":"https://api.github.com/repos/ros-visualization/rviz/issues/924","labels_url":"https://api.github.com/repos/ros-visualization/rviz/issues/924/labels{/name}","comments_url":"https://api.github.com/repos/ros-visualization/rviz/issues/924/comments","events_url":"https://api.github.com/repos/ros-visualization/rviz/issues/924/events","html_url":"https://github.com/ros-visualization/rviz/issues/924","id":109578678,"number":924,"title":"RVIZ Fails to Load Plugins","user":{"login":"rhololkeolke","id":101521,"avatar_url":"https://avatars.githubusercontent.com/u/101521?v=3","gravatar_id":"","url":"https://api.github.com/users/rhololkeolke","html_url":"https://github.com/rhololkeolke","followers_url":"https://api.github.com/users/rhololkeolke/followers","following_url":"https://api.github.com/users/rhololkeolke/following{/other_user}","gists_url":"https://api.github.com/users/rhololkeolke/gists{/gist_id}","starred_url":"https://api.github.com/users/rhololkeolke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhololkeolke/subscriptions","organizations_url":"https://api.github.com/users/rhololkeolke/orgs","repos_url":"https://api.github.com/users/rhololkeolke/repos","events_url":"https://api.github.com/users/rhololkeolke/events{/privacy}","received_events_url":"https://api.github.com/users/rhololkeolke/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ros-visualization/rviz/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ros-visualization/rviz/milestones/102","html_url":"https://github.com/ros-visualization/rviz/milestones/untargeted","labels_url":"https://api.github.com/repos/ros-visualization/rviz/milestones/102/labels","id":580464,"number":102,"title":"untargeted","description":"If an issue is set to `untargeted`, this means that there is no plan to address currently and will not make progress unless someone claims it, sets a target version for it to be implemented in, and does the work of opening a pull request, getting it reviewed and tested and merged.","creator":{"login":"wjwwood","id":100427,"avatar_url":"https://avatars.githubusercontent.com/u/100427?v=3","gravatar_id":"","url":"https://api.github.com/users/wjwwood","html_url":"https://github.com/wjwwood","followers_url":"https://api.github.com/users/wjwwood/followers","following_url":"https://api.github.com/users/wjwwood/following{/other_user}","gists_url":"https://api.github.com/users/wjwwood/gists{/gist_id}","starred_url":"https://api.github.com/users/wjwwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjwwood/subscriptions","organizations_url":"https://api.github.com/users/wjwwood/orgs","repos_url":"https://api.github.com/users/wjwwood/repos","events_url":"https://api.github.com/users/wjwwood/events{/privacy}","received_events_url":"https://api.github.com/users/wjwwood/received_events","type":"User","site_admin":false},"open_issues":73,"closed_issues":30,"state":"open","created_at":"2014-02-25T23:29:03Z","updated_at":"2015-10-27T18:46:12Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-10-02T21:53:47Z","updated_at":"2015-10-27T18:46:12Z","closed_at":"2015-10-27T18:46:12Z","body":"I have just gone through a source installation using homebrew on Max OS X 10.10.5. Everything builds properly, however, when I start RVIZ it fails to find any plugins. I get the following error messages when starting:\r\n\r\n```\r\n\u001B[31m[ERROR] [1443822410.597903000]: The XML document \"/Users/rhol/ros_catkin_ws/install_isolated/share/rviz_plugin_tutorials/plugin_description.xml\" given to add must have either \"library\" or           \"class_libraries\" as the root tag\u001B[0m\r\n\u001B[31m[ERROR] [1443822410.598457000]: The XML document \"/Users/rhol/ros_catkin_ws/install_isolated/share/rviz/plugin_description.xml\" given to add must have either \"library\" or           \"class_libraries\" as the root tag\u001B[0m\r\nlibpng warning: iCCP: known incorrect sRGB profile\r\nlibpng warning: iCCP: known incorrect sRGB profile\r\n\u001B[31m[ERROR] [1443822412.203886000]: The XML document \"/Users/rhol/ros_catkin_ws/install_isolated/share/rviz_plugin_tutorials/plugin_description.xml\" given to add must have either \"library\" or           \"class_libraries\" as the root tag\u001B[0m\r\n\u001B[31m[ERROR] [1443822412.204393000]: The XML document \"/Users/rhol/ros_catkin_ws/install_isolated/share/rviz/plugin_description.xml\" given to add must have either \"library\" or           \"class_libraries\" as the root tag\u001B[0m\r\n\u001B[31m[ERROR] [1443822412.218883000]: The XML document \"/Users/rhol/ros_catkin_ws/install_isolated/share/rviz_plugin_tutorials/plugin_description.xml\" given to add must have either \"library\" or           \"class_libraries\" as the root tag\u001B[0m\r\n\u001B[31m[ERROR] [1443822412.219405000]: The XML document \"/Users/rhol/ros_catkin_ws/install_isolated/share/rviz/plugin_description.xml\" given to add must have either \"library\" or           \"class_libraries\" as the root tag\u001B[0m\r\nlibpng warning: iCCP: known incorrect sRGB profile\r\n\u001B[31m[ERROR] [1443822412.292074000]: The XML document \"/Users/rhol/ros_catkin_ws/install_isolated/share/rviz_plugin_tutorials/plugin_description.xml\" given to add must have either \"library\" or           \"class_libraries\" as the root tag\u001B[0m\r\n\u001B[31m[ERROR] [1443822412.292619000]: The XML document \"/Users/rhol/ros_catkin_ws/install_isolated/share/rviz/plugin_description.xml\" given to add must have either \"library\" or           \"class_libraries\" as the root tag\u001B[0m\r\n\u001B[31m[ERROR] [1443822412.292925000]: PluginlibFactory: The plugin for class 'rviz/Orbit' failed to load.  Error: According to the loaded plugin descriptions the class rviz/Orbit with base class type rviz::ViewController does not exist. Declared types are \u001B[0m\r\n2015-10-02 17:50:10.669 rviz[89513:2608173] modalSession has been exited prematurely - check for a reentrant call to endModalSession:\r\n\u001B[31m[ERROR] [1443822610.675354000]: PluginlibFactory: The plugin for class 'rviz/MoveCamera' failed to load.  Error: According to the loaded plugin descriptions the class rviz/MoveCamera with base class type rviz::Tool does not exist. Declared types are \u001B[0m\r\n[rospack] Error: no package given\r\n[librospack]: error while executing command\r\n[rospack] Error: no package given\r\n[librospack]: error while executing command\r\n\u001B[31m[ERROR] [1443822610.742142000]: PluginlibFactory: The plugin for class 'rviz/Interact' failed to load.  Error: According to the loaded plugin descriptions the class rviz/Interact with base class type rviz::Tool does not exist. Declared types are \u001B[0m\r\n[rospack] Error: no package given\r\n[librospack]: error while executing command\r\n[rospack] Error: no package given\r\n[librospack]: error while executing command\r\n\u001B[31m[ERROR] [1443822610.769387000]: PluginlibFactory: The plugin for class 'rviz/Select' failed to load.  Error: According to the loaded plugin descriptions the class rviz/Select with base class type rviz::Tool does not exist. Declared types are \u001B[0m\r\n[rospack] Error: no package given\r\n[librospack]: error while executing command\r\n[rospack] Error: no package given\r\n[librospack]: error while executing command\r\n\u001B[31m[ERROR] [1443822610.795808000]: PluginlibFactory: The plugin for class 'rviz/SetInitialPose' failed to load.  Error: According to the loaded plugin descriptions the class rviz/SetInitialPose with base class type rviz::Tool does not exist. Declared types are \u001B[0m\r\n[rospack] Error: no package given\r\n[librospack]: error while executing command\r\n[rospack] Error: no package given\r\n[librospack]: error while executing command\r\n\u001B[31m[ERROR] [1443822610.823075000]: PluginlibFactory: The plugin for class 'rviz/SetGoal' failed to load.  Error: According to the loaded plugin descriptions the class rviz/SetGoal with base class type rviz::Tool does not exist. Declared types are \u001B[0m\r\n[rospack] Error: no package given\r\n[librospack]: error while executing command\r\n[rospack] Error: no package given\r\n[librospack]: error while executing command\r\n\u001B[31m[ERROR] [1443822610.852078000]: PluginlibFactory: The plugin for class 'rviz/Grid' failed to load.  Error: According to the loaded plugin descriptions the class rviz/Grid with base class type rviz::Display does not exist. Declared types are \u001B[0m\r\n\u001B[31m[ERROR] [1443822610.866407000]: PluginlibFactory: The plugin for class 'rviz/Interact' failed to load.  Error: According to the loaded plugin descriptions the class rviz/Interact with base class type rviz::Tool does not exist. Declared types are \u001B[0m\r\n\u001B[31m[ERROR] [1443822610.866600000]: PluginlibFactory: The plugin for class 'rviz/MoveCamera' failed to load.  Error: According to the loaded plugin descriptions the class rviz/MoveCamera with base class type rviz::Tool does not exist. Declared types are \u001B[0m\r\n\u001B[31m[ERROR] [1443822610.866749000]: PluginlibFactory: The plugin for class 'rviz/Select' failed to load.  Error: According to the loaded plugin descriptions the class rviz/Select with base class type rviz::Tool does not exist. Declared types are \u001B[0m\r\n\u001B[31m[ERROR] [1443822610.866882000]: PluginlibFactory: The plugin for class 'rviz/FocusCamera' failed to load.  Error: According to the loaded plugin descriptions the class rviz/FocusCamera with base class type rviz::Tool does not exist. Declared types are \u001B[0m\r\n[rospack] Error: no package given\r\n[librospack]: error while executing command\r\n[rospack] Error: no package given\r\n[librospack]: error while executing command\r\n\u001B[31m[ERROR] [1443822610.893527000]: PluginlibFactory: The plugin for class 'rviz/Measure' failed to load.  Error: According to the loaded plugin descriptions the class rviz/Measure with base class type rviz::Tool does not exist. Declared types are \u001B[0m\r\n[rospack] Error: no package given\r\n[librospack]: error while executing command\r\n[rospack] Error: no package given\r\n[librospack]: error while executing command\r\n\u001B[31m[ERROR] [1443822610.920758000]: PluginlibFactory: The plugin for class 'rviz/SetInitialPose' failed to load.  Error: According to the loaded plugin descriptions the class rviz/SetInitialPose with base class type rviz::Tool does not exist. Declared types are \u001B[0m\r\n\u001B[31m[ERROR] [1443822610.920917000]: PluginlibFactory: The plugin for class 'rviz/SetGoal' failed to load.  Error: According to the loaded plugin descriptions the class rviz/SetGoal with base class type rviz::Tool does not exist. Declared types are \u001B[0m\r\n\u001B[31m[ERROR] [1443822610.921054000]: PluginlibFactory: The plugin for class 'rviz/PublishPoint' failed to load.  Error: According to the loaded plugin descriptions the class rviz/PublishPoint with base class type rviz::Tool does not exist. Declared types are \u001B[0m\r\n[rospack] Error: no package given\r\n[librospack]: error while executing command\r\n[rospack] Error: no package given\r\n[librospack]: error while executing command\r\n\u001B[31m[ERROR] [1443822610.948407000]: PluginlibFactory: The plugin for class 'rviz/Orbit' failed to load.  Error: According to the loaded plugin descriptions the class rviz/Orbit with base class type rviz::ViewController does not exist. Declared types are \u001B[0m\r\n2015-10-02 17:50:11.519 rviz[89513:2608173] modalSession has been exited prematurely - check for a reentrant call to endModalSession:\r\nlibpng warning: iCCP: known incorrect sRGB profile\r\n\u001B[0m[ INFO] [1443822410.574607000]: rviz version 1.11.9\u001B[0m\r\n\u001B[0m[ INFO] [1443822410.574650000]: compiled against OGRE version 1.7.4 (Cthugha)\u001B[0m\r\n\u001B[0m[ INFO] [1443822412.043594000]: Stereo is NOT SUPPORTED\u001B[0m\r\n\u001B[0m[ INFO] [1443822412.043681000]: OpenGl version: 2.1 (GLSL 1.2).\u001B[0m\r\n```\r\n\r\nIn addition to the attached terminal output a number of messages boxes appear. As an example here is what one of the message boxes says:\r\n\r\n~~~\r\nThe class required for this view controller, 'rviz/Orbit', could not be loaded.\r\nError:\r\nAccording to the loaded plugin descriptions the class rviz/Orbit with base class type rviz::ViewController does not exist. Declared types are \r\n~~~\r\n\r\nLooking at the log it appears as if pluginlib might be having trouble parsing the log file. Here is the relevant error I'm referring to:\r\n\r\n~~~\r\n[ERROR] [1443822410.598457000]: The XML document \"/Users/rhol/ros_catkin_ws/install_isolated/share/rviz/plugin_description.xml\" given to add must have either \"library\" or           \"class_libraries\" as the root tag\r\n~~~\r\n\r\nI've double checked and the path given in the log and it matches the path of the plugin_description.xml file. I've also double checked the XML and the root tag is indeed a library tag. I've run the plugin_description.xml file through an XML verifier to make sure the XML isn't malformed. The verifier finds nothing wrong with the XML.\r\n\r\nI've also double checked the `install_isolated/lib` folder and `libdefault_plugin.dylib` is indeed there.\r\n\r\nIf you believe that this is an error with pluginlib let me know and I'll open an issue on that project."},"comment":{"url":"https://api.github.com/repos/ros-visualization/rviz/issues/comments/151606895","html_url":"https://github.com/ros-visualization/rviz/issues/924#issuecomment-151606895","issue_url":"https://api.github.com/repos/ros-visualization/rviz/issues/924","id":151606895,"user":{"login":"rhololkeolke","id":101521,"avatar_url":"https://avatars.githubusercontent.com/u/101521?v=3","gravatar_id":"","url":"https://api.github.com/users/rhololkeolke","html_url":"https://github.com/rhololkeolke","followers_url":"https://api.github.com/users/rhololkeolke/followers","following_url":"https://api.github.com/users/rhololkeolke/following{/other_user}","gists_url":"https://api.github.com/users/rhololkeolke/gists{/gist_id}","starred_url":"https://api.github.com/users/rhololkeolke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhololkeolke/subscriptions","organizations_url":"https://api.github.com/users/rhololkeolke/orgs","repos_url":"https://api.github.com/users/rhololkeolke/repos","events_url":"https://api.github.com/users/rhololkeolke/events{/privacy}","received_events_url":"https://api.github.com/users/rhololkeolke/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T18:46:11Z","updated_at":"2015-10-27T18:46:11Z","body":"I changed the logging level to Debug and added some extra debug statements. It appears as if there is something wrong with my TinyXML version. I'm not entirely sure what could be causing the issue as I installed TinyXML with homebrew and it says that everything is the latest version. I've already tried uninstalling and reinstalling with homebrew and it doesn't seem to be working.\r\n\r\nThe error happens in the \r\n\r\n```c++\r\ntemplate <class T> void ClassLoader<T>::processSingleXMLPluginFile(const std::string& xml_file, std::map<std::string, ClassDesc>& classes_available)\r\n```\r\nmethod inside the `pluginlib/include/pluginlib/class_loader_imp.h` file. I added some code to print the contents of the file specified in `xml_file`. It prints out the full XML file with no problems. So I know the correct paths are being provided and the file is readable as ASCII. However, I cannot get any valid data out of the `TiXmlDocument` class. I tried using the TiXmlPrinter class, but that gives a segfault. Printing things like the `config->ValueStr()` manually gives me gibberish. \r\n\r\nJust to make sure that this was not an RVIZ specific problem I created a test package that just loads the same XML file and and attempts to parse and print the output with TinyXML. Same results. I double checked the paths being found by the CMake Module and everything looks correct. At this point I'm just assuming there is some weird bug with TinyXML for my particular system. I no longer think this is an RVIZ problem.\r\n\r\nThanks for the help."}}