#550 closed bug (fixed)
always crashes after pressing the right mouse button in GRASS Edit, with most tools
Reported by: | Owned by: | rblazek | |
---|---|---|---|
Priority: | critical: causes crash or data corruption | Milestone: | |
Component: | GRASS | Version: | 0.8.1 |
Keywords: | Cc: | ||
Must Fix for Release: | Yes | Platform: | Debian |
Platform Version: | Ubuntu Dapper | Awaiting user input: | no |
Description
- add a GRASS vector
- open it in GRASS Edit
- select one of the tools:
Move vertex
Add vertex
Delete vertex
Move element
Split line
Delete element
- 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 (9)
comment:1 by , 17 years ago
Owner: | changed from | to
---|
comment:2 by , 17 years ago
comment:3 by , 17 years ago
Version: | 0.8.1 → 0.8 |
---|
comment:4 by , 17 years ago
Milestone: | Version 0.8.1 → Version 0.8.2 |
---|
Moved to milestone 0.8.2 since we wont be fixing any further issues before the 0.8.1 release
follow-up: 6 comment:5 by , 17 years ago
Awaiting user input: | unset |
---|
I can't reproduce it with 0.8.1 (latest svn Release_0_8_0 branch). Right button does nothing. No crash, no error message.
comment:6 by , 17 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Replying to lubaby:
I can't reproduce it with 0.8.1 (latest svn Release_0_8_0 branch). Right button does nothing. No crash, no error message.
I confirm. The crash is gone. I'll close the ticket. If the problem returns I'll re-open it. Thanks for the heads-up!
However the defect that right click digitizes point or centroid is still valid. I'll submit it in a separate ticket.
comment:7 by , 16 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
Version: | 0.8 → 0.8.1 |
The bug is back. No segfault, but QGIS 0.8.2 svn 7045 crashes when I do the following:
- add the any GRASS vector (eg. "archsites" from spearfish60 dataset [1])
- open it in GRASS Edit
- select one of the tools:
Move vertex Add vertex Delete vertex Move element Split line Delete element
- press right mouse button on the canvas - crash, no segfault:
$ gdb /usr/local/qgis08/bin/qgis (gdb) run Starting program: /usr/local/qgis08/bin/qgis (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1259514176 (LWP 30022)] warning: Lowest section in /usr/lib/libicudata.so.34 is .hash at 00000094 [New Thread -1262711888 (LWP 30221)] [New Thread -1271501904 (LWP 30224)] [Thread -1271501904 (LWP 30224) exited] [New Thread -1279894608 (LWP 30225)] [Thread -1279894608 (LWP 30225) exited] QgsGrass::vectors() Warning: QgsSpatialRefSys::createFromSrsId failed : select srs_id,description,projection_acronym,ellipsoid_acronym,parameters,srid,epsg,is_geo from tbl_srs where srs_id='0' Warning: QPainter::begin: Painter already active Warning: QPainter::begin: Painter already active mProjectionEnabled = 0 QgsGrassEdit::setCanvasPropmt mProjectionEnabled = 0 QgsGrassEdit::setCanvasPropmt mProjectionEnabled = 0 error_routine (fatal = 1): Vect_read_line(): line '0' is not reasonable (max line in map: 25) Program exited with code 01.
comment:8 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Fixed in r7343, also with usability suggestions.
P.S.
Using 0.8 SVN 6453.