[Qgis-developer] qgis trunk fails to start (due to plugin)

Martin Weis martin.weis.newsadress at gmx.de
Tue May 3 06:31:13 EDT 2011


Hello!

I have qgis trunk (nightly builds/debian packages) running here, and
found that some plugins fail to work (maybe due to newer version of
qgis), leading to qgis not starting.
This can generally be circumvented starting without plugins:
qgis --noplugins

This is the console output (while loading SDA4PP):

> NEW LOGGING | 03.05.2011 12:09:34 | SDA4PP, Version=0.195
> CLASS NAME | FUNCTION NAME | VARIABLE NAME = VALUE
> sda4pp | initGui | pyqt version= 4.6.3
> LoadRlib | checkPartners | Checking rpy2.
> rpy2 version= 2.1.3
> LoadRlib | checkPartners | Checking R-cran.
> LoadRlib | checkPartners | Plug-in will not perform properly, Rpy2 could not call R-cran;
> 'show' not found
> sda4pp | makeToolDisable | The error = "Plug-in will not perform properly, Rpy2 could not call R-cran."
> wl | manageConfFile | mode = "writeInit"
> wl | manageConfFile | index = ""
> wl | manageConfFile | tool = ""
> 
>  *** caught segfault ***
> address 0x7a2, cause 'memory not mapped'
> 
> Possible actions:
> 1: abort (with core dump, if enabled)
> 2: normal R exit
> 3: exit R without saving workspace
> 4: exit R saving workspace
> Selection: 
> Segementation fault

Oops. Removed ~/.qgis/python/plugins/SDA4PP to make qgis start again.

This leads to a question: Should qgis be more foult tolerant towards
such plugin failures? A failure like the one below is no problem and
just throws a warning.
Ok, a segfault is bad and maybe cannot be recovered from. And the
plugins seems to do a lot before starting, failing with a segfault.
Reason could be unmet dependencies (R packages, didn't check thoroughly).


---
This was another dysfunct plugin, handled fine with a warning (removing
/home/martin/.qgis/python/plugins/autogcp/ solved it):

console output:
> Loaded : __error__ (package: autogcp)

Warning (in alert box):

> Couldn't load plugin autogcp due an error when calling its classFactory() method
> 
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 138, in startPlugin
>     plugins[packageName] = package.classFactory(iface)
>   File "/home/martin/.qgis/python/plugins/autogcp/__init__.py", line 34, in classFactory
>     from autogcp import AutoGCPPlugin
>   File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 283, in _import
>     mod = _builtin_import(name, globals, locals, fromlist, level)
>   File "/home/martin/.qgis/python/plugins/autogcp/autogcp.py", line 27, in 
>     from guibase import *
>   File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 283, in _import
>     mod = _builtin_import(name, globals, locals, fromlist, level)
>   File "/home/martin/.qgis/python/plugins/autogcp/guibase.py", line 31, in 
>     from projectiondialogbase import *
>   File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 283, in _import
>     mod = _builtin_import(name, globals, locals, fromlist, level)
>   File "/home/martin/.qgis/python/plugins/autogcp/projectiondialogbase.py", line 30, in 
>     from qgis.autogcp import *
>   File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 283, in _import
>     mod = _builtin_import(name, globals, locals, fromlist, level)
> ImportError: No module named autogcp
> 
> Python version:
> 2.6.6 (r266:84292, Dec 27 2010, 00:18:12) 
> [GCC 4.4.5]
> 
> 
> QGIS version:
> 1.7.0-Wroclaw Wroclaw, 15861M
> 
> Python path: ['/home/martin/.qgis/python/plugins/cswclient',
'/usr/share/qgis/python', '/home/martin/.qgis/python',
'/home/martin/.qgis/python/plugins', '/usr/share/qgis/python/plugins',
'/usr/local/lib/python2.6/dist-packages/rosinstall-0.5.12-py2.6.egg',
'/src/ros/ros/core/roslib/src', '/usr/lib/python2.6',
'/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk',
'/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',
'/usr/local/lib/python2.6/dist-packages',
'/usr/lib/python2.6/dist-packages',
'/usr/lib/python2.6/dist-packages/PIL',
'/usr/lib/python2.6/dist-packages/gst-0.10',
'/usr/lib/pymodules/python2.6', '/usr/lib/pymodules/python2.6/gtk-2.0',
'/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode',
'/usr/share/qgis/python', '~/.qgis/python']



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
Url : http://lists.osgeo.org/pipermail/qgis-developer/attachments/20110503/21b2cc61/signature.bin


More information about the Qgis-developer mailing list