3liz / QuickOSM

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

Crashes on Multipolygons processing #456

Closed kobben closed 1 year ago

kobben commented 1 year ago

What is the bug?

Since the latest upgrade to v2.2.0 ALL osm files I try to porocess crash on the Multipolygon processing. If I uncheck multipolygons it works.

Include some logs here, in QGIS Logs panel, bottom right icon, the small bubbles, in the QuickOSM tab.

This is in the log:

2023-03-23T16:11:12 INFO Preset translations have been loaded and unzipped. 2023-03-23T16:11:56 INFO The OSM file is: /Users/barendkobben/Documents/GEOBASEFILES/Geografie kaarten/morteratsch gletsjer/map.osm 2023-03-23T16:11:58 INFO Fixing geometries in layer: multipolygons 2023-03-23T16:11:58 CRITICAL A critical error occurred, this is the traceback: 2023-03-23T16:11:58 CRITICAL
2023-03-23T16:11:58 CRITICAL base_processing_panel.py 2023-03-23T16:11:58 CRITICAL unknown 2023-03-23T16:11:58 CRITICAL File "/Users/barendkobben/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/ui/base_processing_panel.py", line 47, in run self._run() File "/Users/barendkobben/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/ui/osm_file_panel.py", line 223, in _run open_file( File "/Users/barendkobben/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/barendkobben/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/parser/osm_parser.py", line 161, 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

Gustry commented 1 year ago

This issue has already been reported, check the first pinned issue on the GitHub repository. You can fix it yourself.

Reopen if it's not working.

kobben commented 1 year ago

Oh, that was not really obvious as this pinned topic has a quite different description. But the solution works - however strange and unexpected that is.... Thansk for the super-fast reply.

Gustry commented 1 year ago

Oh, that was not really obvious as this pinned topic has a quite different description.

Yes, I know, there are two 2 error message possible leading to the same error pinned.

Especially your log are not verbose about what is wrong :)

2023-03-23T16:11:58 CRITICAL A critical error occurred, this is the traceback: 2023-03-23T16:11:58 CRITICAL 2023-03-23T16:11:58 CRITICAL base_processing_panel.py 2023-03-23T16:11:58 CRITICAL unknown

No one can guess easily.

I though it would be OK with 2.2.0 that's why it was closed. I just reopened the ticket again and again. I will try again providing a fix.