havatv / qgismultidistancebufferplugin

QGIS Plugin for Multi-distance buffering
GNU General Public License v2.0
4 stars 1 forks source link

Multi-distance buffer plugin makes qgis crash after running #19

Closed Evanilton closed 7 years ago

Evanilton commented 7 years ago

When I try to use the plugin, it does work very well, but qgis crashes before I can save the result as a shapefile and closes the error box instantly as well. It´s annoying. Can somebody help, please?

havatv commented 7 years ago

Thanks for reporting! I can not reproduce this with the current version (2.2.0) on QGIS 2.18.9 on Ubuntu 14.04. Which version of QGIS are you using (QGIS 3 or QGIS 2)? Are you using the most current version of the plugin (3.2.0 for QGIS 3, 2.2.0 for QGIS2)? Does this happen for all the three "options"? Does this happen with all data sets? If not, could you provide a data set for testing?

Evanilton commented 7 years ago

Hi. I am using QGIS 2.18.9

Here is the shapefile I used to perform the analysis

Thank you vary much

Regards

2017-05-31 22:26 GMT+01:00 Håvard Tveite notifications@github.com:

Which version are you using (QGIS 3 or QGIS 2)? Could you provide a data set for testing?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/havatv/qgismultidistancebufferplugin/issues/19#issuecomment-305322511, or mute the thread https://github.com/notifications/unsubscribe-auth/ARRHIE_zs6wdt5tbxwNiIQCQ5DBtWsGuks5r_dsEgaJpZM4Nrx-_ .

-- Evanilton Pires Licenciado em Engenharia do Ambiente pelo ISPTundavala Mestrando em Gestão Ambiental pela Escola Superior Agrária de Coimbra (ESAC) +244937111758 +351911923954 pires.evanilton@gmail.com / newton10dan@hotmail.com

havatv commented 7 years ago

I tested the dataset (and distances) that caused trouble for @Evanilton on 2.18.9 with plugin version 2.2.0 on Ubuntu 14.04, and had no issues (all options worked fine).

havatv commented 7 years ago

I have finally been able to test 2.18.9 on Windows, and discovered that the standard option causes a crash some minutes after performing the operation. I was able to save the result to a Shapefile format dataset before the crash occurred. The equivalent option ("Segments to approximate" with 5) did not lead to a crash, so the fix will be to disable the "standard" option in order to avoid crashes on 2.18.9. It is probably the use of the QgsGeometryAnalyzer.buffer function that causes the crash (as it does with QGIS 3). The work around is to avoid the "Standard" option ("Segments to approximate" with 5 will produce the same result). Thank you for reporting, @Evanilton !

havatv commented 7 years ago

QgsGeometryAnalyzer was removed from the code in the commit. Hopefully that should stop the crashes on Windows - closing the issue.

havatv commented 7 years ago

Version 2.2.1 (with the fix) has just been approved and is available in the QGIS plugin repository for QGIS version 2.