New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when rendering a polygon layer with style and labels #23469
Comments
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman) cannot replicate in any of the scenarios (with the provided data and project) on qgis 2.18.4 Please reopen if necessary.
|
Author Name: Stefan Schweigel (@StefanLSA) The Problem is still the same in QGIS 2.18.13 Steps to reproduce the crash:
|
Author Name: Giovanni Manghi (@gioman) Stefan Schweigel wrote:
I just tried on a clean 2.18.13 installation (try with no 3rd party plugins, or remove the .qgis2 folder) and there is no crash after opening the project (there is a missing WMS layer, can be a factor?) and zooming in/out even very quickly. On the other hand If I open the included composer there is a crash when enbaling the atlas preview... but if I change the CRS of the project to something like 4326 then there is no crash. The project comes defined with a custom CRS. The layer "B" has no scale dependent visibility enabled upon opening the project. Please leave more feedback if possible.
Under QGis 2.14.6 we had unexplainable "randomly" crashes when zooming and panning in the main window. The Crash also occurs "randomly" when we try to generate maps with the Atlas-Tool After a while I could narrow down the problem to a polygon layer. I don’t know exactly why it crashes, but I guess it has something to do with the “new” styling and labeling features. By adding the shape file (Layer B, see below) to the project without styling the problem does not occur. Steps to reproduce the crash:
Alternative:
Or:
Now it becomes strange: Some remarks to “Layer B”
I also added two core dumps from the crashes Under QGis 2.14.6 we had unexplainable "randomly" crashes when zooming and panning in the main window. The Crash also occurs "randomly" when we try to generate maps with the Atlas-Tool After a while I could narrow down the problem to a polygon layer. I don’t know exactly why it crashes, but I guess it has something to do with the “new” styling and labeling features. By adding the shape file (Layer B, see below) to the project without styling the problem does not occur. Steps to reproduce the crash:
Alternative:
Or:
Now it becomes strange: Some remarks to “Layer B”
I also added two core dumps from the crashes
|
Author Name: Stefan Schweigel (@StefanLSA) It seems to be a very strange problem. I tried your suggestions: removed the .qgis2 folder and disabled all plugins. It works after the first start. I can zoom in without any problems. I closed QGIS and opened the project again --> Crash. I reopened the project again and changed the CRS to WGS84 (4326) ... it works ... changed the CRS to UTM32N (25832) --> Crash. I enabled and disabled some plugins, but I cannot figure out if one the plugins maybe the reason for the crash. Activated are: I think it is not a clean 2.18.13 installation. Our IT department has installed the program. I have no influence over them I don’t think that the missing WMS layer is the reason for the crash. Because I saved the project after loading under another name (see attachment "sample crash V2.18.13.zip"), then closed QGIS and opened this resaved project --> zoom in = crash. The custom CRS is EPSG 2398 (http://spatialreference.org/ref/epsg/2398/). The older QGIS versions shipped with wrong parameters for EPSG 2398, which resulted in an offset of ~ 3 meters. In QGIS 2.18 the shipped EPSG 2398 is better, but not the same described at spatialreference.org. The offset now is < 25 cm. The description above was a little bit wrong. Layer "F" is the reason for the problem. You may replace "B" with "F" in the description above. B contains only one point to mark the location of the problem The only safe workaround for the problem is to set “Toggle Editing” = On for Layer F
|
Author Name: Giovanni Manghi (@gioman) Stefan Schweigel wrote:
I'm not able to replicate the crash while doing zoom in/out, the style/visibility of layers is not a factor here on a clean testing environment. I ask kindly to try on another machine/environment. On the other hand I see the crash when previewing the atlas with the included composer with some CRS (the custom CRS used by default by the project or by manually setting it to 2398 but not with 4326) BUT... if I try a new composer then there is no crash at all... suggesting some weird issue in the layout that comes with the project. Please try confirm/dismiss the above. thanks!
|
Author Name: Stefan Schweigel (@StefanLSA) The solution for this issue seems to be:
Zoom to "erroneous" geometry and atlas tool are still working. I compared the two qgs project files ("crash" vs "works"). There are some differences while nothing else than the projection in the project was changed:
|
Author Name: Giovanni Manghi (@gioman) Can we close this as "won't fix" as probably caused by an unclean (and hard to replicate) project? |
Author Name: Stefan Schweigel (@StefanLSA) Yes close this issue I believe it is because of the long use of a project file across different versions. Also, the save command does not seem to properly clean the project file of missing layers. But this is an other issue. |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Stefan Schweigel (@StefanLSA)
Original Redmine Issue: 15546
Affected QGIS version: 2.18.13
Redmine category:map_canvas
We currently migrating our environment from QGis 2.8.1 to QGis 2.14.6. Under QGis 2.8.1 everything works fine, even if I reopen the 2.14-project under version 2.8!
Under QGis 2.14.6 we had unexplainable "randomly" crashes when zooming and panning in the main window. The Crash also occurs "randomly" when we try to generate maps with the Atlas-Tool
After a while I could narrow down the problem to a polygon layer. I don’t know exactly why it crashes, but I guess it has something to do with the “new” styling and labeling features. By adding the shape file (Layer B, see below) to the project without styling the problem does not occur.
Steps to reproduce the crash:
Alternative:
Or:
Now it becomes strange:
If you set “Toggle Editing” = On for Layer B zoom, pan and Atlas-Tool are working fine (all my > 4000 images are created without problems). But this can’t be the solution, because you cannot open a project with editing toggled ON for “Layer B”. QGis will immediately crash when opening a project saved with deep zoom.
Some remarks to “Layer B”
I also added two core dumps from the crashes
The text was updated successfully, but these errors were encountered: