All4Gis / CustomToolBar

Create customs Toolbars for Qgis.
9 stars 0 forks source link

QGIS crashes when I click on Help #1

Closed gacarrillor closed 8 years ago

gacarrillor commented 8 years ago

When I open the main window of the plugin and click on the Help button, QGIS crashes. I'm using QGIS 2.14.2 on a GNU/Linux machine.

Thanks for the plugin!

Regards, Germán

All4Gis commented 8 years ago

On the Help Button!!??Do you have a "minidump"?Can you give me more information? the help buttton only open a Qdialog.

gacarrillor commented 8 years ago

I could extract this couple of messages:

1) When launching QGIS from the command line, this is the relevant message obtained after I click the Help button:

Warning: QWidget::setLayout: Attempting to set QLayout "" on CustomToolbarDialog "CustomToolbarDialog", which already has a layout

(qgis.bin:5662): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed

(qgis.bin:5662): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed
Warning: X Error: BadLength (poly request too large or internal Xlib length error) 16
  Extension:    139 (RENDER)
  Minor opcode: 7 (RenderFreePicture)
  Resource id:  0x2c00149
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
qgis.bin: ../../src/xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Aborted

2) When I open the QGIS messages panel and look into 'Python warning' tab, I see this:

traceback:  File "<string>", line 1, in <module>
              File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 306, in startPlugin
                plugins[packageName] = package.classFactory(iface)
              File "/home/germap/.qgis2/python/plugins/CustomToolBar/__init__.py", line 11, in classFactory
                return CustomToolbar(iface)
              File "/home/germap/.qgis2/python/plugins/CustomToolBar/CustomToolbar.py", line 61, in __init__
                ActivatePlugins(self.iface)
              File "/home/germap/.qgis2/python/plugins/CustomToolBar/utils/utils.py", line 29, in ActivatePlugins
                startPlugin(plugin)
              File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 306, in startPlugin
                plugins[packageName] = package.classFactory(iface)
              File "/home/germap/.qgis2/python/plugins/lrs/__init__.py", line 53, in classFactory
                return LrsPlugin(iface)

Hope this helps.

All4Gis commented 8 years ago

Check the new version 0.7. http://plugins.qgis.org/plugins/CustomToolBar/

gacarrillor commented 8 years ago

Still unable to access Help or About buttons with v.0.7. This is the error I'm getting:

traceback:  File "<string>", line 1, in <module>
              File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 306, in startPlugin
                plugins[packageName] = package.classFactory(iface)
              File "/home/germap/.qgis2/python/plugins/CustomToolBar/__init__.py", line 11, in classFactory
                return CustomToolbar(iface)
              File "/home/germap/.qgis2/python/plugins/CustomToolBar/CustomToolbar.py", line 61, in __init__
                ActivatePlugins(self.iface)
              File "/home/germap/.qgis2/python/plugins/CustomToolBar/utils/utils.py", line 29, in ActivatePlugins
                startPlugin(plugin)
              File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 306, in startPlugin
                plugins[packageName] = package.classFactory(iface)
              File "/home/germap/.qgis2/python/plugins/lrs/__init__.py", line 53, in classFactory
                return LrsPlugin(iface)

I use the plugin LRS v.0.3.6.

All4Gis commented 8 years ago

I have the same error in the Qgis log,but I can open the help dialog. Do you can't click on the button,right?If you click Qgis crashed?Only show this trace? Thanks

gacarrillor commented 8 years ago

That's right, as soon as I release the click on the button (Help or About), QGIS crashes. That's the whole message I get.

All4Gis commented 8 years ago

I can't reproduce it,but , Do you can try the version 0.8 from Github repository? thanks

gacarrillor commented 8 years ago

Good news! The bug disappears with v.0.8! Thanks for your time, very nice plugin!