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.58k stars 3k forks source link

crash dump on exit - win32 #20105

Closed qgib closed 5 years ago

qgib commented 9 years ago

Author Name: Mikhail Tchernychev (Mikhail Tchernychev) Original Redmine Issue: 11891 Affected QGIS version: master


Hi,

QGIS developed recently crash on exit under Win32 (win 7) steps to re-produce

  1. start QGIS master or QGIS 2.61
  2. close QGIS
  3. mini-dump os generated.

mini-dump file size is 47 MB, zipped 8 MB - I cannot attach it here

Thank you very much,

Mikhail

qgib commented 9 years ago

Author Name: Paolo Cavallini (@pcav)


Have you tried removing all the user plugins?

qgib commented 9 years ago

Author Name: Mikhail Tchernychev (Mikhail Tchernychev)


No. In fact I was looking for way to do it without manually removing them all. Is there a switch somewhere?

Thank you Mikhail

qgib commented 9 years ago

Author Name: Mikhail Tchernychev (Mikhail Tchernychev)


I disabled them all by hand and but crash is still here.

qgib commented 9 years ago

Author Name: Mikhail Tchernychev (Mikhail Tchernychev)


Apparently GDAL111 is responsible. I opened dump with VC++ Studio and below is what I see. I don't have gdal code, but it looks like double-free of some memory block.

It also explains why both versions 2.7.0 and 2.6.1 are affected.

Mikhail

ntdll.dll!77de6609()    
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll] 

msvcr100.dll!free(void pBlock) Line 51 C gdal111.dll!0295f1a0()
kernel32.dll!75949d06()
msvcr100.dll!free(void
pBlock) Line 51 C gdal111.dll!02942698()
gdal111.dll!029594ff()
msvcr90.dll!72b43c1b()
dbghelp.dll!710614e4()
QtCore4.dll!670fa248()
qgis-dev-bin.exe!00990d06()
qgis-dev-bin.exe!0098e932()
kernel32.dll!7594d3c9()
ntdll.dll!77dc1603()

qgib commented 9 years ago

Author Name: Giovanni Manghi (@gioman)


Does the crash appeared after an update? what installer are you using, standalone or osgeo4w? it happens all the time or just when working with certain layers/projects? can you try temporarily remove the .qgis2 folder? There are faulty plugins that are known to bring down qgis even when are disabled.


qgib commented 9 years ago

Author Name: Mikhail Tchernychev (Mikhail Tchernychev)


Yes crash appeared after update. It's a few days already. I think gdal 1.1.1.-5 is responsible. My other laptop where I did not update works fine.

No need to load any project / layers, just start, do nothing and close it, you get dump. Two PCs tested, the same way (both have been updated)

I disabled all plugins with the same result. Version 2.6.1 is also affected, the same way - start, close, dump. I did not try yet playing with .qgis, will do it tonight

I tried downgrade gdal related packages but no difference. Laptop with no update still works fine. It seem windows version of GDAL has double-free somewhere.

Thank you very much, Mikhail

qgib commented 9 years ago

Author Name: Mikhail Tchernychev (Mikhail Tchernychev)


I am using OsGeo4W. It happens almost all time (was couple of times when it closed normally). I will re-name .qgis2 later today

Mikhail

qgib commented 9 years ago

Author Name: Mikhail Tchernychev (Mikhail Tchernychev)


Yes, right. Re-naming .qgis2 fixes it. All plugins also gone - but it is clear. So it is plugin. I'll try to figure out which one.

Thank you Mikhail

qgib commented 9 years ago

Author Name: Mikhail Tchernychev (Mikhail Tchernychev)


I think I figured it out. The plugin which causes the crash is GarminCustomMap (this is unfortunate) I started adding plugins back one by one and after GarminCustomMap I got that crash. After I removed it is worked fine (it still crashed session where it was removed, but the following start / stops working no crash).

After that I restored my original .qgis2 folder, started QGIS and uninstalled GarminCustomMap. Closed QGIS (crash). Started again. Start / end with no issue after that.

I hope it helps Mikhail

qgib commented 9 years ago

Author Name: Paolo Cavallini (@pcav)


Please file a ticket on plugin bug tracker.


qgib commented 9 years ago

Author Name: Mikhail Tchernychev (Mikhail Tchernychev)


Done.

qgib commented 9 years ago

Author Name: Mikhail Tchernychev (Mikhail Tchernychev)


Another plugin, Raster Bender, has the same issue. Has been reported to plugin tracker

qgib commented 9 years ago

Author Name: David Lee (David Lee)


Same crash-dump issue on exit - QGIS 2.6.1, OSGeo4W 32bit, Windows XP - but appeared to start without updating anything. Removed Garmin Custom Map plugin and QGIS now exits without crash.

qgib commented 9 years ago

Author Name: Giovanni Manghi (@gioman)


Removed Garmin Custom Map plugin and QGIS now exits without crash.

so it is a plugin issue.

qgib commented 9 years ago

Author Name: Mikhail Tchernychev (Mikhail Tchernychev)


This seem to be gone with release of 2.8.0 and GDAL update. I just installed OsGeo4W and after I re-installed Garmin Custom Maps and Raster Bender within QGIS there is no crash on exit. It seem it was GDAL related, because both plugin were not recently updated.

Mikhail


qgib commented 9 years ago

Author Name: Jürgen Fischer (@jef-n)