Bug #5895

the " inverse transform..." error need to be caught, otherwise QGIS freezes.

Added by Giovanni Manghi 11 months ago. Updated 8 months ago.

Status:Closed Start Date:06/28/2012
Priority:High Due date:
Assigned to:Magnus Homann % Done:

0%

Category:-
Target version:Version 2.0.0
Platform: Patch supplied:No
Platform version: Affected version:master
Status info: Causes crash or corruption:Yes
Resolution:fixed

Description

Sometimes when adding layers with different CRSs and enabling OTFR, QGIS throws the following error


inverse transform of
(-87.576312, 101.880351)
PROJ.4: +proj=tmerc +lat_0=39.66825833333333 +lon_0=-8.133108333333334 +k=1 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +to +proj=longlat +datum=WGS84 +no_defs
Error: latitude or longitude exceeded limits

I guess that is ok as it warns that one of the layers cannot be reprojected because of its extent.

The problem is that after closing the dialog clicking on "ok", the mouse pointer remain as hourglass forever and even if it allows to access menus and buttons QGIS is completely non responsive, making kill the application the only option.

teste_error.qgs (7.5 kB) Giovanni Manghi, 09/11/2012 02:11 am

History

Updated by Magnus Homann 9 months ago

  • Assigned to set to Magnus Homann

Does this happen still? Do you have an exampl layer that this happens on?

Updated by Giovanni Manghi 9 months ago

Magnus Homann wrote:

Does this happen still? Do you have an exampl layer that this happens on?

yes, I just tested.

I added a vector in a projected CRS and then a WMS layer in WGS84. Then started to zoom out and got the error message + freeze. I know that it is an operation that does not make sense (reprojecting a large lat/lon area in a projected CRS) anyway we should avoid to have QGIS freeze, after all this can happen by pure mistake.

Updated by Magnus Homann 9 months ago

OK, I think it's the WMS that is the key to the issue. IS there a simple WMS server where I can reproduce this on?

Updated by Giovanni Manghi 9 months ago

Magnus Homann wrote:

OK, I think it's the WMS that is the key to the issue. IS there a simple WMS server where I can reproduce this on?

here

http://geoposer.com:443/server/services/ve.xml

Thanks!

Updated by Magnus Homann 8 months ago

Hmm, I found an error when zooming out, but that was due to a division by zero in raster code. The error sent a "NaN" to transformCoords() and so the popup said:
"inverse transform of
(nan, nan) ..."

But the original reporters error is somewhat different. What did you see, Giovanni?

Edit: Nevermind, got it now! :-)

Updated by Giovanni Manghi 8 months ago

Magnus Homann wrote:

Hmm, I found an error when zooming out, but that was due to a division by zero in raster code. The error sent a "NaN" to transformCoords() and so the popup said: "inverse transform of (nan, nan) ..."

But the original reporters error is somewhat different. What did you see, Giovanni?

Edit: Nevermind, got it now! :-)

attaching a test project

Updated by Magnus Homann 8 months ago

  • Status changed from New to Closed

Thought I fixed it, but a lot of out of memory errors cropped up. :-)

Updated by Giovanni Manghi 8 months ago

  • Resolution set to fixed

Magnus Homann wrote:

Thought I fixed it, but a lot of out of memory errors cropped up. :-)

thanks a lot indeed!

Also available in: Atom PDF