qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.48k stars 2.99k forks source link

QGIS frozen when loading copc file from http url which redirects #52869

Open 387809109 opened 1 year ago

387809109 commented 1 year ago

What is the bug or the crash?

I was trying to load copc file from http url which, after authentication, should redirect to object store https://swift.rc.nectar.org.au//test.mine.copc.laz. However QGIS simply got frozen when loading the request.

image

Steps to reproduce the issue

  1. launch QGIS Desktop
  2. open data source manager
  3. select 'add point cloud layer'
  4. pick 'Protocol: http(s), cloud, etc.'
  5. enter 'https://data-test.tern.org.au/uas/surveillance/test/test.mine.copc.laz' in 'URI'
  6. QGIS gets frozen after authentication

Versions

QGIS version 3.30.1-'s-Hertogenbosch QGIS code revision 9035a01e Qt version 5.15.3 Python version 3.9.5 GDAL/OGR version 3.6.3 PROJ version 9.2.0 EPSG Registry database version v10.082 (2023-02-06) GEOS version 3.11.2-CAPI-1.17.2 SQLite version 3.41.1 PDAL version 2.5.2 PostgreSQL client version unknown SpatiaLite version 5.0.1 QWT version 6.1.6 QScintilla2 version 2.13.1 OS version Windows 10 Version 2009

Active Python plugins db_manager 0.1.20 grassprovider 2.12.99 MetaSearch 0.3.6 processing 2.12.99

Supported QGIS version

New profile

Additional context

  1. The file itself is ok. Tried with direct query (https:///...)
  2. The data server is ok. Tried with other copc visualizer querying that server.
uclaros commented 1 year ago

Can you try with the redirected link directly?

It could be that the initial server supports range requests but the redirected does not and QGIS freezes while waiting to fetch the whole file. You could also check if there's network activity while QGIS is frozen to verify that.

387809109 commented 1 year ago

Can you try with the redirected link directly?

Direct query with the redirected link worked.

387809109 commented 1 year ago

here is the authentication if you need:

I just realized that no need to keep apikey a secret

uclaros commented 1 year ago

Thanks for the credentials, really useful to verify the bug. Could you also check if the same happens with vector or raster layers behind the same server? This looks like it might not be point cloud specific...

387809109 commented 1 year ago

Thanks for the credentials, really useful to verify the bug. Could you also check if the same happens with vector or raster layers behind the same server? This looks like it might not be point cloud specific...

Just tried adding a raster layer. nothing wrong with that.

uclaros commented 1 year ago

Thanks! Could you also share the link to the raster file?

387809109 commented 1 year ago

Thanks! Could you also share the link to the raster file?

https://data-test.tern.org.au/uas/surveillance/imagery/Calperum/SASMDD0003/20220518/imagery/multispec/level1_proc/20220518_SASMDD0003_dual_ortho_05_cog.tif