Opened 18 years ago

Closed 18 years ago

Last modified 15 years ago

#253 closed defect (fixed)

crash when using the *Identify Features* tool

Reported by: venturato@… Owned by: gsherman
Priority: major: does not work as expected Milestone:
Component: GUI Version: 0.8
Keywords: Cc:
Must Fix for Release: No Platform: Debian
Platform Version: etch Awaiting user input: no

Description

At the second identification of a feature (postgis layers in our case), qgis regularly segfaults. r5742

Change History (6)

comment:1 by g_j_m, 18 years ago

Can you provide a gdb backtrace please.

comment:2 by venturato@…, 18 years ago

I hope it could help: (gdb) bt #0 0xa75e5dc0 in QWidget::raise () from /usr/lib/libQtGui.so.4 #1 0xa6b34a6a in QgsMapToolIdentify::identifyVectorLayer () from /usr/lib/libqgis_gui.so.0 #2 0xa6b36952 in QgsMapToolIdentify::canvasReleaseEvent () from /usr/lib/libqgis_gui.so.0 #3 0xa6b15c39 in QgsMapCanvas::contentsMouseReleaseEvent () from /usr/lib/libqgis_gui.so.0 #4 0xa7b5dd1e in Q3ScrollView::viewportMouseReleaseEvent () from /usr/lib/libQt3Support.so.4 #5 0xa7b5ecdf in Q3ScrollView::eventFilter () from /usr/lib/libQt3Support.so.4 #6 0xa75ac683 in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4 #7 0xa75adb0d in QApplication::notify () from /usr/lib/libQtGui.so.4 #8 0xa76019b2 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4 #9 0xa76006aa in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4 #10 0xa7611c43 in non-virtual thunk to QDesktopWidget::~QDesktopWidget() () from /usr/lib/libQtGui.so.4 #11 0xa7dbd004 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4 #12 0xa7dbd1da in QEventLoop::exec () from /usr/lib/libQtCore.so.4 #13 0xa7dc0564 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4 #14 0xa75ac347 in QApplication::exec () from /usr/lib/libQtGui.so.4 #15 0x0804c994 in main ()

comment:3 by g_j_m, 18 years ago

Are you able to do some more debugging to find out where in the QgsMapToolIdentify::identifyVectorLayer function the crash is happening?

A simple technique is to put the line:

std::cerr<<__FILE__<<__LINE__<<'\n';

throughout the src/gui/qgsmaptoolidentify.cc file, recompile (make install in the gui directory will be sufficient), run qgis, cause the crash, and see what line number it got up to, and then keep adding those lines until you've found the line of code that is causing the crash.

comment:4 by horst.duester@…, 18 years ago

My QGIS has the same behavior only when I close the "Identify Features" window with the x Button at the UR window corner. When I close the window with the "close" button all works fine.

comment:5 by g_j_m, 18 years ago

Resolution: fixed
Status: newclosed

Fixed in SVN r5758. All it took was that last clue...

comment:6 by (none), 15 years ago

Milestone: Version 0.8

Milestone Version 0.8 deleted

Note: See TracTickets for help on using tickets.