pblottiere / snail

QGIS Plugin to monitor performances
3 stars 0 forks source link

Snail breaks Merge Vector Tool - Wrong or missing parameter value: Input layers #7

Open Saijin-Naib opened 4 years ago

Saijin-Naib commented 4 years ago

I'm not sure how this happens, but see this issue here: https://github.com/qgis/QGIS/issues/33307
https://gis.stackexchange.com/questions/344470/wrong-or-missing-parameter-value-input-layers

The issue went away a few releases ago, but I was just trying to run Merge Vector Layers today in both QGIS Master and QGIS 3.10.2-2, and it wouldn't run.

I switched to my TESTING profile (clean), and it ran. I slowly enabled each and every plugin until Merge Vector Layers stopped working, and it always stopped working on Snail becoming enabled. If I disable Snail and restart QGIS, I am then successfully able to run a merge.

Absolutely bizarre.

BROKEN - QGIS Master image

QGIS version 3.10.2-A Coruña QGIS code revision d4cd3cfe5a
Compiled against Qt 5.11.2 Running against Qt 5.11.2
Compiled against GDAL/OGR 3.0.3 Running against GDAL/OGR 3.0.3
Compiled against GEOS 3.8.0-CAPI-1.13.1 Running against GEOS 3.8.0-CAPI-1.13.1
Compiled against SQLite 3.29.0 Running against SQLite 3.29.0
PostgreSQL Client Version 11.5 SpatiaLite Version 4.3.0
QWT Version 6.1.3 QScintilla2 Version 2.10.8
Compiled against PROJ 6.3.0 Running against PROJ Rel. 6.3.0, January 1st, 2020
OS Version Windows 10 (10.0)
Active python plugins CalculateGeometry; contour; guided_offline_editing; MemoryLayerSaver; networks; openlayers_plugin; ORStools; PeliasGeocoding; PluginLoadTimes; realcentroid; snail; SpreadsheetLayers; zoom_level; db_manager; MetaSearch; processing

BROKEN - QGIS 3.10.2-2 image

QGIS version 3.10.2-A Coruña QGIS code revision d4cd3cfe5a
Compiled against Qt 5.11.2 Running against Qt 5.11.2
Compiled against GDAL/OGR 3.0.3 Running against GDAL/OGR 3.0.3
Compiled against GEOS 3.8.0-CAPI-1.13.1 Running against GEOS 3.8.0-CAPI-1.13.1
Compiled against SQLite 3.29.0 Running against SQLite 3.29.0
PostgreSQL Client Version 11.5 SpatiaLite Version 4.3.0
QWT Version 6.1.3 QScintilla2 Version 2.10.8
Compiled against PROJ 6.3.0 Running against PROJ Rel. 6.3.0, January 1st, 2020
OS Version Windows 10 (10.0)
Active python plugins CalculateGeometry; contour; guided_offline_editing; MemoryLayerSaver; networks; openlayers_plugin; ORStools; PeliasGeocoding; PluginLoadTimes; realcentroid; snail; SpreadsheetLayers; zoom_level; db_manager; MetaSearch; processing

WORKING - QGIS 3.10.2-2 image

QGIS version: 3.10.2-A Coruña
QGIS code revision: d4cd3cfe5a
Qt version: 5.11.2
GDAL version: 3.0.3
GEOS version: 3.8.0-CAPI-1.13.1 
PROJ version: Rel. 6.3.0, January 1st, 2020
Processing algorithm…
Algorithm 'Merge vector layers' starting…
Input parameters:
{ 'CRS' : QgsCoordinateReferenceSystem('EPSG:4326'), 'LAYERS' : ['file:///C:/Users/username/Desktop/dgm/dgm_33444-5732.xyz?type=csv&delimiter=%20&useHeader=No&detectTypes=yes&xField=field_1&yField=field_2&zField=field_3&crs=EPSG:4326&spatialIndex=yes&subsetIndex=yes&watchFile=yes','file:///C:/Users/username/Desktop/dgm/dgm_33444-5734.xyz?type=csv&delimiter=%20&useHeader=No&detectTypes=yes&xField=field_1&yField=field_2&zField=field_3&crs=EPSG:4326&spatialIndex=yes&subsetIndex=yes&watchFile=yes','file:///C:/Users/username/Desktop/dgm/dgm_33446-5732.xyz?type=csv&delimiter=%20&useHeader=No&detectTypes=yes&xField=field_1&yField=field_2&zField=field_3&crs=EPSG:4326&spatialIndex=yes&subsetIndex=yes&watchFile=yes','file:///C:/Users/username/Desktop/dgm/dgm_33446-5734.xyz?type=csv&delimiter=%20&useHeader=No&detectTypes=yes&xField=field_1&yField=field_2&zField=field_3&crs=EPSG:4326&spatialIndex=yes&subsetIndex=yes&watchFile=yes'], 'OUTPUT' : 'TEMPORARY_OUTPUT' }

Using specified destination CRS EPSG:4326
Setting output type to PointZ
Packaging layer 1/4: dgm_33444-5732
Packaging layer 2/4: dgm_33444-5734
Packaging layer 3/4: dgm_33446-5732
Packaging layer 4/4: dgm_33446-5734
Execution failed after 5.48 seconds [USER CANCELLED PROCESS]

Loading resulting layers
Algorithm 'Merge vector layers' finished
QGIS version 3.10.2-A Coruña QGIS code revision d4cd3cfe5a
Compiled against Qt 5.11.2 Running against Qt 5.11.2
Compiled against GDAL/OGR 3.0.3 Running against GDAL/OGR 3.0.3
Compiled against GEOS 3.8.0-CAPI-1.13.1 Running against GEOS 3.8.0-CAPI-1.13.1
Compiled against SQLite 3.29.0 Running against SQLite 3.29.0
PostgreSQL Client Version 11.5 SpatiaLite Version 4.3.0
QWT Version 6.1.3 QScintilla2 Version 2.10.8
Compiled against PROJ 6.3.0 Running against PROJ Rel. 6.3.0, January 1st, 2020
OS Version Windows 10 (10.0)
Active python plugins CalculateGeometry; contour; guided_offline_editing; MemoryLayerSaver; openlayers_plugin; ORStools; PeliasGeocoding; PluginLoadTimes; realcentroid; SpreadsheetLayers; zoom_level; db_manager; MetaSearch; processing
geofausto commented 4 years ago

I reproduced the error on two machines (QGIS 3.10.2-A Coruña - OS Linux Mint 19.3). It was only solved when I uninstalled the package 'python3-pyqt5.qtquick' (which I had to install manually after installing the plugin).

pblottiere commented 4 years ago

Hi @Saijin-Naib and @geofausto,

Indeed I can reproduce the issue with QGIS 3.12. However, it seems to be fixed on master. Can one of you confirm that too?

From what I read, it seems to be fixed thanks to some Python code (from processing) ported to C++. I'll try to take a look.

pblottiere commented 4 years ago

And by the way, thanks for reporting the issue :+1:!

Saijin-Naib commented 4 years ago

Still able to reproduce on this version:

QGIS version 3.12.3-București QGIS code revision 8234261527
Compiled against Qt 5.11.2 Running against Qt 5.11.2
Compiled against GDAL/OGR 3.0.4 Running against GDAL/OGR 3.0.4
Compiled against GEOS 3.8.1-CAPI-1.13.3 Running against GEOS 3.8.1-CAPI-1.13.3
Compiled against SQLite 3.29.0 Running against SQLite 3.29.0
PostgreSQL Client Version 11.5 SpatiaLite Version 4.3.0
QWT Version 6.1.3 QScintilla2 Version 2.10.8
Compiled against PROJ 6.3.2 Running against PROJ Rel. 6.3.2, May 1st, 2020
OS Version Windows 10 (10.0)
Active python plugins CalculateGeometry; ImageServerConnector; MemoryLayerSaver; openlayers_plugin; slyr; snail; SpreadsheetLayers; zoom_level; db_manager; MetaSearch; processing
pblottiere commented 4 years ago

Hi @Saijin-Naib,

Yes it's still happening on 3.12 as mentioned on my previous comment.

It seems to be fixed on master, meaning the future QGIS 3.14 release.

Thanks for following this up :+1: