Opened 14 years ago

Closed 14 years ago

#2204 closed bug (fixed)

Crashing QGIS when add new raster layer ecw

Reported by: spasm Owned by: nobody
Priority: critical: causes crash or data corruption Milestone: Version 1.6.0
Component: Rasters Version: 1.5.0
Keywords: Cc:
Must Fix for Release: Yes Platform: Windows
Platform Version: win7 Awaiting user input: no

Description

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.

Attachments (5)

ecw_vista32_qgis_openedproject_withecw_from_winxp.jpg (108.2 KB ) - added by gespiel 14 years ago.
ecw_vista32_qgiscrash_addrasterlayer_ecw.jpg (117.7 KB ) - added by gespiel 14 years ago.
ecw vista qgis1.5.0_load ecw.jpg (95.1 KB ) - added by gespiel 14 years ago.
ecw vista qgis1.5.0 crash.jpg (43.3 KB ) - added by gespiel 14 years ago.
qgis crash win7 32bit ecw.png (127.7 KB ) - added by gespiel 14 years ago.

Download all attachments as: .zip

Change History (24)

comment:1 by lutra, 14 years ago

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

comment:2 by spasm, 14 years ago

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.

in reply to:  2 comment:3 by lutra, 14 years ago

Resolution: invalid
Status: newclosed

Replying to 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.

comment:4 by gespiel, 14 years ago

Component: Build/InstallRasters
Keywords: vista added; image stretching removed
Must Fix for Release: NoYes
Platform Version: Vista 32 bit sp2
Resolution: invalid
Status: closedreopened
Summary: Crashing QGIS when calculating standard deviations for an ECW is fatalCrashing QGIS when add new raster layer ecw
Version: 1.3.01.4.0

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.

comment:5 by lutra, 14 years ago

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?

comment:6 by gespiel, 14 years ago

Hello,

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

I coudnt test it with 1.5.0, because the osgeo4w installation dont support ecw.

in reply to:  6 comment:7 by lutra, 14 years ago

I coudnt test it with 1.5.0, because the osgeo4w installation dont 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.

comment:8 by gespiel, 14 years ago

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.

by gespiel, 14 years ago

by gespiel, 14 years ago

comment:9 by lutra, 14 years ago

Hi,

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

comment:10 by gespiel, 14 years ago

Hi,

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

Thank you

Gerhard

comment:11 by lutra, 14 years ago

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

comment:12 by gespiel, 14 years ago

Resolution: wontfix
Status: reopenedclosed

Use win7 or winxp

comment:13 by gespiel, 14 years ago

Keywords: ECW vista removed
Milestone: Version 1.4.0
Platform Version: Vista 32 bit sp2win7
Resolution: wontfix
Status: closedreopened
Version: 1.4.01.5.0

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

by gespiel, 14 years ago

comment:14 by trapanator, 14 years ago

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

comment:15 by pcav, 14 years ago

Milestone: Version 1.6.0

comment:16 by pcav, 14 years ago

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

in reply to:  16 comment:17 by gespiel, 14 years ago

Can you send me the new ecw-dlls to gerhard@…?

Thanks

Gerhard

comment:18 by lutra, 14 years ago

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.

comment:19 by trapanator, 14 years ago

Resolution: fixed
Status: reopenedclosed

now it works with latest DLLS of ECW 4.1.

I've put them into:

%OSGEO4W_ROOT%\bin

Note: See TracTickets for help on using tickets.