Bug report #8283

Loading QGIS 1.8 color ramp in QGIS 2.0 causes crash

Added by Tim Sutton over 11 years ago. Updated over 11 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:Jürgen Fischer
Category:Rasters
Affected QGIS version:master Regression?:No
Operating System:Linux Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:17083

Description

Loading a raster dataset with a legacy (QGIS 1.8) qml which contains a colour ramp causes QGIS 2.0 to crash.

I've attached a sample which can be used to replicate the issue.

The follow is the traceback for when the crash occurs:

0    raise    /lib/x86_64-linux-gnu/libc.so.6        0x7ffff0108037    
1    abort    /lib/x86_64-linux-gnu/libc.so.6        0x7ffff010b698    
2    myMessageOutput    main.cpp    285    0x54a773    
3    qt_message_output(QtMsgType, char const*)    /usr/lib/x86_64-linux-gnu/libQtCore.so.4        0x7ffff25fd4d0    
4    ??    /usr/lib/x86_64-linux-gnu/libQtCore.so.4        0x7ffff25fd938    
5    qFatal(char const*, ...)    /usr/lib/x86_64-linux-gnu/libQtCore.so.4        0x7ffff25fdac4    
6    QList<int>::operator[]    qlist.h    473    0x7ffff31a2789    
7    QgsGdalProvider::dataType    qgsgdalprovider.cpp    1052    0x7fffcd5866a7    
8    QgsGdalProvider::block    qgsgdalprovider.cpp    375    0x7fffcd5830ff    
9    QgsSingleBandPseudoColorRenderer::block    qgssinglebandpseudocolorrenderer.cpp    115    0x7ffff3b50a96    
10    QgsBrightnessContrastFilter::block    qgsbrightnesscontrastfilter.cpp    125    0x7ffff3b51cc1    
11    QgsHueSaturationFilter::block    qgshuesaturationfilter.cpp    131    0x7ffff3b52fdc    
12    QgsRasterResampleFilter::block    qgsrasterresamplefilter.cpp    170    0x7ffff3b422c8    
13    QgsRasterProjector::block    qgsrasterprojector.cpp    723    0x7ffff3b11878    
14    QgsRasterIterator::readNextRasterPart    qgsrasteriterator.cpp    96    0x7ffff3b1ef72    
15    QgsRasterDrawer::draw    qgsrasterdrawer.cpp    58    0x7ffff3b379dd    
16    QgsRasterLayer::draw    qgsrasterlayer.cpp    438    0x7ffff3b22f92    
17    QgsRasterLayer::draw    qgsrasterlayer.cpp    403    0x7ffff3b22558    
18    QgsMapRenderer::render    qgsmaprenderer.cpp    538    0x7ffff3973e31    
19    QgsMapCanvasMap::render    qgsmapcanvasmap.cpp    83    0x7ffff3209d2b    
20    QgsMapCanvas::refresh    qgsmapcanvas.cpp    424    0x7ffff3201a58    
21    QgisApp::addRasterLayerPrivate    qgisapp.cpp    8408    0x5891d1    
22    QgisApp::addRasterLayers    qgisapp.cpp    8496    0x5897b4    
23    QgisApp::addRasterLayer    qgisapp.cpp    8279    0x5889f7    
24    QgisApp::qt_static_metacall    moc_qgisapp.cxx    590    0x8a41fc    
25    QMetaObject::activate(QObject*, QMetaObject const*, int, void**)    /usr/lib/x86_64-linux-gnu/libQtCore.so.4        0x7ffff27190ef    
26    QAction::triggered(bool)    /usr/lib/x86_64-linux-gnu/libQtGui.so.4        0x7ffff1aa4152    
27    QAction::activate(QAction::ActionEvent)    /usr/lib/x86_64-linux-gnu/libQtGui.so.4        0x7ffff1aa5580    
28    ??    /usr/lib/x86_64-linux-gnu/libQtGui.so.4        0x7ffff1e699ef    
29    QAbstractButton::mouseReleaseEvent(QMouseEvent*)    /usr/lib/x86_64-linux-gnu/libQtGui.so.4        0x7ffff1e69c9c    
30    QToolButton::mouseReleaseEvent(QMouseEvent*)    /usr/lib/x86_64-linux-gnu/libQtGui.so.4        0x7ffff1f2677a    
31    QWidget::event(QEvent*)    /usr/lib/x86_64-linux-gnu/libQtGui.so.4        0x7ffff1af7a89    
32    QApplicationPrivate::notify_helper(QObject*, QEvent*)    /usr/lib/x86_64-linux-gnu/libQtGui.so.4        0x7ffff1aaa8ec    
33    QApplication::notify(QObject*, QEvent*)    /usr/lib/x86_64-linux-gnu/libQtGui.so.4        0x7ffff1aada33    
34    QgsApplication::notify    qgsapplication.cpp    242    0x7ffff38b73c2    
35    QCoreApplication::notifyInternal(QObject*, QEvent*)    /usr/lib/x86_64-linux-gnu/libQtCore.so.4        0x7ffff270463e    
36    QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool)    /usr/lib/x86_64-linux-gnu/libQtGui.so.4        0x7ffff1ab0933    
37    ??    /usr/lib/x86_64-linux-gnu/libQtGui.so.4        0x7ffff1b25ec4    
38    QApplication::x11ProcessEvent(_XEvent*)    /usr/lib/x86_64-linux-gnu/libQtGui.so.4        0x7ffff1b24ef1    
39    ??    /usr/lib/x86_64-linux-gnu/libQtGui.so.4        0x7ffff1b500b2    
40    g_main_context_dispatch    /lib/x86_64-linux-gnu/libglib-2.0.so.0        0x7fffedffff05    
41    ??    /lib/x86_64-linux-gnu/libglib-2.0.so.0        0x7fffee000248    
42    g_main_context_iteration    /lib/x86_64-linux-gnu/libglib-2.0.so.0        0x7fffee000304    
43    QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)    /usr/lib/x86_64-linux-gnu/libQtCore.so.4        0x7ffff2733016    
44    ??    /usr/lib/x86_64-linux-gnu/libQtGui.so.4        0x7ffff1b501ae    
45    QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)    /usr/lib/x86_64-linux-gnu/libQtCore.so.4        0x7ffff270338f    
46    QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)    /usr/lib/x86_64-linux-gnu/libQtCore.so.4        0x7ffff2703618    
47    QCoreApplication::exec()    /usr/lib/x86_64-linux-gnu/libQtCore.so.4        0x7ffff2708cf6    
48    main    main.cpp    1020    0x54d372    

ramp_crash.tar.gz (1.2 KB) Tim Sutton, 2013-07-12 05:06 AM


Related issues

Related to QGIS Application - Bug report #7080: Master version crashes when loads 1.8 project Closed 2013-01-30

Associated revisions

Revision d6c16dd2
Added by Jürgen Fischer over 11 years ago

project file transform: don't imply we know the band count (fixes #7080, fixes #8283)

History

#1 Updated by Salvatore Larosa over 11 years ago

I think this is a duplicate of #7080

#2 Updated by Jürgen Fischer over 11 years ago

  • Status changed from Open to Feedback

um, doesn't crash here.

#3 Updated by Salvatore Larosa over 11 years ago

Hi Jürgen,
did you try with sample data of #7080 ?

#4 Updated by Giovanni Manghi over 11 years ago

Jürgen Fischer wrote:

um, doesn't crash here.

no crash here too

#5 Updated by Salvatore Larosa over 11 years ago

more info by full backtrace: http://codepad.org/zvJHsbNC

#6 Updated by Jürgen Fischer over 11 years ago

  • Status changed from Feedback to Closed

#7 Updated by Tim Sutton over 11 years ago

That fixes it for me too thanks!

Tim

Also available in: Atom PDF