Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1753 closed bug (worksforme)

QGis crashes in a Zoom to Full Extent after an 'on the fly' transformation

Reported by: gcarrillo Owned by: nobody
Priority: critical: causes crash or data corruption Milestone: Version 1.2.0
Component: Projection Support Version: Trunk
Keywords: Raster Layer Transformation On The Fly SRC Cc: pcav
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

I load a raster layer to QGis, check the 'on the fly' option on the SRC main dialog, set the SRC to 3115. At this point everything is ok. I open again the SRC dialog and set the EPSG to 4326.

I get this log messages:

Warning: Throwing exception /build/buildd/qgis-1.1.0/src/core/qgscoordinatetransform.cpp503 Warning: Throwing exception /build/buildd/qgis-1.1.0/src/core/qgscoordinatetransform.cpp226 Warning: Throwing exception /build/buildd/qgis-1.1.0/src/core/qgscoordinatetransform.cpp246 Warning: Transform error caught in /build/buildd/qgis-1.1.0/src/core/qgsmaprenderer.cpp, line 597

And finally QGis crashes in a Zoom to Full Extent and get a Segmentation Fault.

Change History (21)

comment:1 by pcav, 15 years ago

Component: Build/InstallProjection Support
Type: patchbug

comment:2 by lutra, 15 years ago

I can't replicate this on both windows and linux with Qgis 1.2, but I haven't any raster in the 3115 projection. Could you provide some test data?

comment:3 by gcarrillo, 15 years ago

This is a test raster: http://downloads.tuxfamily.org/tuxgis/tmp/test.tif

After the last 'on the fly' transformation I navigate the map (with zooms) and QGis crashes.

I'm using QGis 1.1 on Ubuntu 9.04.

comment:4 by lutra, 15 years ago

Cc: pcav added

I tested the map with qgis 1.1 under ubuntu 9.04 (from repository, compiled against gdal 1.6.1) and qgis 1.2 under ubuntu 9.04 (compiled from source againt the latest gdal), and I cannot replicate the problem.

When CRS is set to 4326, zooming and panning has sometimes delays, but the program never freezed nor crashed.

Closing?

What repository are you using?

comment:5 by gcarrillo, 15 years ago

With the test.tif file, on Ubuntu 9.04 (repository: ppa.launchpad.net, Unstable version) and Windows XP (QGis 1.1, OSGeo4W Installer) QGis crashes. If necessary I could make a small video.

comment:6 by lutra, 15 years ago

Please try qgis 1.1 from the

http://les-ejk.cz/ubuntu/

repository, if I'm not wrong it has qgis compiled against a more recent version of gdal (compared to the version available in the launchpad repository). Try also qgis 1.2 under windows, you can install it with the osgeo4w installer, together with the 1.0.x/1.1.x version.

comment:7 by gcarrillo, 15 years ago

I did try QGis 1.2 with the OSGeo4W installer and I get the same results: QGis crashes. I'm using the test.tif file.

comment:8 by lutra, 15 years ago

Milestone: Version 1.2.0

I'll make further tests and try to figure where it could be the difference.

comment:9 by lutra, 15 years ago

Hi,

I'm sorry, but I cannot make qgis crash :)

Here

http://www.faunalia.pt/downloads/linux.mpeg

http://www.faunalia.pt/downloads/windows.mpeg

you can download the screencasts I made under ubuntu and windows. You tell me if I done something wrong or if I missed something. If not, I guess we will need more tests by other people.

comment:10 by gcarrillo, 15 years ago

I send you the steps I am following on a video:

http://downloads.tuxfamily.org/tuxgis/tmp/qgis_bug.tar

I did use QGis 1.1, only to show you the steps (I don't have the 1.2 version installed at home).

comment:11 by lutra, 15 years ago

Well,

I guess we will need more tests by other people :)

comment:12 by lutra, 15 years ago

By the way I tested qgis 1.1 and do crashes, so I guess that something between 1.1 and 1.2 has already been fixed.

Let's see if we get more feedback.

comment:13 by pcav, 15 years ago

Tested, I cannot make QGIS crash with test.tif, following the same steps. This with self-compiled QGIS from today's trunk, libgdal 1.5.4 on Debian testing, up to date. I get some warning, however:

Warning: QgsCoordinateReferenceSystem::getRecord failed : select * from tbl_srs where parameters='+proj=tmerc +lat_0=4.599047222222223 +lon_0=-77.08091666666667 +k=1 +x_0=1000000 +y_0=1000000 +ellps=intl +units=m +no_defs' Warning: QgsCoordinateReferenceSystem::findMatchingProj will only work if prj acr ellipsoid acr and proj4string are set!... Warning: QgsCoordinateReferenceSystem::getRecord failed : select * from tbl_srs where parameters='+proj=tmerc +lat_0=4.599047222222223 +lon_0=-77.08091666666667 +k=1 +x_0=1000000 +y_0=1000000 +ellps=intl +units=m +no_defs' Warning: QgsCoordinateReferenceSystem::findMatchingProj will only work if prj acr ellipsoid acr and proj4string are set!... Warning: Object::connect: No such signal QgsRasterLayer::editingStarted() in /home_slides/Desktop/build/qgis_unstable/src/app/legend/qgslegend.cpp:548 Warning: Object::connect: No such signal QgsRasterLayer::editingStopped() in /home_slides/Desktop/build/qgis_unstable/src/app/legend/qgslegend.cpp:549

in reply to:  10 comment:14 by lutra, 15 years ago

Replying to gcarrillo:

I send you the steps I am following on a video:

http://downloads.tuxfamily.org/tuxgis/tmp/qgis_bug.tar

I did use QGis 1.1, only to show you the steps (I don't have the 1.2 version installed at home).

Hi, have you any chance to test this bug on a clean installation of linux/windows and qgis (possibly from trunk)?

Your problem can be related to local configurations/definitions.

comment:15 by gcarrillo, 15 years ago

I can test it again on a clean installation of QGis, but I think the reinstallation of the O.S. is not possible.

Please remember that I test the bug on two PC's getting the same results. I did test on Windows XP the QGis 1.2 (rev. 10972M) with OSGeo4W installer.

I'll tell to my friends to test it.

comment:16 by lutra, 15 years ago

Hi, I didn't mean to reinstall your o.s. :) A virtual machine can do the trick, but also other pc would serve to test this bug.

Thanks.

in reply to:  15 comment:17 by lutra, 15 years ago

Replying to gcarrillo:

I can test it again on a clean installation of QGis, but I think the reinstallation of the O.S. is not possible.

Please remember that I test the bug on two PC's getting the same results. I did test on Windows XP the QGis 1.2 (rev. 10972M) with OSGeo4W installer.

I'll tell to my friends to test it.

Just tested qgis 1.2 from osgeo4w under Vista 32 bit. No crash or freeze.

comment:18 by lutra, 15 years ago

Tested again two more times on different windows xp installations (not virtual machines), and I can't get any crash or freeze using qgis 1.2 installed with the osgeo4w installer.

comment:19 by gcarrillo, 15 years ago

I tested on other Ubuntu 9.04 installation with QGis 1.1 and don't get the crash. I don't know what happen with my two installations (at home and at office).

in reply to:  19 comment:20 by lutra, 15 years ago

Resolution: worksforme
Status: newclosed

Replying to gcarrillo:

I tested on other Ubuntu 9.04 installation with QGis 1.1 and don't get the crash. I don't know what happen with my two installations (at home and at office).

Hi there, seems that it can depends on some kind of personal configuration of qgis. In any case I'll close this ticket because it seems also that problem is not correlated directly to OTFT, raster support and/or CRS.

Feel free to reopen it if necessary, or open a new one if you find a new different cause for your crashes.

comment:21 by gcarrillo, 15 years ago

I tested again this issue with r11242 and this time QGis don't crash. Thanks.

Note: See TracTickets for help on using tickets.