Bug report #15427

QGIS rendering freaks out loading qml + shp when OTF disabled

Added by Richard Duivenvoorde over 8 years ago. Updated almost 6 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Symbology
Affected QGIS version:master_2 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:end of life
Crashes QGIS or corrupts data:No Copied to github as #:23353

Description

Tested here on Debian, 2.14, 2.16 and master_2

Downloades some OSM shapes from Geofabrik, to style it nice with the qml files from:
https://github.com/charleyglynn/OSM-Shapefile-QGIS-stylesheets

But as soon as I try to load the qml file (which are looking into the xml created using QGIS 2.2)... for the roads, QGIS freaks out.
cpu goes to 100%
Looks like a rendering problem/artefact. If somebody is aware what I can do to make the QML work, that would be cool...

I tried to create some lines, but even with 2 lines in a memory layer it goes awry

I attach a screendump as it goes wild.

I add the shapefile + qml in a zip to the issue

freakdata.zip (139 KB) Richard Duivenvoorde, 2016-08-12 03:54 AM

QGIS-freaks-out.png (136 KB) Richard Duivenvoorde, 2016-08-12 03:54 AM

History

#1 Updated by Richard Duivenvoorde over 8 years ago

Ok, some further investigating...

At first on an other computer it seemed ok: BUT!! that computer did have OTF enabled.

So: better test:

1) first create a fresh project eg epsg:3857 WITH OTF ON!
2) Load shape and qml: OK
3) now disable OTF
4) either freaking rendering artifacts or grey block

Same goes if you start with an new project without OTF

#2 Updated by Richard Duivenvoorde over 8 years ago

  • Subject changed from QGIS rendering freaks out loading qml + shp to QGIS rendering freaks out loading qml + shp when OTF disabled

#3 Updated by Richard Duivenvoorde over 8 years ago

Ok... it is also related to epsg:4326 !

It is actually ok if you have a project in epsg:3857, BUT it goes wrong if you go to epsg:4326 !!

Does this mean it is data related? No, because I also have it if I load a minimal memory layer and add a type-column to it (used in the styles)

#4 Updated by Nyall Dawson over 8 years ago

The styling probably has some sizes using map units (expecting metres, and getting degrees because of the different crs)

#5 Updated by Richard Duivenvoorde over 8 years ago

Yes, you are right Nyall... but as we are going to encourage sharing of styles etc, I think this could happen more often..

Is it an idea to check for this?

Because it is (at least for me) not clear that it actual a configuration/data combination problem?

Like: check if OTF is disabled, and IF it is, check if sizes in styles are maybe different from projection units?
And if so: create a good warning?

You actually kill QGIS with such an action..

#6 Updated by Giovanni Manghi over 7 years ago

  • Regression? set to No
  • Easy fix? set to No

#7 Updated by Giovanni Manghi almost 6 years ago

  • Resolution set to end of life
  • Status changed from Open to Closed

Also available in: Atom PDF