<div dir="ltr"><div>I think we should really implement #2579 [1] in one way or the other. This would make custom setups [2] not necessary for most cases. What do you think? What should be the command line parameters?<br><br></div>Vaclav<br><div><br>[1] <a href="http://trac.osgeo.org/grass/ticket/2579">http://trac.osgeo.org/grass/ticket/2579</a><br>[2] <a href="http://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly">http://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly</a><br><br>On Wed, Feb 18, 2015 at 1:26 PM, G. Allegri <<a href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>> wrote:<br>><br>> Hi Markus,<br>> I wrote the details in another recent email and I forgot to write the here, sorry.<br>> GRASS 7.0.0 RC1 on Ubuntu 14.04.<br>> I'm creating a temporary database with an empty start location, with no CRS defined (proj code 0, i.e. XY).<br>> My location contains only the the WIND and DEFAULT_WIND files with the following content:<br>><br>> proj:       0<br>> zone:       0<br>> north:      1<br>> south:      0<br>> east:       1<br>> west:       0<br>> cols:       1<br>> rows:       1<br>> e-w resol:  1<br>> n-s resol:  1<br>> top:        1<br>> bottom:     0<br>> cols3:      1<br>> rows3:      1<br>> depths:     1<br>> e-w resol3: 1<br>> n-s resol3: 1<br>> t-b resol:  1<br>><br>> The env variables I'm using are:<br>><br>> export PYTHONPATH='/usr/lib/grass70/etc/python'<br>> export GISRC='/tmp/tmp9YVf_N/gisrc'<br>> export GRASS_VERSION='7.0.0'<br>> export PATH='/usr/lib/grass70/bin:/usr/lib/grass70/scripts:/home/giova/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'<br>> export GIS_LOCK=$<br>> export LD_LIBRARY_PATH='/usr/lib/grass70/lib'<br>> export GISBASE='/usr/lib/grass70'<br>><br>> Whatevere shapefile I try to import I obtain a segfault.<br>> This is the test command: <br>><br>> :/ v.in.ogr dsn="/mnt/data/centroids.shp" output=centroids location=workLocation -ie<br>><br>> If I add the VAR file with:<br>><br>> DB_DRIVER: sqlite<br>> DB_DATABASE: $GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db<br>><br>> eveythign works fine.<br>> giovanni<br>><br>> 2015-02-18 18:08 GMT+01:00 Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>>:<br>>><br>>> On Wed, Feb 18, 2015 at 3:24 PM, G. Allegri <<a href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>> wrote:<br>>> > I'm getting segmentation faults in case I run a command on a location<br>>> > missing the VAR file.<br>>><br>>> On which OS, which GRASS version?<br>>><br>>> > I thought it was optional, as it's said here:<br>>> > <a href="http://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#GRASS_databases">http://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#GRASS_databases</a><br>>><br>>> Please post a reproducible example, thanks.<br>>><br>>> Markus<br><br><br></div></div>