Bug report #7578

QGIS crashes when OpenLayers plugin layer cannot be read

Added by Stephanie Vanhove over 7 years ago. Updated over 6 years ago.

Status:Closed
Priority:High
Assignee:-
Category:-
Affected QGIS version:1.8.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:Yes Copied to github as #:16515

Description

QGIS crashes when a workspace contains an OpenLayers plugin layer which cannot be read.

The *.qgs file contains the following lines:

<maplayer minimumScale="0" maximumScale="1e+08" ol_layer_type="3" type="plugin" hasScaleBasedVisibilityFlag="0" name="openlayers">
<id>OpenLayers_plugin_layer20130327143047893</id>
<datasource>.</datasource>
<title></title>
<abstract></abstract>
<layername>Google Satellite</layername>
<srs>
<spatialrefsys>
<proj4>+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m [email protected] +wktext +no_defs</proj4>
<srsid>3857</srsid>
<srid>3857</srid>
<authid>EPSG:3857</authid>
<description>WGS 84 / Pseudo Mercator</description>
<projectionacronym>merc</projectionacronym>
<ellipsoidacronym>WGS84</ellipsoidacronym>
<geographicflag>false</geographicflag>
</spatialrefsys>
</srs>
<transparencyLevelInt>255</transparencyLevelInt>
<customproperties/>
</maplayer>

This results in Error1.PNG followed by Error2.PNG.

Attached is the workspace causing this error, as well as a workspace which does work (by commenting out the above lines in the *.qgs file)

Error1.PNG (46.7 KB) Stephanie Vanhove, 2013-04-11 08:27 AM

Error2.PNG (15.5 KB) Stephanie Vanhove, 2013-04-11 08:27 AM

Not_working.zip (3.49 KB) Stephanie Vanhove, 2013-04-11 08:27 AM

Working__after_commenting_out_one_layer_.zip (3.83 KB) Stephanie Vanhove, 2013-04-11 08:27 AM

History

#1 Updated by Giovanni Manghi over 6 years ago

  • Priority changed from Normal to High

#2 Updated by Giovanni Manghi over 6 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

works as expected in qgis 2.0.1

Also available in: Atom PDF