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.61k stars 3.01k forks source link

Crashing QGIS when add new raster layer ecw #12264

Closed qgib closed 5 years ago

qgib commented 14 years ago

Author Name: spasm - (spasm -) Original Redmine Issue: 2204

Redmine category:rasters Assignee: nobody -


I deliberately crashed QGIS in Vista 64 as it was taking a very long time to calculate standard deviations for setting max and min display values on a very large ECW image. On restarting QGIS I am unable to load another ECW image, QGIS just crashes. I suspect that there is some wreckage in the form of temp files on my hard drive but I can't find and manually delete these files. Rebooting the computer does not help refresh QGIS.


qgib commented 14 years ago

Author Name: Giovanni Manghi (@gioman)


There were already issues reported about windows 64bit and I believe that until a native version for this architecture will not be available it will be hard to have qgis working properly.

In any case I'll ask you to try reproduce the problem on a 32bit machine (or post a sample data) in order to verify if it is really a 64 bit/windows issue or not.

Thanks

qgib commented 14 years ago

Author Name: spasm - (spasm -)


After a few crashes, Qgis was again able to open ECW images, so I may not be able to reproduce the bug on demand. The ECW code may be fine, it might be a question of Qgis cleaning up after a crash. I have lots of Windows crashes, so the crash could also be an external event.

qgib commented 14 years ago

Author Name: Giovanni Manghi (@gioman)


Replying to [comment:2 spasm]:

I have lots of Windows crashes, so the crash could also be an external event.

well then try to figure it, possibly testing a 32 bit/stable windows box, then if is the case, reopen the ticket.

thanks.


qgib commented 14 years ago

Author Name: Gerhard Spieles (Gerhard Spieles)


The problem exist on windows vista, not on windows xp. On vista, open a new project an add ecw raster layer, qgis crash. Open an existing project made on my desktop PC (winxp maschine), with my laptop (vista 32 bit), all is fine, the ecw spatial photos are shown and i can work normaly in the project. But whe i try to add a new ecw raster spatial photo, qgis crash.

Pictures are attached.

What happens in win7, I deon@t know.


qgib commented 14 years ago

Author Name: Giovanni Manghi (@gioman)


Hi,

I can add ecw rasters with no problems under Windows Seven 32bit and qgis trunk.

Does it happens in all Vista machines you have tested? Eventually can you test another Vista machine to try rule if it is a local problem?

qgib commented 14 years ago

Author Name: Gerhard Spieles (Gerhard Spieles)


Hello,

i have tested it on another vista maschine with the same result.

I coudn@t test it with 1.5.0, because the osgeo4w installation don@t support ecw.

qgib commented 14 years ago

Author Name: Giovanni Manghi (@gioman)


I coudn@t test it with 1.5.0, because the osgeo4w installation don@t support ecw.

It does support ecw. You just need to install the gdal16-ecw library and copy the necessary dll into the system32 folder.

So... please test osgeo4w/qgis-dev to see if is a bug related only to 1.4 and/or just to the standalone installer.

qgib commented 14 years ago

Author Name: Gerhard Spieles (Gerhard Spieles)


Hi,

thank you for the information. On my xp maschine, qgis trunk can now open ecw.

I have tried it on the vista machine, but qgis crash also with 1.5.0 r13412m, open an ecw raster.

Files are attached.

qgib commented 14 years ago

Author Name: Giovanni Manghi (@gioman)


Hi,

can you post/link a sample of the ecw rasters are causing qgis to crash?

qgib commented 14 years ago

Author Name: Gerhard Spieles (Gerhard Spieles)


Hi,

the file has 10 MB. It is only for testing and not for public use. Please send your Mailadress to gerhard@spieles.de.

Thank you

Gerhard

qgib commented 14 years ago

Author Name: Giovanni Manghi (@gioman)


Test made with the problematic raster under Windows Seven with qgis trunk and 1.4 (osgeo4w). No crashes.

qgib commented 14 years ago

Author Name: Gerhard Spieles (Gerhard Spieles)


Use win7 or winxp


qgib commented 14 years ago

Author Name: Gerhard Spieles (Gerhard Spieles)


Hello,

add raster ecw in QGIS 1.5.0 and use win7, 32bit, QGIS crash. On Win XP there is no problem. The problem seems to result from the ntdll.dll in windows. This dll translates between windows and the application. Screenshot from the eventlog is attached


qgib commented 14 years ago

Author Name: luca76 - (luca76 -)


confirming: works only in XP. On windows 7 machines it crashes.

qgib commented 14 years ago

Author Name: Paolo Cavallini (@pcav)


Could you please test it again with new gdal ecw driver?

qgib commented 14 years ago

Author Name: Gerhard Spieles (Gerhard Spieles)


Can you send me the new ecw-dlls to gerhard@spieles.de?

Thanks

Gerhard

qgib commented 14 years ago

Author Name: Giovanni Manghi (@gioman)


the dlls are not redistributable: go to the erdas site, sign up, download the new sdk, accept the licence, install in your pc and then pick the dlls you'll find where the sdk was installed.

qgib commented 14 years ago

Author Name: luca76 - (luca76 -)


now it works with latest DLLS of ECW 4.1.

I've put them into:

%OSGEO4W_ROOT%\bin