qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.4k stars 2.98k forks source link

QGIS UI is blocked while it downloads the first feature while adding a wfs layer #53752

Open autra opened 1 year ago

autra commented 1 year ago

What is the bug or the crash?

When adding a WFS layer, qgis apparently tries to download the first feature (with url params index=0&count=1) to probably get the feature type.

But for some reasons, it does so in the main thread (?) so the interface is completely blocked while the query is processed. The problem is that if the serveur takes a long time to answer, the user has to wait for the query to timeout... several times, because qgis seems to retry this several time.

Steps to reproduce the issue

Versions

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

QGIS version | 3.32.0-Lima | QGIS code revision | 311a8cb8a6 -- | -- | -- | -- Qt version | 5.15.3 Python version | 3.10.6 GDAL/OGR version | 3.4.1 PROJ version | 8.2.1 EPSG Registry database version | v10.041 (2021-12-03) GEOS version | 3.10.2-CAPI-1.16.0 SQLite version | 3.37.2 PDAL version | 2.3.0 PostgreSQL client version | 14.8 (Ubuntu 14.8-0ubuntu0.22.04.1) SpatiaLite version | 5.0.1 QWT version | 6.1.4 QScintilla2 version | 2.11.6 OS version | Ubuntu 22.04.2 LTS   |   |   |   Active Python plugins TheiaExplorer | 0.3.1 SRTM-Downloader | 3.1.17 qgis2web | 3.16.0 plugin_reloader | 0.9.3 qgis_versioning | 1.0 layertilesmapcanvas | 1.4 processing | 2.12.99 db_manager | 0.1.20 MetaSearch | 0.3.6 QGIS version 3.32.0-Lima QGIS code revision [311a8cb8a6](https://github.com/qgis/QGIS/commit/311a8cb8a6) Qt version 5.15.3 Python version 3.10.6 GDAL/OGR version 3.4.1 PROJ version 8.2.1 EPSG Registry database version v10.041 (2021-12-03) GEOS version 3.10.2-CAPI-1.16.0 SQLite version 3.37.2 PDAL version 2.3.0 PostgreSQL client version 14.8 (Ubuntu 14.8-0ubuntu0.22.04.1) SpatiaLite version 5.0.1 QWT version 6.1.4 QScintilla2 version 2.11.6 OS version Ubuntu 22.04.2 LTS Active Python plugins SRTM-Downloader 3.1.17 qgis2web 3.16.0 plugin_reloader 0.9.3 qgis_versioning 1.0 layertilesmapcanvas 1.4 processing 2.12.99 db_manager 0.1.20 MetaSearch 0.3.6 ### Supported QGIS version - [x] I'm running a supported QGIS version according to [the roadmap](https://www.qgis.org/en/site/getinvolved/development/roadmap.html#release-schedule). ### New profile - [ ] I tried with a new [QGIS profile](https://docs.qgis.org/latest/en/docs/user_manual/introduction/qgis_configuration.html#working-with-user-profiles) ### Additional context _No response_
pathmapper commented 1 year ago

Agree that it should be possible for the user to interrupt the process.

This WFS setup has serious performance problems, it wasn't very often able to deliver 1 feature using the following request with Firefox: https://wxs.ign.fr/topographie/geoportail/wfs/?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=BDTOPO_V3:batiment&STARTINDEX=0&COUNT=1&SRSNAME=urn:ogc:def:crs:EPSG::4326

grafik

nicogodet commented 1 year ago

@pathmapper IGN servers are very unstable lately. They are in middle of huge migration.