When I try to open the attribute table (sqlite db) of a line vector with around 100 columns and several 1000 lines I get an error message in GRASS6.5 SVN (Mac OSX).
After the error message pops up (saying only error, no specific description) the attribute table opens and shows the column heads but no entries and the window seems frozen.
When I check the sqlite datadase with the sqlite manager in firefox, there is no problem. There is also no problem when I try to open the simpler vector atrribute tables (with less lines and attributes).
I am not sure if that is a known problem or how can I tackle it. There is also a crash report from my OS created (Console report) which is attached.
I just found out what causes the problem:
It seems that this is related with the length of the column (attribute) names. After cropping them to <8 it works. Anyway that is seems
to be a good reason to stick to short attribute names especially when
one wants to exchange data with e.g ArcView.
Just a suggestion: Maybe the Error message should be more specific for the user.
cheers,
/johannes
-------- Original-Nachricht --------
Datum: Tue, 28 Feb 2012 12:01:08 +0100
Von: "Johannes Radinger" <JRadinger@gmx.at>
An: grass user list <grass-user@lists.osgeo.org>
Betreff: [GRASS-user] SQlite Error, Mac OS X
Hi,
When I try to open the attribute table (sqlite db) of a line vector with
around 100 columns and several 1000 lines I get an error message in GRASS6.5
SVN (Mac OSX).
After the error message pops up (saying only error, no specific
description) the attribute table opens and shows the column heads but no entries and
the window seems frozen.
When I check the sqlite datadase with the sqlite manager in firefox, there
is no problem. There is also no problem when I try to open the simpler
vector atrribute tables (with less lines and attributes).
I am not sure if that is a known problem or how can I tackle it. There is
also a crash report from my OS created (Console report) which is attached.
Cheers,
Johannes
--
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
When I try to open the attribute table (sqlite db) of a line
vector with around 100 columns and several 1000 lines I get
an error message in GRASS6.5 SVN (Mac OSX).
After the error message pops up (saying only error, no
specific description) the attribute table opens and shows
the column heads but no entries and the window seems
frozen.
When I check the sqlite datadase with the sqlite manager in
firefox, there is no problem. There is also no problem when
I try to open the simpler vector atrribute tables (with less
lines and attributes).
I am not sure if that is a known problem or how can I tackle
it. There is also a crash report from my OS created (Console
report) which is attached.
Hi,
it sounds like a (lack of) memory allocation bug in the grass
source code.
could you open a bug report, and (if possible) share some
sample data which triggers it?
When I try to open the attribute table (sqlite db) of a line
vector with around 100 columns and several 1000 lines I get
an error message in GRASS6.5 SVN (Mac OSX).
After the error message pops up (saying only error, no
specific description) the attribute table opens and shows
the column heads but no entries and the window seems
frozen.
I wonder if "char query[1024];" in v.db.select's main.c is
too small.