#1159 closed bug (fixed)
Identify tool with on-the-fly projection can crash
Reported by: | barryrowlingson | Owned by: | telwertowski |
---|---|---|---|
Priority: | critical: causes crash or data corruption | Milestone: | |
Component: | Projection Support | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | No | Platform: | All |
Platform Version: | Windows 0.10.0-Io (8383) | Awaiting user input: | no |
Description
I loaded a world shapefile (downloaded from here http://www.cipotato.org/diva/data/moredata.htm), then set the projection to 164 - US National Atlas Equal Area (from the Projected Coord Systems: Lambert Azimuthal Equal Area category) and set on-the-fly projection.
Do 'Zoom to Layer Extent' on the world layer. Now you get a US-centric circular map of the world.
Using the Identify tool on the polygons works but is very slow. It's not a massive dataset but maybe the point-in-polygon projection calculations are complex. Never mind. If you click outside the circle of the map Qgis crashes on Windows with a Visual C++ Runtime Library Error. I'm guessing it's an arithmetic problem when converting from a screen coord that doesn't have a piece of the world under it.
Haven't tested on Linux yet.
Change History (3)
comment:1 by , 16 years ago
Owner: | changed from | to
---|---|
Platform: | Debian → All |
comment:2 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Happens on Mac too (and most likely all platforms):
There are two things to fix here.
1) QGIS needs an exception handler on the main event loop so that an exception alert is displayed and the user is allowed to continue without crashing.
2) The Identify code ought to handle this specific exception and report "No features found" much as it does if you click above or below the poles using an unprojected map.