Skip to content

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

Open

Description

@George-af

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)

Activity

  1. added
    bug
    on Nov 10, 2022
  2. spktklr commented on Jan 8, 2023

    @spktklr

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

  3. jeanmico commented on Feb 10, 2023

    @jeanmico

    Experiencing the same problem on

    • QuickOSM: 2.1.1
    • QGIS version: 3.28.3-Firenze
    • MacOS Monterey (12.3)
  4. Gustry commented on Feb 13, 2023

    @Gustry
    Collaborator

    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.

  5. dirifiz commented on Mar 3, 2023

    @dirifiz

    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.

  6. Gustry commented on Mar 3, 2023

    @Gustry
    Collaborator

    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

  7. 3R1N commented on Mar 11, 2023

    @3R1N

    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)

  8. Gustry commented on Mar 15, 2023

    @Gustry
    Collaborator

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions