[QGIS-trac] [Quantum GIS] #1241: SPIT crashes

Quantum GIS qgis at qgis.org
Fri Aug 22 11:04:57 EDT 2008


#1241: SPIT crashes
---------------------------------------------------------+------------------
   Reporter:  msieczka                                   |              Owner:  nobody       
       Type:  bug                                        |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 1.0.0
  Component:  SPIT                                       |            Version:  HEAD         
   Keywords:                                             |   Platform_version:               
   Platform:  Debian                                     |           Must_fix:  Yes          
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 After the recent changes to Postgres stuff QGIS (r9120) crashes when using
 SPIT. The crash seems to originate in '/usr/lib/libQtCore.so.4'. Can QGIS
 do anything about it or is it all due to some QT bug?

 PostgreSQL 8.2.7, PostGIS 1.3.3, QT 4.4.0 (all stock repository packages)
 on Debian testing amd64.

 Sample shapefile attached.

 1. start SPIT

 2. connect to database

 3. select public schema

 4. select shapefile

 5. OK - crash:

 {{{
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 0x7f32afb7a7a0 (LWP 13164)]
 0x00007f32aeff852c in ?? () from /usr/lib/libQtCore.so.4
 (gdb) bt
 #0  0x00007f32aeff852c in ?? () from /usr/lib/libQtCore.so.4
 #1  0x00007f32aeff892d in QString::arg () from /usr/lib/libQtCore.so.4
 #2  0x00007f329b0bbeeb in QgsShapeFile::insertLayer (this=0x1fe99d0,
 dbname=
       {static null = {<No data fields>}, static shared_null = {ref =
 {_q_value = 2628}, alloc = 0, size = 0, data = 0x9537ba, clean = 0,
 simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved =
 0, array = {0}}, static shared_empty = {ref = {_q_value = 53}, alloc = 0,
 size = 0, data = 0x7f32af38685a, clean = 0, simpletext = 0, righttoleft =
 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d =
 0x7fffb7cb3e80, static codecForCStrings = 0x0}, schema=
       {static null = {<No data fields>}, static shared_null = {ref =
 {_q_value = 2628}, alloc = 0, size = 0, data = 0x9537ba, clean = 0,
 simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved =
 0, array = {0}}, static shared_empty = {ref = {_q_value = 53}, alloc = 0,
 size = 0, data = 0x7f32af38685a, clean = 0, simpletext = 0, righttoleft =
 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d =
 0x7fffb7cb3e70, static codecForCStrings = 0x0}, primary_key=
       {static null = {<No data fields>}, static shared_null = {ref =
 {_q_value = 2628}, alloc = 0, size = 0, data = 0x9537ba, clean = 0,
 simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved =
 0, array = {0}}, static shared_empty = {ref = {_q_value = 53}, alloc = 0,
 size = 0, data = 0x7f32af38685a, clean = 0, simpletext = 0, righttoleft =
 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d =
 0x7fffb7cb3e60, static codecForCStrings = 0x0}, geom_col=
       {static null = {<No data fields>}, static shared_null = {ref =
 {_q_value = 2628}, alloc = 0, size = 0, data = 0x9537ba, clean = 0,
 simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved =
 0, array = {0}}, static shared_empty = {ref = {_q_value = 53}, alloc = 0,
 size = 0, data = 0x7f32af38685a, clean = 0, simpletext = 0, righttoleft =
 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d =
 0x7fffb7cb3e50, static codecForCStrings = 0x0}, srid=
       {static null = {<No data fields>}, static shared_null = {ref =
 {_q_value = 2628}, alloc = 0, size = 0, data = 0x9537ba, clean = 0,
 simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved =
 0, array = {0}}, static shared_empty = {ref = {_q_value = 53}, alloc = 0,
 size = 0, data = 0x7f32af38685a, clean = 0, simpletext = 0, righttoleft =
 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d =
 0x7fffb7cb3e40, static codecForCStrings = 0x0}, conn=0x1ed43b0,
 pro=@0x7fffb7cb2ef0, fin=@0x7fffb7cb306f,
     errorText=@0x7fffb7cb2fd0) at /home/shoofi/src/straight/qgis-
 trunk/src/plugins/spit/qgsshapefile.cpp:283
 #3  0x00007f329b0a59a6 in QgsSpit::import (this=0x1e8bca0) at
 /home/shoofi/src/straight/qgis-trunk/src/plugins/spit/qgsspit.cpp:771
 #4  0x00007f329b0c2f49 in QgsSpit::on_buttonBox_accepted (this=0x1e8bca0)
 at /home/shoofi/src/straight/qgis-
 trunk/build/src/plugins/spit/../../../../src/plugins/spit/qgsspit.h:84
 #5  0x00007f329b0c2caf in QgsSpit::qt_metacall (this=0x1e8bca0,
 _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7fffb7cb4220)
     at /home/shoofi/src/straight/qgis-
 trunk/build/src/plugins/spit/moc_qgsspit.cxx:90
 #6  0x00007f32af0b3764 in QMetaObject::activate () from
 /usr/lib/libQtCore.so.4
 #7  0x00007f32ae902221 in QDialogButtonBox::qt_metacall () from
 /usr/lib/libQtGui.so.4
 #8  0x00007f32af0b3764 in QMetaObject::activate () from
 /usr/lib/libQtCore.so.4
 #9  0x00007f32aeb4c6e7 in QAbstractButton::clicked () from
 /usr/lib/libQtGui.so.4
 #10 0x00007f32ae8d253b in ?? () from /usr/lib/libQtGui.so.4
 #11 0x00007f32ae8d4082 in ?? () from /usr/lib/libQtGui.so.4
 #12 0x00007f32ae8d42d5 in QAbstractButton::mouseReleaseEvent () from
 /usr/lib/libQtGui.so.4
 #13 0x00007f32ae6203af in QWidget::event () from /usr/lib/libQtGui.so.4
 #14 0x00007f32ae5cde5d in QApplicationPrivate::notify_helper () from
 /usr/lib/libQtGui.so.4
 #15 0x00007f32ae5d639a in QApplication::notify () from
 /usr/lib/libQtGui.so.4
 #16 0x00007f32af09f411 in QCoreApplication::notifyInternal () from
 /usr/lib/libQtCore.so.4
 #17 0x00007f32ae5d5738 in QApplicationPrivate::sendMouseEvent () from
 /usr/lib/libQtGui.so.4
 #18 0x00007f32ae639719 in ?? () from /usr/lib/libQtGui.so.4
 #19 0x00007f32ae6385ef in QApplication::x11ProcessEvent () from
 /usr/lib/libQtGui.so.4
 #20 0x00007f32ae65f9cc in ?? () from /usr/lib/libQtGui.so.4
 #21 0x00007f32ab168892 in g_main_context_dispatch () from
 /usr/lib/libglib-2.0.so.0
 #22 0x00007f32ab16c01d in ?? () from /usr/lib/libglib-2.0.so.0
 #23 0x00007f32ab16c1db in g_main_context_iteration () from
 /usr/lib/libglib-2.0.so.0
 #24 0x00007f32af0c783f in QEventDispatcherGlib::processEvents () from
 /usr/lib/libQtCore.so.4
 #25 0x00007f32ae65f16f in ?? () from /usr/lib/libQtGui.so.4
 #26 0x00007f32af09dd22 in QEventLoop::processEvents () from
 /usr/lib/libQtCore.so.4
 #27 0x00007f32af09dead in QEventLoop::exec () from /usr/lib/libQtCore.so.4
 #28 0x00007f32af0a037d in QCoreApplication::exec () from
 /usr/lib/libQtCore.so.4
 #29 0x00000000004bc63a in main (argc=1, argv=0x7fffb7cb6108) at
 /home/shoofi/src/straight/qgis-trunk/src/app/main.cpp:684
 (gdb)
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1241>
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