<div dir="ltr"><div>Hi Larry,<br><br></div>I've just tried compiling QGIS 2.2 (final-2_2_0, 1c3699e) and it gives me the same error. So perhaps it is not related to the new renderer.<br><br>Josh<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On 3 March 2014 01:30, Larry Shaffer <span dir="ltr"><<a href="mailto:larrys@dakotacarto.com" target="_blank">larrys@dakotacarto.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Joshua,<br><div class="gmail_extra"><br><div class="gmail_quote"><div class="">On Sun, Mar 2, 2014 at 11:35 AM, Joshua Arnott <span dir="ltr"><<a href="mailto:josh@snorfalorpagus.net" target="_blank">josh@snorfalorpagus.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br>Hello,<br><div><br></div><div>I'm getting the error below when I try to add a layer from the OpenLayers plugin.<br>

<br></div><div>I think this is the same issue as here: <a href="http://lists.osgeo.org/pipermail/qgis-developer/2013-December/029682.html" target="_blank">http://lists.osgeo.org/pipermail/qgis-developer/2013-December/029682.html</a><br>


<br></div><div>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.<br><br></div><div>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.<br></div></div></blockquote><div><br></div></div><div>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].<br>

</div><div><br></div><div>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.<br><br></div><div>Debug output in Terminal (please add to ticket):<br>

</div><div><br>OpenlayersLayer draw<br>Warning: QPixmap: It is not safe to use pixmaps outside the GUI thread<br>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<br>

Segmentation fault: 11<br></div><div><br></div><div>If you really need the OpenLayers plugin, try dropping back to the latest release version, QGIS 2.2.<br></div><div><br><br></div><div>Regards,<br></div><div><br>Larry Shaffer<br>

Dakota Cartography<br>Black Hills, South Dakota<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div dir="ltr"><div></div><div>
I have tried recompiling, but there is no change. Other than this QGIS functions as expected.<br>
<br></div><div>Josh<br></div><div><br>

<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)">An error has occured while executing Python code:</span><br>


<br>Traceback (most recent call last):<br>  File "/home/snorf/.qgis2/python/plugins/openlayers_plugin/openlayers_plugin.py", line 50, in addLayer<br>    self.__plugin.addLayer(self)<br>  File "/home/snorf/.qgis2/python/plugins/openlayers_plugin/openlayers_plugin.py", line 202, in addLayer<br>


    self.__setMapSrsGoogle()<br>  File "/home/snorf/.qgis2/python/plugins/openlayers_plugin/openlayers_plugin.py", line 253, in __setMapSrsGoogle<br>    mapCanvas.mapRenderer().setProjectionsEnabled(True)<br>TypeError: C++ type 'const QgsMapLayer*' is not supported as  type<br>


<br>Python version:<br>2.7.3 (default, Apr 14 2012, 08:58:41) [GCC]<br><br><br>QGIS version:<br>2.3.0-Master Master, 33a8b63<br><br>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']</p><br></blockquote></div></div>
<br></div>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br></div></div>
</blockquote></div><br></div>