Bug report #1420

random freezes when built with debug

Added by Maciej Sieczka - almost 16 years ago. Updated over 15 years ago.

Status:Closed
Priority:Low
Assignee:nobody -
Category:GUI
Affected QGIS version: Regression?:No
Operating System:Linux Easy fix?:No
Pull Request or Patch supplied: Resolution:worksforme
Crashes QGIS or corrupts data: Copied to github as #:11480

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.

History

#1 Updated by Jürgen Fischer almost 16 years ago

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

#2 Updated by Maciej Sieczka - almost 16 years ago

Replying to [comment:1 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
#3905  0x00007fdce99c190a in _IO_file_write () from /lib/libc.so.6
#3906  0x00007fdce99c156a in ?? () from /lib/libc.so.6
#3907  0x00007fdce99c184e in _IO_file_xsputn () from /lib/libc.so.6
#3908  0x00007fdce999ac0a in ?? () from /lib/libc.so.6
#3909  0x00007fdce9996436 in vfprintf () from /lib/libc.so.6
#3910  0x00007fdce999fc08 in fprintf () from /lib/libc.so.6
#3911  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
#3912  0x00007fdcecf4e543 in qt_message_output () from /usr/lib/libQtCore.so.4
#3913  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
#3914 0x00007fdced45b183 in [[QgsMapRenderer]]::adjustExtentToSize (this=0x1e3fbb0)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsmaprenderer.cpp:193
#3915 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
#3916 0x00007fdced859228 in [[QgsMapCanvasMap]]::resize (this=0x1d92890, size=
      {wd = 1024, ht = 616})
    at /home/shoofi/src/straight/qgis-trunk/src/gui/qgsmapcanvasmap.cpp:52
#3917 0x00007fdced854a69 in [[QgsMapCanvas]]::resizeEvent (this=0x1ebe1c0, 
    e=0x7ffff5cb3540)
    at /home/shoofi/src/straight/qgis-trunk/src/gui/qgsmapcanvas.cpp:815
#3918 0x00007fdcec5b4f58 in QWidget::event () from /usr/lib/libQtGui.so.4
#3919 0x00007fdcecab117b in QGraphicsView::viewportEvent ()
   from /usr/lib/libQtGui.so.4
#3920 0x00007fdced03d658 in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib/libQtCore.so.4
#3921 0x00007fdcec562a2c in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#3922 0x00007fdcec56a7da in QApplication::notify () from /usr/lib/libQtGui.so.4
#3923 0x00007fdced40e62e in [[QgsApplication]]::notify (this=0x7ffff5cb4ef0, 
    receiver=0x1e04fd0, event=0x7ffff5cb3540)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsapplication.cpp:78
#3924 0x00007fdced03e381 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#3925 0x00007fdcec5eba64 in QWidgetPrivate::setGeometry_sys ()
   from /usr/lib/libQtGui.so.4
#3926 0x00007fdcec5b0157 in QWidget::setGeometry () from /usr/lib/libQtGui.so.4
#3927 0x00007fdcec93b064 in ?? () from /usr/lib/libQtGui.so.4
#3928 0x00007fdcec93b616 in QAbstractScrollArea::event ()
   from /usr/lib/libQtGui.so.4
#3929 0x00007fdcec562a5d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#3930 0x00007fdcec56a7da in QApplication::notify () from /usr/lib/libQtGui.so.4
#3931 0x00007fdced40e62e in [[QgsApplication]]::notify (this=0x7ffff5cb4ef0, 
    receiver=0x1ebe1c0, event=0x7ffff5cb3ec0)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsapplication.cpp:78
#3932 0x00007fdced03e381 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#3933 0x00007fdcec5eba64 in QWidgetPrivate::setGeometry_sys ()
   from /usr/lib/libQtGui.so.4
#3934 0x00007fdcec5b0157 in QWidget::setGeometry () from /usr/lib/libQtGui.so.4
#3935 0x00007fdcec94fd24 in ?? () from /usr/lib/libQtGui.so.4
#3936 0x00007fdcecaecf38 in ?? () from /usr/lib/libQtGui.so.4
#3937 0x00007fdced0526d4 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#3938 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

#3 Updated by Maciej Sieczka - almost 16 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
#3905  0x00007fd7eee7290a in _IO_file_write () from /lib/libc.so.6
#3906  0x00007fd7eee7256a in ?? () from /lib/libc.so.6
#3907  0x00007fd7eee7284e in _IO_file_xsputn () from /lib/libc.so.6
#3908  0x00007fd7eee4bc0a in ?? () from /lib/libc.so.6
#3909  0x00007fd7eee47436 in vfprintf () from /lib/libc.so.6
#3910  0x00007fd7eee50c08 in fprintf () from /lib/libc.so.6
#3911  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
#3912  0x00007fd7f23ff543 in qt_message_output () from /usr/lib/libQtCore.so.4
#3913  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
#3914 0x00007fd7e1e74f02 in [[QgsGrassProvider]]::loadAttributes (
    layer=@0x7ffffb1642a0)
    at /home/shoofi/src/straight/qgis-trunk/src/providers/grass/qgsgrassprovider.cpp:717
#3915 0x00007fd7e1e772ca in [[QgsGrassProvider]]::loadLayerSourcesFromMap (
    layer=@0x7ffffb1642a0)
    at /home/shoofi/src/straight/qgis-trunk/src/providers/grass/qgsgrassprovider.cpp:695
#3916 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
#3917 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
#3918 0x00007fd7dfbf0063 in classFactory (uri=0x2c1aab0)
    at /home/shoofi/src/straight/qgis-trunk/src/providers/grass/provider.cpp:46
#3919 0x00007fd7f292584f in [[QgsProviderRegistry]]::getProvider (this=0x1fe4bf0, 
    providerKey=@0x2c1ab00, dataSource=@0x2c1aab0)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsproviderregistry.cpp:362
#3920 0x00007fd7f294d13d in [[QgsVectorLayer]]::setDataProvider (this=0x2c1aa70, 
    provider=@0x2c1ab00)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsvectorlayer.cpp:2151
#3921 0x00007fd7f294dfca in [[QgsVectorLayer]]::readXml (this=0x2c1aa70, 
    layer_node=@0x7ffffb165700)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsvectorlayer.cpp:2041
#3922 0x00007fd7f29032de in [[QgsMapLayer]]::readXML (this=0x2c1aa70, 
    layer_node=@0x7ffffb165700)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsmaplayer.cpp:171
#3923 0x00007fd7f2912d51 in _getMapLayers (doc=@0x1fe4410)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsproject.cpp:706
#3924 0x00007fd7f29160d1 in [[QgsProject]]::read (this=0x1fd1510)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsproject.cpp:832
#3925 0x00007fd7f2916561 in [[QgsProject]]::read (this=0x1fd1510, 
    file=@0x7ffffb165e00)
    at /home/shoofi/src/straight/qgis-trunk/src/core/qgsproject.cpp:736
#3926 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
#3927 0x00000000004e5863 in [[QgisApp]]::openProject (this=0x1f9b310, 
    fileName=@0x9408b0)
    at /home/shoofi/src/straight/qgis-trunk/src/app/qgisapp.cpp:3159
#3928 0x00000000004b4ce6 in main (argc=2, argv=0x7ffffb166a28)
    at /home/shoofi/src/straight/qgis-trunk/src/app/main.cpp:581

#4 Updated by Paolo Cavallini over 15 years ago

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

#5 Updated by Giovanni Manghi over 15 years ago

Is this still replicable?

#6 Updated by Giovanni Manghi over 15 years ago

  • Resolution set to worksforme
  • Status changed from Open to Closed

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

Also available in: Atom PDF