<div dir="ltr"><div><div><div>Hi Radim,<br><br>I'm getting a Segmentation fault (core dumped): <br><br>[Thread 0x8b6c3b40 (LWP 8667) exited]<br>[Thread 0x6c2ffb40 (LWP 8668) exited]<br><br>Program received signal SIGSEGV, Segmentation fault.<br>0x92c2b869 in Vect_cidx_get_cat_by_index ()<br>   from /usr/lib/grass70/lib/libgrass_vector.so<br>(gdb) bt<br>#0  0x92c2b869 in Vect_cidx_get_cat_by_index ()<br>   from /usr/lib/grass70/lib/libgrass_vector.so<br>#1  0x92d38357 in QgsGrassVectorMapLayer::insertCats (this=0x14639448, <br>    error=...)<br>    at /home/pedro/qgis/QGIS-master/src/providers/grass/qgsgrassvectormaplayer.cpp:796<br>#2  0x92d36265 in QgsGrassVectorMapLayer::createTable (this=0x14639448, fields=<br>    ..., error=...)<br>    at /home/pedro/qgis/QGIS-master/src/providers/grass/qgsgrassvectormaplayer.cpp:646<br>#3  0x92d367f8 in QgsGrassVectorMapLayer::addColumn (this=0x14639448, <br>    field=..., error=...)<br>    at /home/pedro/qgis/QGIS-master/src/providers/grass/qgsgrassvectormaplayer.cpp:666<br>#4  0x92d221aa in QgsGrassProvider::onAttributeAdded (this=0x11448cb0, idx=2)<br>    at /home/pedro/qgis/QGIS-master/src/providers/grass/qgsgrassprovider.cpp:1725<br>#5  0x92d3e5c3 in QgsGrassProvider::qt_static_metacall (_o=0x11448cb0, <br>    _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbfdf2118)<br>    at /home/pedro/qgis/QGIS-master/build-master/src/providers/grass/7/__/moc_qgsgrassprovider.cxx:72<br>#6  0xb60d50f7 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/i386-linux-gnu/libQtCore.so.4<br>---Type <return> to continue, or q <return> to quit---<br>#7  0xb6ee1fb0 in QgsVectorLayerEditBuffer::attributeAdded (this=0xc5df620, <br>    _t1=2)<br>    at /home/pedro/qgis/QGIS-master/build-master/src/core/moc_qgsvectorlayereditbuffer.cxx:177<br>#8  0xb6d58dbd in QgsVectorLayerUndoCommandAddAttribute::redo (this=0xcfc1480)<br>    at /home/pedro/qgis/QGIS-master/src/core/qgsvectorlayerundocommand.cpp:339<br>#9  0xb5caeed5 in QUndoStack::push(QUndoCommand*) ()<br>   from /usr/lib/i386-linux-gnu/libQtGui.so.4<br>#10 0xb6d3cf70 in QgsVectorLayerEditBuffer::addAttribute (this=0xc5df620, <br>    field=...)<br>    at /home/pedro/qgis/QGIS-master/src/core/qgsvectorlayereditbuffer.cpp:227<br>#11 0xb6d27476 in QgsVectorLayer::addAttribute (this=0xad72720, field=...)<br>    at /home/pedro/qgis/QGIS-master/src/core/qgsvectorlayer.cpp:2181<br>#12 0xb726aae1 in QgsAttributeTableDialog::on_mAddAttribute_clicked (<br>    this=0x14956a48)<br>    at /home/pedro/qgis/QGIS-master/src/app/qgsattributetabledialog.cpp:689<br>#13 0xb7599a0f in QgsAttributeTableDialog::qt_static_metacall (_o=0x14956a48, <br>    _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0xbfdf2458)<br>    at /home/pedro/qgis/QGIS-master/build-master/src/app/moc_qgsattributetabledialog.cxx:131<br>#14 0xb7599d86 in QgsAttributeTableDialog::qt_metacall (this=0x14956a48, <br>    _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0xbfdf2458)<br>    at /home/pedro/qgis/QGIS-master/build-master/src/app/moc_qgsattributetabledi---Type <return> to continue, or q <return> to quit---<br>alog.cxx:194<br>#15 0xb60c6e85 in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/i386-linux-gnu/libQtCore.so.4<br>#16 0xb60d540d in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/i386-linux-gnu/libQtCore.so.4<br>#17 0xb5cc926d in QAbstractButton::clicked(bool) ()<br>   from /usr/lib/i386-linux-gnu/libQtGui.so.4<br>#18 0xb59e3c21 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4<br>#19 0xb59e4fa7 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4<br>#20 0xb59e50ae in QAbstractButton::mouseReleaseEvent(QMouseEvent*) ()<br>   from /usr/lib/i386-linux-gnu/libQtGui.so.4<br>#21 0xb5ab6977 in QToolButton::mouseReleaseEvent(QMouseEvent*) ()<br>   from /usr/lib/i386-linux-gnu/libQtGui.so.4<br>#22 0xb562640a in QWidget::event(QEvent*) ()<br>   from /usr/lib/i386-linux-gnu/libQtGui.so.4<br>#23 0xb59e60b2 in QAbstractButton::event(QEvent*) ()<br>   from /usr/lib/i386-linux-gnu/libQtGui.so.4<br>#24 0xb5ab6a64 in QToolButton::event(QEvent*) ()<br>   from /usr/lib/i386-linux-gnu/libQtGui.so.4<br>#25 0xb55cc7f4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()<br>   from /usr/lib/i386-linux-gnu/libQtGui.so.4<br>#26 0xb55d4ea0 in QApplication::notify(QObject*, QEvent*) ()<br>   from /usr/lib/i386-linux-gnu/libQtGui.so.4<br>---Type <return> to continue, or q <return> to quit---<br>#27 0xb6b051c7 in QgsApplication::notify (this=0xbfdf3104, receiver=0xa901438, <br>    event=0xbfdf2954)<br>    at /home/pedro/qgis/QGIS-master/src/core/qgsapplication.cpp:265<br>#28 0xb60bfe4a in QCoreApplication::notifyInternal(QObject*, QEvent*) ()<br>   from /usr/lib/i386-linux-gnu/libQtCore.so.4<br>#29 0xb55d2b53 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) ()<br>   from /usr/lib/i386-linux-gnu/libQtGui.so.4<br>#30 0xb56567a8 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4<br>#31 0xb5655ef5 in QApplication::x11ProcessEvent(_XEvent*) ()<br>   from /usr/lib/i386-linux-gnu/libQtGui.so.4<br>#32 0xb5681554 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4<br>#33 0xb14d11e3 in g_main_context_dispatch ()<br>   from /lib/i386-linux-gnu/libglib-2.0.so.0<br>#34 0xb14d1468 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0<br>#35 0xb14d1528 in g_main_context_iteration ()<br>   from /lib/i386-linux-gnu/libglib-2.0.so.0<br>#36 0xb60ef93b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4<br>#37 0xb568160e in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4<br>#38 0xb60be823 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4<br>#39 0xb60beb49 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()<br>---Type <return> to continue, or q <return> to quit---<br>   from /usr/lib/i386-linux-gnu/libQtCore.so.4<br>#40 0xb60c48fe in QCoreApplication::exec() ()<br>   from /usr/lib/i386-linux-gnu/libQtCore.so.4<br>#41 0xb55caa24 in QApplication::exec() ()<br>   from /usr/lib/i386-linux-gnu/libQtGui.so.4<br>#42 0x08050705 in main (argc=1, argv=0xbfdf3384)<br>    at /home/pedro/qgis/QGIS-master/src/app/main.cpp:1229<br>(gdb) <br>(gdb) continue <br>Continuando.<br>[Thread 0x8d2eeb40 (LWP 8596) exited]<br>[Thread 0x69c04b40 (LWP 8663) exited]<br><br>Program terminated with signal SIGSEGV, Segmentation fault.<br>The program no longer exists.<br>(gdb)<br><br>To reproduce:<br><br>1. Open mapset;<br>2. New Point Layer or New Line Layer (I don't get crash with polygon layers);<br>3. Digitize some features;<br>4. Save edits;<br>5. Open attribute table;<br>6. New column;<br>7. Add a name;<br>8. Ok. I get the crash and seg fault here. Just with point and line layers.<br><br><br><br></div>I also found that saving edits with "Save edits" button in the attribute tabel takes no effect. With other layers (not GRASS layers), it works well.<br><br></div><div>I'm using QGIS master compiled after this commit <a href="https://github.com/qgis/QGIS/commit/e703fc6044e3119c3b59fe9648f7dcf7edc2b714">https://github.com/qgis/QGIS/commit/e703fc6044e3119c3b59fe9648f7dcf7edc2b714</a> <br><br></div><div><br></div>Best regards!<br></div>Pedro<br><br><br><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-08 21:47 GMT+01:00 Blumentrath, Stefan <span dir="ltr"><<a href="mailto:Stefan.Blumentrath@nina.no" target="_blank">Stefan.Blumentrath@nina.no</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">>> Testing on windows<br>
>>>> GRASS LOCATION is "duplicated" displayed as a regular file system<br>
>>>> folder and as GRASS LOCATION with the GRASS icon<br>
>>> That is correct, the regular directory is left there so that is it<br>
>>> possible to go for example to dbf directory and load dbf files as<br>
>>> standard QGIS layers.<br>
>><br>
>> IMHO: i find it's confusing, and GRASS 7 default database is SQLite, i<br>
>> think it could be smoother to expose only GRASS Locations and Mapset<br>
>> being evident that we're dealing with a GRASS Database, but i can live<br>
>> with that :-)<br>
><br>
>You are not the first who is confused. Fix would be easy, so I remove regular dir if it is recognized as GRASS location?<br>
<br>
</span>Indeed having the whole folder browseable might be confusing and users are not supposed to move files around in there anyway.<br>
Yet, having the SQLite DB (or dbfs) of a mapset (if existing) available in the browser would be nice. That way also related / non-spatial tables in there could be easily added to QGIS. Probably even better if a context menu entry would allow to add the DB to "DB manager", so one can actually run queries without using db.execute or v.db.update...  But that`s for the future...<br>
<br>
Regarding the tools-widget UI, I noticed that the "Close Mapset" butten takes space from the module tabs. The old "Close mapset" button was much smaller. Would it be possible to move that to the bottom of the GRASS module UI, where the Debug buttons are located (if debugging is activated)?<br>
BTW, the tabs for the open modules can get pretty wide due to the icons (see e.g. v.db.join). Maybe better to use module names in the tabs?<br>
<br>
Finally, I was wondering if it could be an idea to place all mapset related buttons (open / close / new / change mapset) at the bottom of the Modules dialogue and to add a "manage mapset access" button, which runs the mapset picker for modifying the search path (g.mapsets -s) there as well? One (I if you like) can add g.mapsets with the s-flag as a module (I tested "g.mapsets -s" in the QGIS-GRASS-plugin and it starts the GRASS dialogue successfully), but it is probably better to have this option a bit more prominent (as it might come in handy with the new multiple map input option)?<br>
<br>
Anyway, great work you did and do with the plugin upgrade!<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888">Stefan<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div></div></blockquote></div><br></div>