Skip to content
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

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

Open
George-af opened this issue Nov 10, 2022 · 7 comments
Open

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

George-af opened this issue Nov 10, 2022 · 7 comments
Labels
bug An identified bug

Comments

@George-af
Copy link

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

  • QuickOSM version: 2.1.1
  • QGIS version: 3.28.0-Firenze
  • OS: macOS Mojave (10.14)
@George-af George-af added the bug An identified bug label Nov 10, 2022
@spktklr
Copy link

spktklr commented Jan 8, 2023

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

@jeanmico
Copy link

Experiencing the same problem on

  • QuickOSM: 2.1.1
  • QGIS version: 3.28.3-Firenze
  • MacOS Monterey (12.3)

@Gustry
Copy link
Member

Gustry commented Feb 13, 2023

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
Copy link

dirifiz commented Mar 3, 2023

Same issue plus 'around point' feature:

  • QuickOSM: 2.1.1
  • QGIS version: 3.28.3-Firenze
  • Linux Mint 21.1

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: landuse_residential
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_Alacant_10000
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
Copy link
Member

Gustry commented Mar 3, 2023

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
Copy link

3R1N commented Mar 11, 2023

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
Copy link
Member

Gustry commented Mar 15, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An identified bug
Projects
None yet
Development

No branches or pull requests

6 participants