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

QGIS crashes if network connexion is lost and a raster layer is loaded #45293

Closed
2 tasks done
nicogodet opened this issue Sep 28, 2021 · 6 comments
Closed
2 tasks done
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Rasters Related to general raster layer handling (not specific data formats) Upstream Needs changes in an upstream library (like Qt, Proj, GDAL, ...)

Comments

@nicogodet
Copy link
Member

What is the bug or the crash?

Well... it's quite hard to reproduce this issue...

I will present the context.
I work on QGIS, load some raster layers. LUNCH TIME ! I let QGIS open during my break...
During this break, I think I have some kind of energy saving policy set up on my network card (I contact my IT service for more info). When I come back and try to work again on QGIS, it crashes (see stack trace in additional context).

Let me know if you need additional informations.

Steps to reproduce the issue

  1. Load a raster layer
  2. Let your network card energy saving policy do the magic
  3. Try to move the canvas

As I said, hard to reproduce...

Versions

OSGeo4W V2 QGIS 3.20.3

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

Stack trace Crash ID: de76013f090dd303fa8e70bcd7dd484d8a04a3e8

Stack Trace

memcpy_repmovs memcpy.asm:114
VSICreateCachedFile :
GDALRegister_TGA :
GDALRegister_TGA :
GDALRegister_TGA :
GDALRegister_GTiff :
GDALRegister_GTiff :
GDALRasterBand::GetLockedBlockRef :
GDALRasterBand::IRasterIO :
GDALRegister_GTiff :
GDALRasterBand::RasterIO :
GDALRasterBand::TryOverviewRasterIO :
GDALRegister_GTiff :
GDALRasterIOEx :
QgsArcGisRestUtils::parseEsriPictureMarkerSymbolJson :
QgsRasterIdentifyResult::params :
QgsRasterIdentifyResult::operator= :
QgsSingleBandPseudoColorRenderer::block :
QgsBrightnessContrastFilter::block :
QgsHueSaturationFilter::block :
QgsRasterResampleFilter::block :
QgsRasterProjector::block :
QgsRasterIterator::readNextRasterPartInternal :
QgsRasterDrawer::draw :
QgsRasterLayerRenderer::render :
QgsMapRendererCustomPainterJob::doRender :
QgsMapRendererCustomPainterJob::staticRender :
QgsMapRendererCustomPainterJob::renderSynchronously :
QThreadPoolPrivate::reset :
QThread::start :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.20.3-Odense
QGIS code revision: 495fbae
Compiled against Qt: 5.15.2
Running against Qt: 5.15.2
Compiled against GDAL: 3.3.1
Running against GDAL: 3.3.1

System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.19043

@nicogodet nicogodet added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Sep 28, 2021
@uclaros
Copy link
Contributor

uclaros commented Sep 28, 2021

Also happens with external HDDs going into power save mode. I think there was an existing issue about it.
Edit: Found it, #38546 was closed as stale though...

@nicogodet
Copy link
Member Author

I just looked for the crash id.. sorry

@gioman gioman added Crash/Data Corruption Rasters Related to general raster layer handling (not specific data formats) labels Sep 28, 2021
@rouault rouault self-assigned this Sep 28, 2021
@rouault
Copy link
Contributor

rouault commented Sep 28, 2021

I can replicate locally on Linux with an external hard drive and by forcing VSI_CACHE=YES as done by OSGeo4W QGIS launcher. The crash occurs in GDAL

@nicogodet
Copy link
Member Author

Upstream issue: OSGeo/gdal#4559

@gioman gioman added the Upstream Needs changes in an upstream library (like Qt, Proj, GDAL, ...) label Sep 28, 2021
@rouault
Copy link
Contributor

rouault commented Sep 28, 2021

Will be fixed in GDAL 3.3.3

@rouault rouault closed this as completed Sep 28, 2021
@nicogodet
Copy link
Member Author

Thanks @rouault for this rapid fix !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Rasters Related to general raster layer handling (not specific data formats) Upstream Needs changes in an upstream library (like Qt, Proj, GDAL, ...)
Projects
None yet
Development

No branches or pull requests

4 participants