-
Notifications
You must be signed in to change notification settings - Fork 497
Invoking GUI plugins with -g causes QT error #1311
Comments
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters). What if you open Does that work? |
Original comment by Jackie K (Bitbucket: jacquelinekay). Nope. |
Original comment by Jackie K (Bitbucket: jacquelinekay).
|
Original comment by Jackie K (Bitbucket: jacquelinekay).
|
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters). I can confirm the failure:
|
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
|
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters). |
Original comment by Nate Koenig (Bitbucket: Nathan Koenig).
|
Original comment by Jennifer Buehler (Bitbucket: JenniferBuehler). I'm just looking at this too because that would be useful. Though noticed that it wouldn't work anyway as gazebo_shared::addPlugin() only takes plugins of type SYSTEM_PLUGIN. So I am guessing that the code to load the gui plugins from gazebo_client.cc is a remnant from previous versions. The error happens because QApplication has to be created before the plugin, but the plugin is created from parse_args() in GuiIface.cc. I created a pull request #2562 for this. |
Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).
Merged in JenniferBuehler/gazebo/gzclient_gui_plugin_loading (pull request #2562) Load GUI Plugins with gzclient parameter -g, fixes issue 1311 → <<cset 599f776>> |
Original report (archived issue) by Jackie K (Bitbucket: jacquelinekay).
On branch default, if I try to invoke a GUIPlugin with gazebo -g lib.so, Gazebo doesn't start and I get the error:
"QWidget: Must construct a QApplication before a QPaintDevice"
One can still load a GUI plugin by editing gui.ini, which is why this has been classified as minor, not major.
Plugins where this error occurs:
examples/plugins/gui_overlay_plugin_time
examples/plugins/gui_overlay_plugin_spawn
(in branch haptix_teleop_ux_test) plugins/GUIAratPlugin
The text was updated successfully, but these errors were encountered: