{"action":"created","issue":{"url":"https://api.github.com/repos/ros-visualization/rviz/issues/895","labels_url":"https://api.github.com/repos/ros-visualization/rviz/issues/895/labels{/name}","comments_url":"https://api.github.com/repos/ros-visualization/rviz/issues/895/comments","events_url":"https://api.github.com/repos/ros-visualization/rviz/issues/895/events","html_url":"https://github.com/ros-visualization/rviz/issues/895","id":90827220,"number":895,"title":"librviz Python Bindings - Segmentation Fault when using method \"setStatusBar()\"","user":{"login":"futureneer","id":2780699,"avatar_url":"https://avatars.githubusercontent.com/u/2780699?v=3","gravatar_id":"","url":"https://api.github.com/users/futureneer","html_url":"https://github.com/futureneer","followers_url":"https://api.github.com/users/futureneer/followers","following_url":"https://api.github.com/users/futureneer/following{/other_user}","gists_url":"https://api.github.com/users/futureneer/gists{/gist_id}","starred_url":"https://api.github.com/users/futureneer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/futureneer/subscriptions","organizations_url":"https://api.github.com/users/futureneer/orgs","repos_url":"https://api.github.com/users/futureneer/repos","events_url":"https://api.github.com/users/futureneer/events{/privacy}","received_events_url":"https://api.github.com/users/futureneer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-25T01:54:45Z","updated_at":"2015-06-25T02:15:46Z","closed_at":null,"body":"Hello,\r\nI am getting a segmentation fault when trying to hide the status bar in the rviz VisualizationFrame widget.  Here is a minimal example which produces the segfault:\r\n\r\n```python\r\n#! /usr/bin/env python\r\nimport sys\r\nimport rviz\r\nfrom python_qt_binding.QtGui import *\r\nfrom python_qt_binding.QtCore import *\r\n\r\n\r\nclass TestWidget(QWidget):\r\n    def __init__(self):\r\n        QWidget.__init__(self)\r\n\r\n        # config_path = '~/.rviz/default.rviz'\r\n        config_path = ''\r\n\r\n        self.frame= rviz.VisualizationFrame()\r\n        self.frame.setSplashPath('')\r\n        self.frame.setMenuBar(None)\r\n        self.frame.setStatusBar(None)\r\n        self.frame.initialize()\r\n\r\n        reader = rviz.YamlConfigReader()\r\n        config = rviz.Config()\r\n        reader.readFile(config,config_path)\r\n        self.frame.load(config)\r\n\r\n        self.manager = self.frame.getManager()\r\n\r\n        layout = QVBoxLayout()\r\n        layout.addWidget( self.frame )\r\n\r\n        top_button = QPushButton( \"Top View\" )\r\n        layout.addWidget( top_button )\r\n\r\n        self.setLayout(layout)\r\n\r\nif __name__ == '__main__':\r\n    app = QApplication( sys.argv )\r\n    test_widget = TestWidget()\r\n    test_widget.resize( 500, 500 )\r\n    test_widget.show()\r\n    app.exec_()\r\n```\r\n\r\nBy commenting out the line:\r\n```python\r\n    # self.frame.setStatusBar(None)\r\n```\r\n\r\nthe code runs just fine.\r\n\r\nLet me know what you think, and thanks!!\r\n\r\nKel"},"comment":{"url":"https://api.github.com/repos/ros-visualization/rviz/issues/comments/115071910","html_url":"https://github.com/ros-visualization/rviz/issues/895#issuecomment-115071910","issue_url":"https://api.github.com/repos/ros-visualization/rviz/issues/895","id":115071910,"user":{"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},"created_at":"2015-06-25T02:15:46Z","updated_at":"2015-06-25T02:15:46Z","body":"Looks like it might be related to the function which updates the fps:\r\n\r\n```\r\n#0  0x00007ffff2efe9e0 in QString::operator==(QString const&) const () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4\r\n#1  0x00007ffff141b285 in QLabel::setText(QString const&) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4\r\n#2  0x00007fffe38d8ff9 in rviz::VisualizationFrame::updateFps() () from /opt/ros/jade/lib/librviz.so\r\n#3  0x00007ffff2fd187a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) ()\r\n   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4\r\n#4  0x00007fffe38e4b99 in rviz::VisualizationManager::onUpdate() () from /opt/ros/jade/lib/librviz.so\r\n#5  0x00007ffff2fd187a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) ()\r\n   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4\r\n#6  0x00007ffff2fd5a31 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4\r\n#7  0x00007ffff1026e2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()\r\n   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4\r\n#8  0x00007ffff102d4a0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4\r\n#9  0x00007ffff2051186 in ?? () from /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so\r\n#10 0x00007ffff2fbd4dd in QCoreApplication::notifyInternal(QObject*, QEvent*) ()\r\n```"}}