Opened 15 years ago

Closed 15 years ago

#1420 closed bug (worksforme)

random freezes when built with debug

Reported by: msieczka Owned by: nobody
Priority: critical: causes crash or data corruption Milestone: Version 1.0.3
Component: GUI Version: Trunk
Keywords: Cc:
Must Fix for Release: Yes Platform: Linux
Platform Version: Awaiting user input: no

Description

For some months now QGIS SVN trunk *built with debug* sometimes freezes at startup. I have kill it, as well the terminal it was called from, cause the terminal freezes as well.

I don't think particular distro, QT version or hardware has to do here, as I've been experiencing this issue on 3 very different machines with i386 Ubuntu Dapper, amd64 Ubuntu Gutsy and amd64 Debian testing using various QT versions. The only common thing I guess is that all are Gnome based GNU/Linux distros.

Related probably: I cannot permanently change the GRASS tools toolbar location. It is always reset to max top-right location at next QGIS run. *And*, sometimes, as I move the toolbar around, QGIS freezes like described above.

Change History (6)

comment:1 by jef, 15 years ago

Did you try to attach to the frozen process to get a backtrace?

in reply to:  1 comment:2 by msieczka, 15 years ago

Replying to jef:

Did you try to attach to the frozen process to get a backtrace?

So it happened again. This time whole Gnome freezed - such a total freeze happened only once before, as far as I remeber. After killing QGIS from a tty Gnome came back to it's normal state.

Here's the backtrace before I killed QGIS:

0x00007fdce9a13a2b in write () from /lib/libc.so.6
(gdb) bt
#0  0x00007fdce9a13a2b in write () from /lib/libc.so.6
#1  0x00007fdce99c190a in _IO_file_write () from /lib/libc.so.6
#2  0x00007fdce99c156a in ?? () from /lib/libc.so.6
#3  0x00007fdce99c184e in _IO_file_xsputn () from /lib/libc.so.6
#4  0x00007fdce999ac0a in ?? () from /lib/libc.so.6
#5  0x00007fdce9996436 in vfprintf () from /lib/libc.so.6
#6  0x00007fdce999fc08 in fprintf () from /lib/libc.so.6
#7  0x00000000004b270e in myMessageOutput (type=QtDebugMsg, 
    msg=0x7ffff5cb08f0 "/home/shoofi/src/straight/qgis-trunk/src/core/qgsmaprenderer.cpp: 193: (adjustExtentToSize), Scale (assuming meters as map units) = 1: 1388891.828683") at /home/shoofi/src/straight/qgis-trunk/src/app/main.cpp:210
#8  0x00007fdcecf4e543 in qt_message_output () from /usr/lib/libQtCore.so.4
#9  0x00007fdcecf4e9e4 in qDebug () from /usr/lib/libQtCore.so.4
#10 0x00007fdced44c1c3 in QgsLogger::debug (var=@0x7ffff5cb2c30, 
    val=1388891.8286826622, debuglevel=1, 
    file=0x7fdced587f08 "/home/shoofi/src/straight/qgis-trunk/src/core/qgsmaprenderer.cpp", function=0x7fdced5884c0 "adjustExtentToSize", line=193)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgslogger.cpp:127
#11 0x00007fdced45b183 in QgsMapRenderer::adjustExtentToSize (this=0x1e3fbb0)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsmaprenderer.cpp:193
#12 0x00007fdced45b340 in QgsMapRenderer::setOutputSize (this=0x1e3fbb0, size=
      {wd = 1024, ht = 616}, dpi=98)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsmaprenderer.cpp:119
#13 0x00007fdced859228 in QgsMapCanvasMap::resize (this=0x1d92890, size=
      {wd = 1024, ht = 616})
    at /home/shoofi/src/straight/qgis-trunk/src/gui/qgsmapcanvasmap.cpp:52
#14 0x00007fdced854a69 in QgsMapCanvas::resizeEvent (this=0x1ebe1c0, 
    e=0x7ffff5cb3540)
    at /home/shoofi/src/straight/qgis-trunk/src/gui/qgsmapcanvas.cpp:815
#15 0x00007fdcec5b4f58 in QWidget::event () from /usr/lib/libQtGui.so.4
#16 0x00007fdcecab117b in QGraphicsView::viewportEvent ()
   from /usr/lib/libQtGui.so.4
#17 0x00007fdced03d658 in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib/libQtCore.so.4
#18 0x00007fdcec562a2c in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#19 0x00007fdcec56a7da in QApplication::notify () from /usr/lib/libQtGui.so.4
#20 0x00007fdced40e62e in QgsApplication::notify (this=0x7ffff5cb4ef0, 
    receiver=0x1e04fd0, event=0x7ffff5cb3540)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsapplication.cpp:78
#21 0x00007fdced03e381 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#22 0x00007fdcec5eba64 in QWidgetPrivate::setGeometry_sys ()
   from /usr/lib/libQtGui.so.4
#23 0x00007fdcec5b0157 in QWidget::setGeometry () from /usr/lib/libQtGui.so.4
#24 0x00007fdcec93b064 in ?? () from /usr/lib/libQtGui.so.4
#25 0x00007fdcec93b616 in QAbstractScrollArea::event ()
   from /usr/lib/libQtGui.so.4
#26 0x00007fdcec562a5d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#27 0x00007fdcec56a7da in QApplication::notify () from /usr/lib/libQtGui.so.4
#28 0x00007fdced40e62e in QgsApplication::notify (this=0x7ffff5cb4ef0, 
    receiver=0x1ebe1c0, event=0x7ffff5cb3ec0)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsapplication.cpp:78
#29 0x00007fdced03e381 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#30 0x00007fdcec5eba64 in QWidgetPrivate::setGeometry_sys ()
   from /usr/lib/libQtGui.so.4
#31 0x00007fdcec5b0157 in QWidget::setGeometry () from /usr/lib/libQtGui.so.4
#32 0x00007fdcec94fd24 in ?? () from /usr/lib/libQtGui.so.4
#33 0x00007fdcecaecf38 in ?? () from /usr/lib/libQtGui.so.4
#34 0x00007fdced0526d4 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#35 0x00007fdced04cfe3 in QObject::event () from /usr/lib/libQtCore.so.4
#36 0x00007fdcec562a5d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#37 0x00007fdcec56a7da in QApplication::notify () from /usr/lib/libQtGui.so.4
#38 0x00007fdced40e62e in QgsApplication::notify (this=0x7ffff5cb4ef0, 
    receiver=0x1d80fa0, event=0x7ffff5cb4950)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsapplication.cpp:78
#39 0x00007fdced03e381 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#40 0x00007fdced06a256 in ?? () from /usr/lib/libQtCore.so.4
#41 0x00007fdced0667ad in ?? () from /usr/lib/libQtCore.so.4
#42 0x00007fdce8ea178b in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#43 0x00007fdce8ea4f5d in ?? () from /usr/lib/libglib-2.0.so.0
#44 0x00007fdce8ea511b in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#45 0x00007fdced06670f in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#46 0x00007fdcec5f444f in ?? () from /usr/lib/libQtGui.so.4
#47 0x00007fdced03cca2 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#48 0x00007fdced03ce2d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#49 0x00007fdced03f2dd in QCoreApplication::exec ()
   from /usr/lib/libQtCore.so.4
#50 0x00000000004b5599 in main (argc=1, argv=0x7ffff5cb55e8)
    at /home/shoofi/src/straight/qgis-trunk/src/app/main.cpp:683
(gdb) detach
Detaching from program: /usr/local/bin/qgis, process 6438
(gdb) q

comment:3 by msieczka, 15 years ago

And here's a somewhat different bt when Gnome remains responsible and only QGIS alone freezes:

0x00007fd7eeec4a2b in write () from /lib/libc.so.6
(gdb) bt
#0  0x00007fd7eeec4a2b in write () from /lib/libc.so.6
#1  0x00007fd7eee7290a in _IO_file_write () from /lib/libc.so.6
#2  0x00007fd7eee7256a in ?? () from /lib/libc.so.6
#3  0x00007fd7eee7284e in _IO_file_xsputn () from /lib/libc.so.6
#4  0x00007fd7eee4bc0a in ?? () from /lib/libc.so.6
#5  0x00007fd7eee47436 in vfprintf () from /lib/libc.so.6
#6  0x00007fd7eee50c08 in fprintf () from /lib/libc.so.6
#7  0x00000000004b270e in myMessageOutput (type=QtDebugMsg, 
    msg=0x7ffffb161aa0 "/home/shoofi/src/straight/qgis-trunk/src/providers/grass/qgsgrassprovider.cpp: 717: (loadAttributes) No field info -> no attribute table") at /home/shoofi/src/straight/qgis-trunk/src/app/main.cpp:210
#8  0x00007fd7f23ff543 in qt_message_output () from /usr/lib/libQtCore.so.4
#9  0x00007fd7f23ff9e4 in qDebug () from /usr/lib/libQtCore.so.4
#10 0x00007fd7f28fd7e1 in QgsLogger::debug (msg=@0x7ffffb163da0, debuglevel=1, 
    file=0x7fd7e1e8f1f8 "/home/shoofi/src/straight/qgis-trunk/src/providers/grass/qgsgrassprovider.cpp", function=0x7fd7e1e90155 "loadAttributes", line=717)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgslogger.cpp:51
#11 0x00007fd7e1e74f02 in QgsGrassProvider::loadAttributes (
    layer=@0x7ffffb1642a0)
    at /home/shoofi/src/straight/qgis-trunk/src/providers/grass/qgsgrassprovider.cpp:717
#12 0x00007fd7e1e772ca in QgsGrassProvider::loadLayerSourcesFromMap (
    layer=@0x7ffffb1642a0)
    at /home/shoofi/src/straight/qgis-trunk/src/providers/grass/qgsgrassprovider.cpp:695
#13 0x00007fd7e1e7a1db in QgsGrassProvider::openLayer (gisdbase=
      {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 4451}, alloc = 0, size = 0, data = 0x9406da, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 21}, alloc = 0, size = 0, data = 0x7fd7f27d5cfa, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x7ffffb1648e0, static codecForCStrings = 0x0}, 
    location=
      {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 4451}, alloc = 0, size = 0, data = 0x9406da, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 21}, alloc = 0, size = 0, data = 0x7fd7f27d5cfa, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x7ffffb1648d0, static codecForCStrings = 0x0}, mapset=
      {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 4451}, alloc = 0, size = 0, data = 0x9406da, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 21}, alloc = 0, size = 0, data = 0x7fd7f27d5cfa, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x7ffffb1648c0, static codecForCStrings = 0x0}, 
    mapName=

      {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 4451}, alloc = 0, size = 0, data = 0x9406da, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 21}, alloc = 0, size = 0, data = 0x7fd7f27d5cfa, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x7ffffb1648b0, static codecForCStrings = 0x0}, 
    field=1)
    at /home/shoofi/src/straight/qgis-trunk/src/providers/grass/qgsgrassprovider.cpp:664
#14 0x00007fd7e1e7d8e6 in QgsGrassProvider (this=0x2c49340, uri=
      {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 4451}, alloc = 0, size = 0, data = 0x9406da, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 21}, alloc = 0, size = 0, data = 0x7fd7f27d5cfa, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x7ffffb164a40, static codecForCStrings = 0x0})
    at /home/shoofi/src/straight/qgis-trunk/src/providers/grass/qgsgrassprovider.cpp:166
#15 0x00007fd7dfbf0063 in classFactory (uri=0x2c1aab0)
    at /home/shoofi/src/straight/qgis-trunk/src/providers/grass/provider.cpp:46
#16 0x00007fd7f292584f in QgsProviderRegistry::getProvider (this=0x1fe4bf0, 
    providerKey=@0x2c1ab00, dataSource=@0x2c1aab0)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsproviderregistry.cpp:362
#17 0x00007fd7f294d13d in QgsVectorLayer::setDataProvider (this=0x2c1aa70, 
    provider=@0x2c1ab00)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsvectorlayer.cpp:2151
#18 0x00007fd7f294dfca in QgsVectorLayer::readXml (this=0x2c1aa70, 
    layer_node=@0x7ffffb165700)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsvectorlayer.cpp:2041
#19 0x00007fd7f29032de in QgsMapLayer::readXML (this=0x2c1aa70, 
    layer_node=@0x7ffffb165700)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsmaplayer.cpp:171
#20 0x00007fd7f2912d51 in _getMapLayers (doc=@0x1fe4410)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsproject.cpp:706
#21 0x00007fd7f29160d1 in QgsProject::read (this=0x1fd1510)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsproject.cpp:832
#22 0x00007fd7f2916561 in QgsProject::read (this=0x1fd1510, 
    file=@0x7ffffb165e00)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsproject.cpp:736
#23 0x00000000004e4a2f in QgisApp::addProject (this=0x1f9b310, projectFile=
      {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 4451}, alloc = 0, size = 0, data = 0x9406da, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 21}, alloc = 0, size = 0, data = 0x7fd7f27d5cfa, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved
 = 0, array = {0}}, d = 0x7ffffb166010, static codecForCStrings = 0x0})
    at /home/shoofi/src/straight/qgis-trunk/src/app/qgisapp.cpp:2893
#24 0x00000000004e5863 in QgisApp::openProject (this=0x1f9b310, 
    fileName=@0x9408b0)
    at /home/shoofi/src/straight/qgis-trunk/src/app/qgisapp.cpp:3159
#25 0x00000000004b4ce6 in main (argc=2, argv=0x7ffffb166a28)
    at /home/shoofi/src/straight/qgis-trunk/src/app/main.cpp:581

comment:4 by pcav, 15 years ago

Summary: random freezes when bulit with debugrandom freezes when built with debug

Still true? Can someone replicate the bug? Can it be a local problem?

comment:5 by lutra, 15 years ago

Is this still replicable?

comment:6 by lutra, 15 years ago

Resolution: worksforme
Status: newclosed

Closing the ticket because I cannot reproduce it and for lack of feedback, but please reopen it if necessary.

Note: See TracTickets for help on using tickets.