Bug report #8073

Updated by Sandro Santilli over 7 years ago

Loading PostGIS native rasters through DB Manager is slow but effective. When loading an out-of-db (registered through -R option of raster2pgsql), I get a crash with current master:



<pre>

Fatal: QGIS died on signal 11

Stacktrace (piped through c++filt):

/usr/bin/qgis.bin(myMessageOutput(QtMsgType, char const*)+0xb1)[0x4fed21]

/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType, char const*)+0x30)[0x7fe373827450]

/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x718b8)[0x7fe3738278b8]

/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qFatal(char const*, ...)+0x94)[0x7fe373827a44]

/lib/x86_64-linux-gnu/libc.so.6(+0x35310)[0x7fe370859310]

/lib/x86_64-linux-gnu/libc.so.6(+0x132260)[0x7fe370956260]

/usr/lib/libgdal.so.1(PostGISRasterRasterBand::IReadBlock(int, int, void*)+0x3b6)[0x7fe3754c8d86]

/usr/lib/libgdal.so.1(GDALRasterBand::GetLockedBlockRef(int, int, int)+0x139)[0x7fe3755928f9]

/usr/lib/libgdal.so.1(GDALRasterBand::IRasterIO(GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, int, int)+0x238)[0x7fe37559f768]

/usr/lib/libgdal.so.1(GDALRasterBand::ComputeStatistics(int, double*, double*, double*, double*, int (*)(double, char const*, void*), void*)+0x6b3)[0x7fe375593fd3]

/usr/lib/libgdal.so.1(GDALRasterBand::GetStatistics(int, int, double*, double*, double*, double*)+0x1fe)[0x7fe37558fdde]

/usr/lib/qgis/plugins/libgdalprovider.so(QgsGdalProvider::bandStatistics(int, int, QgsRectangle const&, int)+0x3bd)[0x7fe353e7ad2d]

/usr/lib/libqgis_core.so.1.9.0(QgsRasterInterface::initHistogram(QgsRasterHistogram&, int, int, double, double, QgsRectangle const&, int, bool)+0x87)[0x7fe374cc69f7]

/usr/lib/qgis/plugins/libgdalprovider.so(QgsGdalProvider::histogram(int, int, double, double, QgsRectangle const&, int, bool)+0x118)[0x7fe353e7a138]

/usr/lib/libqgis_core.so.1.9.0(QgsRasterInterface::cumulativeCut(int, double, double, double&, double&, QgsRectangle const&, int)+0x51)[0x7fe374cc6571]

/usr/lib/libqgis_core.so.1.9.0(QgsRasterLayer::setContrastEnhancement(QgsContrastEnhancement::ContrastEnhancementAlgorithm, QgsRaster::ContrastEnhancementLimits, QgsRectangle, int, bool)+0x78c)[0x7fe374cd3b8c]

/usr/lib/libqgis_core.so.1.9.0(QgsRasterLayer::setDefaultContrastEnhancement()+0x2bb)[0x7fe374cd43db]

/usr/lib/libqgis_core.so.1.9.0(QgsRasterLayer::QgsRasterLayer(QString const&, QString const&, QString const&, bool)+0x1ab)[0x7fe374cd4d9b]

/usr/bin/qgis.bin(QgisApp::addRasterLayerPrivate(QString const&, QString const&, QString const&, bool, bool)+0x85)[0x52ec55]

/usr/bin/qgis.bin(QgisApp::dropEvent(QDropEvent*)+0x327)[0x534e17]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QWidget::event(QEvent*)+0xadc)[0x7fe372d292fc]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QMainWindow::event(QEvent*)+0x6b)[0x7fe3730f0e0b]

/usr/bin/qgis.bin(QgisApp::event(QEvent*)+0x11)[0x534f81]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplicationPrivate::notify_helper(QObject*, QEvent*)+0xac)[0x7fe372cdc0ec]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplication::notify(QObject*, QEvent*)+0xae3)[0x7fe372cdf403]

/usr/lib/libqgis_core.so.1.9.0(QgsApplication::notify(QObject*, QEvent*)+0x5b)[0x7fe374acda9b]

/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QCoreApplication::notifyInternal(QObject*, QEvent*)+0x8e)[0x7fe37392e3ae]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x2543f1)[0x7fe372d663f1]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x254815)[0x7fe372d66815]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x254a00)[0x7fe372d66a00]

/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QCoreApplicationPrivate::sendThroughApplicationEventFilters(QObject*, QEvent*)+0x9a)[0x7fe37392e47a]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x26)[0x7fe372cdc066]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplication::notify(QObject*, QEvent*)+0x99b)[0x7fe372cdf2bb]

/usr/lib/libqgis_core.so.1.9.0(QgsApplication::notify(QObject*, QEvent*)+0x5b)[0x7fe374acda9b]

/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QCoreApplication::notifyInternal(QObject*, QEvent*)+0x8e)[0x7fe37392e3ae]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool)+0x14b)[0x7fe372ce218b]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x242b94)[0x7fe372d54b94]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplication::x11ProcessEvent(_XEvent*)+0xb11)[0x7fe372d53921]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26bea2)[0x7fe372d7dea2]

/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x135)[0x7fe36f15ed95]

/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x490d8)[0x7fe36f15f0d8]

/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x34)[0x7fe36f15f194]

/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x66)[0x7fe37395cce6]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26bf9e)[0x7fe372d7df9e]

/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x2f)[0x7fe37392d0ff]

/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0x138)[0x7fe37392d388]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x253e26)[0x7fe372d65e26]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QDrag::exec(QFlags<Qt::DropAction>, Qt::DropAction)+0x68)[0x7fe372cedcd8]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QAbstractItemView::startDrag(QFlags<Qt::DropAction>)+0x147)[0x7fe3731ec657]

/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so(+0x24e6d1)[0x7fe3491466d1]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QAbstractItemView::mouseMoveEvent(QMouseEvent*)+0x316)[0x7fe3731ed1c6]

/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so(+0x233a6b)[0x7fe34912ba6b]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QWidget::event(QEvent*)+0x95b)[0x7fe372d2917b]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QFrame::event(QEvent*)+0x26)[0x7fe3730d7a36]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QAbstractItemView::viewportEvent(QEvent*)+0x40b)[0x7fe3731ed9bb]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QTreeView::viewportEvent(QEvent*)+0x131)[0x7fe37322d611]

/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so(+0x230afb)[0x7fe349128afb]

/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*)+0x86)[0x7fe37392e516]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x7c)[0x7fe372cdc0bc]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplication::notify(QObject*, QEvent*)+0x99b)[0x7fe372cdf2bb]

/usr/lib/libqgis_core.so.1.9.0(QgsApplication::notify(QObject*, QEvent*)+0x5b)[0x7fe374acda9b]

/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QCoreApplication::notifyInternal(QObject*, QEvent*)+0x8e)[0x7fe37392e3ae]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool)+0x14b)[0x7fe372ce218b]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x242b94)[0x7fe372d54b94]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplication::x11ProcessEvent(_XEvent*)+0xb11)[0x7fe372d53921]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26bea2)[0x7fe372d7dea2]

/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x135)[0x7fe36f15ed95]

/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x490d8)[0x7fe36f15f0d8]

/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x34)[0x7fe36f15f194]

/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x66)[0x7fe37395cce6]

/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26bf9e)[0x7fe372d7df9e]

/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x2f)[0x7fe37392d0ff]

/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0x138)[0x7fe37392d388]

/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QCoreApplication::exec()+0x86)[0x7fe373932a66]

/usr/bin/qgis.bin(main+0x2215)[0x4faca5]

/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7fe370845a55]

/usr/bin/qgis.bin[0x4feab9]

</pre>

Back