3liz / QuickOSM

QGIS plugin to fetch OSM data with the Overpass API
GNU General Public License v2.0
180 stars 54 forks source link

Critical error when searching in canvas extent and layer extent #430

Open George-af opened 1 year ago

George-af commented 1 year ago

Issue

Searching key "building" and value "yes" in a layer's extent and canvas extent returns no results and gives CRITICAL error message

2022-11-10T17:44:16     INFO    All OSM objects with the key 'building' in the canvas or layer extent are going to be downloaded.
2022-11-10T17:44:16     INFO    Query: building
2022-11-10T17:44:16     INFO    Encoded URL: https://lz4.overpass-api.de/api/interpreter?data=[out:xml] [timeout:25];%0A(%0A node[%22building%22]( 44.69622,20.44422,44.81823,20.67422);%0A way[%22building%22]( 44.69622,20.44422,44.81823,20.67422);%0A relation[%22building%22]( 44.69622,20.44422,44.81823,20.67422);%0A);%0A(._;%3E;);%0Aout body;&info=QgisQuickOSMPlugin
2022-11-10T17:44:21     INFO    Request completed
2022-11-10T17:44:21     INFO    Checking OSM file content /private/var/folders/5q/zc7n4z7556x6xjv5v9cf6b8c0000gn/T/request-nbtnfl.osm
2022-11-10T17:44:21     INFO    The OSM file is: /private/var/folders/5q/zc7n4z7556x6xjv5v9cf6b8c0000gn/T/request-nbtnfl.osm
2022-11-10T17:44:52     INFO    Fixing geometries in layer: multipolygons
2022-11-10T17:44:55     CRITICAL    A critical error occurred, this is the traceback:
2022-11-10T17:44:55     CRITICAL    
2022-11-10T17:44:55     CRITICAL    base_processing_panel.py
2022-11-10T17:44:55     CRITICAL    unknown
2022-11-10T17:44:55     CRITICAL     File "/Users/user/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/ui/base_processing_panel.py", line 47, in run
              self._run()

              File "/Users/user/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/ui/quick_query_panel.py", line 421, in _run
              num_layers = process_quick_query(

              File "/Users/user/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/process.py", line 318, in process_quick_query
              return process_query(

              File "/Users/user/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/process.py", line 257, in process_query
              return open_file(

              File "/Users/user/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/process.py", line 106, in open_file
              layers = osm_parser.processing_parse()

              File "/Users/userLibrary/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/parser/osm_parser.py", line 147, in processing_parse
              layers[layer]['vectorLayer'] = processing.run(

              File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/tools/general.py", line 108, in run
              return Processing.runAlgorithm(algOrName, parameters, onFinish, feedback, context)

              File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py", line 187, in runAlgorithm
              ret, results = execute(alg, parameters, context, feedback, catch_exceptions=False)

              File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/gui/AlgorithmExecutor.py", line 72, in execute
              results, ok = alg.run(parameters, context, feedback, {}, False)

Environment

spktklr commented 1 year ago

Had the same issue. Solved by switching from MacOS to Windows.

jeanmico commented 1 year ago

Experiencing the same problem on

Gustry commented 1 year ago

It's not the same error message, but it looks very similar to #422. If it's the same, then it something you can fix by yourself in the meantime. Check your Processing plugin.

dirifiz commented 1 year ago

Same issue plus 'around point' feature:

QuickOSM log

2023-03-03T11:08:28 INFO ["All OSM objects with the key 'landuse'='residential' in la extensión del lienzo o capa are going to be downloaded."] 2023-03-03T11:08:28 INFO Query: landuseresidential 2023-03-03T11:08:28 INFO Encoded URL: https://lz4.overpass-api.de/api/interpreter?data=[out:xml] [timeout:25];%0A(%0A node%22landuse%22%3D%22residential%22;%0A way%22landuse%22%3D%22residential%22;%0A relation%22landuse%22%3D%22residential%22;%0A);%0A(.;%3E;);%0Aout body;&info=QgisQuickOSMPlugin 2023-03-03T11:08:29 INFO Request completed 2023-03-03T11:08:29 INFO Checking OSM file content /tmp/request-cdkxpm.osm 2023-03-03T11:08:29 INFO The OSM file is: /tmp/request-cdkxpm.osm 2023-03-03T11:12:04 INFO All OSM objects with the key 'landuse'='residential' in 10000 meters of Alacant are going to be downloaded. 2023-03-03T11:12:04 INFO Query: landuse_residential_Alacant10000 2023-03-03T11:12:05 INFO Request completed 2023-03-03T11:12:05 INFO Request completed 2023-03-03T11:12:06 INFO Request completed 2023-03-03T11:12:06 INFO Encoded URL: https://lz4.overpass-api.de/api/interpreter?data=[out:xml] [timeout:25];%0A(%0A node[%22landuse%22%3D%22residential%22](around:10000, 38.3436365,-0.4881708);%0A way[%22landuse%22%3D%22residential%22](around:10000, 38.3436365,-0.4881708);%0A relation[%22landuse%22%3D%22residential%22](around:10000, 38.3436365,-0.4881708);%0A);%0A(.;%3E;);%0Aout body;&info=QgisQuickOSMPlugin 2023-03-03T11:12:12 INFO Request completed 2023-03-03T11:12:12 INFO Checking OSM file content /tmp/request-YWNmCn.osm 2023-03-03T11:12:12 INFO The OSM file is: /tmp/request-YWNmCn.osm

Messages log:

2023-03-03T11:08:29 CRITICAL Error on the layer : multipolygons is not valid. 2023-03-03T11:12:12 CRITICAL Error on the layer : points is not valid.

Gustry commented 1 year ago

Same issue plus 'around point' feature:

No, your error message is very similar to #390, please have a look there as described in the other ticket. Share your file /tmp/request-YWNmCn.osm

3R1N commented 1 year ago

I've been seeing this same error when trying to get admin_level polygons. Not all the time, but sometimes.

I am using: MacOS 13.0.1 QGIS 3.28.4 LTR QuickOSM 2.1.1

2023-03-11T02:28:08 CRITICAL Error in the logs, in the QuickOSM panel, copy/paste it and please report it to GitHub 2023-03-11T02:28:18 CRITICAL Error in the logs, in the QuickOSM panel, copy/paste it and please report it to GitHub

2023-03-11T02:28:18 CRITICAL A critical error occurred, this is the traceback: 2023-03-11T02:28:18 CRITICAL
2023-03-11T02:28:18 CRITICAL base_processing_panel.py 2023-03-11T02:28:18 CRITICAL unknown 2023-03-11T02:28:18 CRITICAL File "/Users/Erin/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/ui/base_processing_panel.py", line 47, in run self._run() File "/Users/Erin/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/ui/quick_query_panel.py", line 421, in _run num_layers = process_quick_query( File "/Users/Erin/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/process.py", line 318, in process_quick_query return process_query( File "/Users/Erin/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/process.py", line 257, in process_query return open_file( File "/Users/Erin/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/process.py", line 106, in open_file layers = osm_parser.processing_parse() File "/Users/Erin/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/parser/osm_parser.py", line 147, in processing_parse layers[layer]['vectorLayer'] = processing.run( File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/tools/general.py", line 108, in run return Processing.runAlgorithm(algOrName, parameters, onFinish, feedback, context) File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py", line 187, in runAlgorithm ret, results = execute(alg, parameters, context, feedback, catch_exceptions=False) File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/gui/AlgorithmExecutor.py", line 72, in execute results, ok = alg.run(parameters, context, feedback, {}, False)

Gustry commented 1 year ago

@3R1N As I already mentioned, have a look to issue #422, pretty sure you can fix it yourself.