Ticket #550 (closed bug: fixed)
always crashes after pressing the right mouse button in GRASS Edit, with most tools
Description
1. add a GRASS vector
2. open it in GRASS Edit
3. select one of the tools:
Move vertex
Add vertex
Delete vertex
Move element
Split line
Delete element
3. press right mouse button on the canvas - segfault:
QgsGrassEdit::setCanvasPropmt
mProjectionEnabled = 0
error_routine (fatal = 1): Vect_read_line(): line '0' is not reasonable (max line in map: 1281)
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1242368320 (LWP 8392)]
0xb53cf0fe in V2_read_line_nat ()
from /usr/local/grass-6.3.cvs/lib/libgrass_vect.so
(gdb) bt
#0 0xb53cf0fe in V2_read_line_nat ()
from /usr/local/grass-6.3.cvs/lib/libgrass_vect.so
#1 0xb53cec12 in Vect_read_line ()
from /usr/local/grass-6.3.cvs/lib/libgrass_vect.so
#2 0xb4dc9e3b in QgsGrassProvider::readLine ()
from /usr/local/qgis08/lib/libqgisgrass.so.1
#3 0xb4e346da in QgsGrassEdit::displayElement ()
from /usr/local/qgis08/lib/qgis/grassplugin.so
#4 0xb4e4922a in QgsGrassEditMoveVertex::mouseClick ()
from /usr/local/qgis08/lib/qgis/grassplugin.so
#5 0xb4e47d82 in QgsGrassEditTool::canvasPressEvent ()
from /usr/local/qgis08/lib/qgis/grassplugin.so
#6 0xb6845d89 in QgsMapCanvas::contentsMousePressEvent ()
from /usr/local/qgis08/lib/libqgis_gui.so.1
#7 0xb7b29e0b in Q3ScrollView::viewportMousePressEvent (this=0x81d71e8,
e=0xbff3d98c) at widgets/q3scrollview.cpp:1721
#8 0xb7b2a7d9 in Q3ScrollView::eventFilter (this=0x81d71e8, obj=0x81e7b80,
e=0xbff3d98c) at widgets/q3scrollview.cpp:1471
#9 0xb73ec731 in QApplicationPrivate::notify_helper (this=0x80661a8,
receiver=0x81e7b80, e=0xbff3d98c) at kernel/qapplication.cpp:3426
#10 0xb73efecc in QApplication::notify (this=0xbff3e088, receiver=0x81e7b80,
e=0xbff3d98c) at kernel/qapplication.cpp:3133
#11 0xb7449bcf in QETWidget::translateMouseEvent (this=0x81e7b80,
event=0xbff3dc8c) at qcoreapplication.h:186
#12 0xb74494c2 in QApplication::x11ProcessEvent (this=0xbff3e088,
event=0xbff3dc8c) at kernel/qapplication_x11.cpp:2764
#13 0xb746ce72 in x11EventSourceDispatch (s=0x8086450, callback=0,
user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:122
#14 0xb64458d6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#15 0xb6448996 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#16 0xb6448e1e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#17 0xb7ddd4ba in QEventDispatcherGlib::processEvents (this=0x8084b90,
flags=@0xbff3de98) at kernel/qeventdispatcher_glib.cpp:363
#18 0xb746cb9b in QGuiEventDispatcherGlib::processEvents (this=0x8084b90,
flags=@0x8500e1a) at kernel/qguieventdispatcher_glib.cpp:178
#19 0xb7db80bd in QEventLoop::processEvents (this=0x8518668, flags=@0x8518668)
at kernel/qeventloop.cpp:126
#20 0xb7db8238 in QEventLoop::exec (this=0xbff3df40, flags=@0xbff3df48)
at kernel/qeventloop.cpp:172
#21 0xb7dbaadd in QCoreApplication::exec () at kernel/qcoreapplication.cpp:727
#22 0xb73ec269 in QApplication::exec () at kernel/qapplication.cpp:2927
#23 0x0804bf2f in main ()
BTW: I suggest that the right mouse button always de-selects the active tool. Currently, when "New point" or "New controid" tool is used, right-click acts same as the left-click (digitises a new feature). Also, when the GRASS Edit starts, no tool should be active - currently "New point" is always active at a start.
Maciek
Change History
Note: See
TracTickets for help on using
tickets.