Ticket #1753 (closed bug: worksforme)

Opened 4 years ago

Last modified 4 years ago

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
Platform Version: Platform: All
Must Fix for Release: No 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

  Changed 4 years ago by pcav

  • type changed from patch to bug
  • component changed from Build/Install to Projection Support

  Changed 4 years ago by lutra

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?

  Changed 4 years ago by gcarrillo

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.

  Changed 4 years ago by lutra

  • 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?

  Changed 4 years ago by gcarrillo

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.

  Changed 4 years ago by lutra

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.

  Changed 4 years ago by gcarrillo

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.

  Changed 4 years ago by lutra

  • milestone set to Version 1.2.0

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

  Changed 4 years ago by lutra

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.

follow-up: ↓ 14   Changed 4 years ago by 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).

  Changed 4 years ago by lutra

Well,

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

  Changed 4 years ago by lutra

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.

  Changed 4 years ago by pcav

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   Changed 4 years ago by lutra

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.

follow-up: ↓ 17   Changed 4 years ago by 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.

  Changed 4 years ago by lutra

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   Changed 4 years ago by lutra

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.

  Changed 4 years ago by lutra

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.

follow-up: ↓ 20   Changed 4 years ago by 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).

in reply to: ↑ 19   Changed 4 years ago by lutra

  • status changed from new to closed
  • resolution set to worksforme

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.

  Changed 4 years ago by gcarrillo

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

Note: See TracTickets for help on using tickets.