Fri, Mar 17 2006
14:38:15
|
|
Request created by guest
|
|
Subject: v.in.db from MySQL database creates Segmentation Fault
Platform: GNU/Linux/x86
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: GRASS 6.1.cvs (2006) , 13/03/2006
Rainer M Krug
v.in.db driver=mysql database="host=ecolmod-mysql,dbname=renpatch_renosterbos"
table=def_renosterbos x=X y=Y z=RX key="_ID" where="(_RUN = 5) AND (_YEAR=99)"
output="def_renoster"
If I change key="_ID" to key="ID", the same error comes, even if the column name
in the table is NOT changed.
if the tablename is changed to a non existing one, it ends expectadly with:
DBMI-MySQL driver error:
++++++++++
Cannot select data:
select _ID, X, Y, RX from def_renoster WHERE (_RUN = 5) AND (_YEAR=99)
Table 'renpatch_renosterbos.def_renoster' doesn't exist
ERROR: Cannot open select cursor: 'select _ID, X, Y, RX from def_renoster
WHERE (_RUN = 5) AND (_YEAR=99)'
++++++++++
The table exists and I can execute the SQL statment from GRASS without problems.
|
|
Tue, May 23 2006
00:08:14
|
|
Mail sent by mneteler
|
|
Hi,
I have fixed two bugs in v.in.db today (table name check and
overwrite check) but I dunno if it applies.
Could you please try again with a current version and
report?
thanks
Markus |
|
Tue, May 23 2006
11:26:38
|
|
Mail sent by rkrug@sun.ac.za
|
|
Return-Path |
<rkrug@sun.ac.za>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Message-ID |
<4472D644.40306@sun.ac.za>
|
Date |
Tue, 23 May 2006 11:30:44 +0200
|
From |
Rainer M Krug <rkrug@sun.ac.za>
|
Reply-To |
rkrug@sun.ac.za
|
Organization |
University of Stellenbosch
|
User-Agent |
Thunderbird 1.5.0.2 (X11/20060420)
|
MIME-Version |
1.0
|
To |
Markus Neteler via RT <grass-bugs@intevation.de>
|
Subject |
Re: [bug #4182] (grass) v.in.db from MySQL database creates Segmentation Fault
|
References |
<20060522220814.42F401005A3@lists.intevation.de>
|
In-Reply-To |
<20060522220814.42F401005A3@lists.intevation.de>
|
X-Enigmail-Version |
0.94.0.0
|
Content-Type |
text/plain; charset=ISO-8859-1
|
Content-Transfer-Encoding |
7bit
|
X-Spam-Status |
No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
|
X-Spam-Level |
|
Hi Markus
I have good news and bad news: I don't get the error any more, but it
still does not seem to be able to import the data (there are no points
imported).
below see the history (from the Output - GIS window (I love it!)) of the
tries.
Hope this helps,
Rainer
****************************************************
g.region -u save=gism_temp_region --o
g.region n=1 s=-25 e=25 w=-1 nsres=0.001 ewres=0.001
d.mon stop=gism
d.mon start=gism -s
d.font romans
g.region region=gism_temp_region --o
db.tables driver=odbc
database=host=ecolmod-mysql,dbname=renpatch_renosterbos
DBMI-ODBC driver error: SQLConnect():
[unixODBC][Driver Manager]Invalid string or buffer length (0)
db.tables driver=mysql
database=host=ecolmod-mysql,dbname=renpatch_renosterbos
<snip>
def_cor4000_gi10_cs099_me05_500_700_renosterbos
<snip>
gi10_100_1000_renosterbos
<snip>
db.select table=def_cor4000_gi10_cs099_me05_500_700_renosterbos
database=host=ecolmod-mysql,dbname=renpatch_renosterbos driver=mysql
{sql=SELECT * from def_cor4000_gi10_cs099_me05_500_700_renosterbos WHERE
_run=1 AND _year=91} fs=|
GRASS_INFO_WARNING(7336,1): column 'OtherComp' : type BIGINT is stored
as integer (4 bytes) some data may be damaged
GRASS_INFO_WARNING(7336,2): column 'OwnComp' : type BIGINT is stored as
integer (4 bytes) some data may be damaged
_ID|Age|Condition|Height|IDNo|OtherComp|OwnComp|RX|RY|Seeds|X|Y|_SpeciesName|_Year|_Run
6189|5|0|0.355921|896209831|180858|92536|0.177960|0.177960|0|24.104500|21.092400|Renosterbos|91|1
<snip>
66977|5|0|0.623695|852669797|38432|161462|0.311847|0.311847|0|24.930600|3.377120|Renosterbos|91|1
v.in.db driver=mysql
database=host=ecolmod-mysql,dbname=renpatch_renosterbos
table=def_cor4000_gi10_cs099_me05_500_700_renosterbos x=X y=Y z=RX
key=_ID where=(_run=1)AND(_year=91)'
output=def_cor4000_gi10_cs099_me05_500_700_renosterbos_run1_year91
g.region -u save=gism_temp_region --o
g.region n=1 s=-25 e=25 w=-1 nsres=0.001 ewres=0.001
d.font romans
d.frame -e
d.vect map=def_cor4000_gi10_cs099_me05_500_700_renosterbos_run1_year91
color=0:0:0 lcolor=0:0:0 fcolor=170:170:170 display=shape
type=point,line,boundary,centroid,area icon=basic/x size=5 width=0
layer=1 lsize=8 xref=left yref=center llayer=1
coor files of vector
'def_cor4000_gi10_cs099_me05_500_700_renosterbos_run1_year91@rkrug' is
larger than it should be (14 bytes excess).
Cannot display areas, topology not available
g.pnmcomp in=6977.2.ppm mask=6977.2.pgm opacity=1.00
background=255:255:255 width=482 height=482 out=6977.1.ppm
g.region region=gism_temp_region --o
g.list type=vect
----------------------------------------------
vector files available in mapset rkrug:
def_cor4000_gi10_cs099_me05_500_700_renosterbos_run1_year91
def_renosterbos_run_5_year_99_2
----------------------------------------------
****************************************************
And:
****************************************************
v.extract
input=def_cor4000_gi10_cs099_me05_500_700_renosterbos_run1_year91
output=test type=point,line,boundary,centroid,area,face layer=1 new=-1
Cannot open old vector
def_cor4000_gi10_cs099_me05_500_700_renosterbos_run1_year91@rkrug on level 2
v.info map=def_cor4000_gi10_cs099_me05_500_700_renosterbos_run1_year91
layer=1
Cannot open old vector
def_cor4000_gi10_cs099_me05_500_700_renosterbos_run1_year91@rkrug on level 2
v.info map=def_renosterbos_run_5_year_99_2 layer=1
Cannot open old vector def_renosterbos_run_5_year_99_2@rkrug on level 2
****************************************************
Markus Neteler via RT wrote:
> Hi,
>
>
>
> I have fixed two bugs in v.in.db today (table name check and
>
> overwrite check) but I dunno if it applies.
>
>
>
> Could you please try again with a current version and
>
> report?
>
>
>
> thanks
>
>
>
> Markus
>
> -------------------------------------------- Managed by Request Tracker
> From - Tue
--
Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)
Department of Conservation Ecology and Entomology
University of Stellenbosch
Matieland 7602
South Africa
Tel: +27 - (0)72 808 2975 (w)
Fax: +27 - (0)21 808 3304
Cell: +27 - (0)83 9479 042
email: RKrug@sun.ac.za
Rainer@krugs.de
|
|