Hi Joshua, On Sun, Mar 2, 2014 at 11:35 AM, Joshua Arnott <[email protected]>wrote:
> > Hello, > > I'm getting the error below when I try to add a layer from the OpenLayers > plugin. > > I think this is the same issue as here: > http://lists.osgeo.org/pipermail/qgis-developer/2013-December/029682.html > > I'm using a version of QGIS I compiled myself (33a8b63) on OpenSUSE 12.3 > (32-bit). I've not had problems using this previously. > > The error seems to be coming from the mapRenderer function, as I get the > same if I try to enter "iface.mapCanvas().mapRenderer()" in the Python > console. > You are using the current 2.3-dev version, which includes the new multi-threaded renderer. The OpenLayers plugin evidently has not been updated to work with the new renderer setup. Please create a new issue ticket on the plugin's tracker [0]. On Mac, using latest 2.3-dev, I actually get a segfault, but that is due (I think) to the excessive log output crashing the app. Debug output in Terminal (please add to ticket): OpenlayersLayer draw Warning: QPixmap: It is not safe to use pixmaps outside the GUI thread src/core/qgsmessagelog.cpp: 45: (logMessage) 2014-03-02T18:25:20 Qt[1] QPixmap: It is not safe to use pixmaps outside the GUI thread Segmentation fault: 11 If you really need the OpenLayers plugin, try dropping back to the latest release version, QGIS 2.2. Regards, Larry Shaffer Dakota Cartography Black Hills, South Dakota > I have tried recompiling, but there is no change. Other than this QGIS > functions as expected. > > Josh > > An error has occured while executing Python code: >> >> Traceback (most recent call last): >> File >> "/home/snorf/.qgis2/python/plugins/openlayers_plugin/openlayers_plugin.py", >> line 50, in addLayer >> self.__plugin.addLayer(self) >> File >> "/home/snorf/.qgis2/python/plugins/openlayers_plugin/openlayers_plugin.py", >> line 202, in addLayer >> self.__setMapSrsGoogle() >> File >> "/home/snorf/.qgis2/python/plugins/openlayers_plugin/openlayers_plugin.py", >> line 253, in __setMapSrsGoogle >> mapCanvas.mapRenderer().setProjectionsEnabled(True) >> TypeError: C++ type 'const QgsMapLayer*' is not supported as type >> >> Python version: >> 2.7.3 (default, Apr 14 2012, 08:58:41) [GCC] >> >> >> QGIS version: >> 2.3.0-Master Master, 33a8b63 >> >> Python path: ['/home/snorf/.qgis2/python/plugins/processing', >> '/home/snorf/apps/share/qgis/python', u'/home/snorf/.qgis2/python', >> u'/home/snorf/.qgis2/python/plugins', >> '/home/snorf/apps/share/qgis/python/plugins', >> '/usr/lib/python2.7/site-packages/elementtree-1.2.7_20070827_preview-py2.7.egg', >> '/usr/lib/python2.7/site-packages/Sphinx-1.2b3-py2.7.egg', >> '/usr/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg', >> '/usr/lib/python2.7/site-packages/docutils-0.11-py2.7.egg', >> '/usr/lib/python2.7/site-packages/Pygments-1.6-py2.7.egg', >> '/usr/lib/python2.7/site-packages/MarkupSafe-0.18-py2.7-linux-i686.egg', >> '/usr/lib/python2.7/site-packages/sphinx_intl-0.9.3-py2.7.egg', >> '/usr/lib/python2.7/site-packages/polib-1.0.3-py2.7.egg', >> '/usr/lib/python2.7/site-packages/sphinx_bootstrap_theme-0.3.2-py2.7.egg', >> '/usr/lib/python2.7/site-packages/colormath-1.0.8-py2.7.egg', >> '/usr/lib/python2.7/site-packages/webcolors-1.4-py2.7.egg', >> '/usr/lib/python2.7/site-packages/termcolor-1.1.0-py2.7.egg', >> '/home/snorf/apps/share/qgis/python', >> '/home/snorf/apps/share/qgis/python/plugins', '/home/snorf', >> '/usr/lib/python27.zip', '/usr/lib/python2.7', >> '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', >> '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', >> '/usr/lib/python2.7/site-packages', >> '/usr/local/lib/python2.7/site-packages', >> '/usr/lib/python2.7/site-packages/gst-0.10', >> '/usr/lib/python2.7/site-packages/gtk-2.0', >> '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info', >> '/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode', >> '/home/snorf/apps/share/qgis/python/plugins/fTools/tools', >> '/home/snorf/.qgis2/python/plugins/mmqgis/forms', '~/.qgis/python'] >> >> > _______________________________________________ > Qgis-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-user >
_______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
