[QGIS-trac] [Quantum GIS] #1272: adding a GRASS raster crashes QGIS
Quantum GIS
qgis at qgis.org
Tue Sep 2 15:54:13 EDT 2008
#1272: adding a GRASS raster crashes QGIS
---------------------------------------------------------+------------------
Reporter: msieczka | Owner: nobody
Type: bug | Status: new
Priority: critical: causes crash or data corruption | Milestone: Version 1.0.0
Component: GRASS | Version: HEAD
Keywords: | Platform_version:
Platform: Debian | Must_fix: Yes
Status_info: 0 |
---------------------------------------------------------+------------------
QGIS trunk r9249, QT 4.4.0, GDAL 1.5.2 + SVN r15265 (stable branch), GRASS
6.4 + SVN r33223 (stable branch), gdal-grass plugin built from the source
of the previosly mentioned GDAL and GRASS revisions
Debian testing amd64
1. add a GRASS raster map (e.g. 'elevation.10m' from Spearfish6 dataset;
but can be any other)
2. crash
There was no crash in a day or two ago.
{{{
Debug: /home/shoofi/src/straight/qgis-
trunk/src/core/raster/qgsrasterlayer.cpp: 1554:
(drawPalettedSingleBandColor) entered.
Debug: /home/shoofi/src/straight/qgis-
trunk/src/core/raster/qgsrasterlayer.cpp: 3850: (readData) calling
RasterIO with , source NW corner: 0, 0, source size: 1899, 1398, dest
size: 32, 32
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f1617c567a0 (LWP 24671)]
0x0000000000000080 in ?? ()
(gdb) bt
#0 0x0000000000000080 in ?? ()
#1 0x00007f1614e3140b in GDALClose (hDS=0x16492e0) at
gdaldataset.cpp:1924
#2 0x00007f160619e73d in G_close_gdal_link (gdal=0x1649220) at gdal.c:121
#3 0x00007f160619149f in close_old (fd=20) at closecell.c:137
#4 0x00007f16061913b3 in G_close_cell (fd=20) at closecell.c:86
#5 0x00007f1601af6b50 in GRASSRasterBand::ResetReading ()
from /usr/local/lib/gdalplugins/gdal_GRASS.so
#6 0x00007f1601af6edc in GRASSRasterBand::IRasterIO ()
from /usr/local/lib/gdalplugins/gdal_GRASS.so
#7 0x00007f1614e476bf in GDALRasterBand::RasterIO (this=0x15b7740,
eRWFlag=GF_Read, nXOff=0, nYOff=0, nXSize=1899, nYSize=1398,
pData=0x16724b0, nBufXSize=32, nBufYSize=32, eBufType=GDT_Float64,
nPixelSpace=8, nLineSpace=256) at gdalrasterband.cpp:237
#8 0x00007f1614e47785 in GDALRasterIO (hBand=0x15b7740, eRWFlag=GF_Read,
nXOff=0, nYOff=0, nXSize=1899, nYSize=1398, pData=0x16724b0,
nBufXSize=32,
nBufYSize=32, eBufType=GDT_Float64, nPixelSpace=0, nLineSpace=0)
at gdalrasterband.cpp:262
#9 0x00007f16175ce949 in QgsRasterLayer::readData (this=0x15b3710,
gdalBand=0x15b7740, viewPort=0x1671380)
at /home/shoofi/src/straight/qgis-
trunk/src/core/raster/qgsrasterlayer.cpp:3869
#10 0x00007f16175de189 in QgsRasterLayer::drawPalettedSingleBandColor (
this=0x15b3710, theQPainter=0x15b7470, theRasterViewPort=0x1671380,
theQgsMapToPixel=0x0, theBandNo=1)
at /home/shoofi/src/straight/qgis-
trunk/src/core/raster/qgsrasterlayer.cpp:1568
#11 0x00007f16175deb74 in QgsRasterLayer::draw (this=0x15b3710,
theQPainter=0x15b7470, theRasterViewPort=0x1671380,
theQgsMapToPixel=0x0)
at /home/shoofi/src/straight/qgis-
trunk/src/core/raster/qgsrasterlayer.cpp:1243
#12 0x00007f16175df183 in QgsRasterLayer::drawThumbnail (this=0x15b3710,
theQPixmap=0x7fff1fd90990)
at /home/shoofi/src/straight/qgis-
trunk/src/core/raster/qgsrasterlayer.cpp:879
#13 0x000000000066d1e4 in QgsLegendLayer::getOriginalPixmap
(this=0x15a2370)
at /home/shoofi/src/straight/qgis-
trunk/src/app/legend/qgslegendlayer.cpp:461
#14 0x000000000066d2e4 in QgsLegendLayer::setLayerTypeIcon
(this=0x15a2370)
at /home/shoofi/src/straight/qgis-
trunk/src/app/legend/qgslegendlayer.cpp:89
#15 0x000000000066043d in QgsLegend::addLayer (this=0x1421360,
layer=0x15b3710)
at /home/shoofi/src/straight/qgis-
trunk/src/app/legend/qgslegend.cpp:477
#16 0x000000000069a15c in QgsLegend::qt_metacall (this=0x1421360,
_c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fff1fd90db0)
at /home/shoofi/src/straight/qgis-
trunk/build/src/app/legend/moc_qgslegend.cxx:116
#17 0x00007f161713a764 in QMetaObject::activate () from
/usr/lib/libQtCore.so.4
#18 0x00007f16176132a3 in QgsMapLayerRegistry::layerWasAdded
(this=0x1469560,
_t1=0x15b3710)
at /home/shoofi/src/straight/qgis-
trunk/build/src/core/moc_qgsmaplayerregistry.cxx:89
#19 0x00007f1617537bd0 in QgsMapLayerRegistry::addMapLayer
(this=0x1469560,
theMapLayer=0x15b3710, theEmitSignal=true)
at /home/shoofi/src/straight/qgis-
trunk/src/core/qgsmaplayerregistry.cpp:83
#20 0x00000000004b5ea1 in QgisApp::addRasterLayer (this=0x13948a0,
theRasterLayer=0x15b3710)
at /home/shoofi/src/straight/qgis-trunk/src/app/qgisapp.cpp:5297
#21 0x00000000004b751d in QgisApp::addRasterLayer (this=0x13948a0,
rasterFile=@0x7fff1fd911b0, baseName=@0x7fff1fd911a0, guiWarning=true)
at /home/shoofi/src/straight/qgis-trunk/src/app/qgisapp.cpp:5335
#22 0x00000000004ede14 in QgisAppInterface::addRasterLayer
(this=0x15060c0,
rasterLayerPath=
{static null = {<No data fields>}, static shared_null = {ref =
{_q_value = 2844}, alloc = 0, size = 0, data = 0x9374fa, clean = 0,
simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved =
0, array = {0}}, static shared_empty = {ref = {_q_value = 1903}, alloc =
0, size = 0, data = 0x7f161740d85a, clean = 0, simpletext = 0, righttoleft
= 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d =
0x7fff1fd911b0, static codecForCStrings = 0x0},
baseName=
{static null = {<No data fields>}, static shared_null = {ref =
{_q_value = 2844}, alloc = 0, size = 0, data = 0x9374fa, clean = 0,
simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved =
0, array = {0}}, static shared_empty = {ref = {_q_value = 1903}, alloc =
0, size = 0, data = 0x7f161740d85a, clean = 0, simpletext = 0, righttoleft
= 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d =
0x7fff1fd911a0, static codecForCStrings = 0x0})
at /home/shoofi/src/straight/qgis-
trunk/src/app/qgisappinterface.cpp:77
#23 0x00007f1606bc70c8 in QgsGrassPlugin::addRaster (this=0x153e220)
at /home/shoofi/src/straight/qgis-
trunk/src/plugins/grass/qgsgrassplugin.cpp:413
#24 0x00007f1606cc780c in QgsGrassPlugin::qt_metacall (this=0x153e220,
_c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fff1fd91300)
at /home/shoofi/src/straight/qgis-
trunk/build/src/plugins/grass/moc_qgsgrassplugin.cxx:98
#25 0x00007f161713a764 in QMetaObject::activate () from
/usr/lib/libQtCore.so.4
#26 0x00007f161664f1c7 in QAction::triggered () from
/usr/lib/libQtGui.so.4
#27 0x00007f161664f990 in QAction::activate () from /usr/lib/libQtGui.so.4
#28 0x00007f161695b03a in ?? () from /usr/lib/libQtGui.so.4
#29 0x00007f161695b2d5 in QAbstractButton::mouseReleaseEvent ()
from /usr/lib/libQtGui.so.4
#30 0x00007f1616a224aa in QToolButton::mouseReleaseEvent ()
from /usr/lib/libQtGui.so.4
#31 0x00007f16166a73af in QWidget::event () from /usr/lib/libQtGui.so.4
#32 0x00007f1616654e5d in QApplicationPrivate::notify_helper ()
from /usr/lib/libQtGui.so.4
#33 0x00007f161665d39a in QApplication::notify () from
/usr/lib/libQtGui.so.4
#34 0x00007f1617126411 in QCoreApplication::notifyInternal ()
from /usr/lib/libQtCore.so.4
#35 0x00007f161665c738 in QApplicationPrivate::sendMouseEvent ()
from /usr/lib/libQtGui.so.4
#36 0x00007f16166c0719 in ?? () from /usr/lib/libQtGui.so.4
#37 0x00007f16166bf5ef in QApplication::x11ProcessEvent ()
from /usr/lib/libQtGui.so.4
#38 0x00007f16166e69cc in ?? () from /usr/lib/libQtGui.so.4
#39 0x00007f16131dc892 in g_main_context_dispatch ()
from /usr/lib/libglib-2.0.so.0
#40 0x00007f16131e001d in ?? () from /usr/lib/libglib-2.0.so.0
#41 0x00007f16131e01db in g_main_context_iteration ()
from /usr/lib/libglib-2.0.so.0
#42 0x00007f161714e83f in QEventDispatcherGlib::processEvents ()
from /usr/lib/libQtCore.so.4
#43 0x00007f16166e616f in ?? () from /usr/lib/libQtGui.so.4
#44 0x00007f1617124d22 in QEventLoop::processEvents ()
from /usr/lib/libQtCore.so.4
#45 0x00007f1617124ead in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#46 0x00007f161712737d in QCoreApplication::exec ()
from /usr/lib/libQtCore.so.4
#47 0x00000000004b2dc9 in main (argc=1, argv=0x7fff1fd931e8)
at /home/shoofi/src/straight/qgis-trunk/src/app/main.cpp:683
}}}
--
Ticket URL: <http://trac.osgeo.org/qgis/ticket/1272>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list