#2656: GRASS freezes for 5-10 mins before eventually showing attribute table
-----------------------------------------+----------------------------------
Reporter: richardc | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 7.0.1
Component: Vector | Version: svn-releasebranch70
Keywords: attribute table, postgresql | Platform: Linux
Cpu: x86-64 |
-----------------------------------------+----------------------------------
On attempting to display a vector attribute table in the Layer Manager,
GRASS entirely freezes for about 5-10 mins, displaying the message -
Please wait loading attribute data... - and then the attribute table is
eventually displayed.
I'm not sure if related to postgresql which I'm using instead of sqlite;
sqlite tables are shown without trouble.
db.test gives the following, which appears functional:
db.test test=test1
Using DB driver: pg
EXECUTE: OK
EXECUTE: OK
EXECUTE: OK
EXECUTE: OK
RESULT: OK
EXECUTE: OK
RESULT: OK
EXECUTE: OK
EXECUTE: OK
EXECUTE: OK
EXECUTE: OK
ERROR: RESULT: ******** ERROR ********
2d1
< 3|0|_\\'_|
3a3
> 3|0|_\'_|
CREATE TABLE grass_test1 (i1 INTEGER, d1 DOUBLE PRECISION, c1 VARCHAR(20))
INSERT INTO grass_test1 VALUES ( 1, 123.456, 'abcd' )
INSERT INTO grass_test1 VALUES ( 2, null, 'xxx' )
SELECT * FROM grass_test1
SELECT c1 FROM grass_test1 WHERE d1 < 500 / 2 AND i1 <> 2 AND c1 LIKE
'%bc%'
INSERT INTO grass_test1 VALUES ( 3, 0.0, '_\''_' )
ALTER TABLE grass_test1 ADD COLUMN i2 INTEGER
UPDATE grass_test1 SET d1 = 18.6, i2 = 987 WHERE i1 = 2
SELECT * FROM grass_test1
DROP TABLE grass_test1
EXECUTE: OK
(Sat Apr 18 21:17:56 2015) Command finished (0 sec)
#2656: GRASS freezes for 5-10 mins before eventually showing attribute table
-----------------------------------------+----------------------------------
Reporter: richardc | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 7.0.1
Component: Vector | Version: svn-releasebranch70
Keywords: attribute table, postgresql | Platform: Linux
Cpu: x86-64 |
-----------------------------------------+----------------------------------
Comment(by richardc):
My comment about the sqlite db is wrong - I have the same issue in trying
to display a sqlite vector attribute table with the entire GRASS
application freezing.
#2656: GRASS freezes for 5-10 mins before eventually showing attribute table
-----------------------------------------+----------------------------------
Reporter: richardc | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 7.0.1
Component: Vector | Version: svn-releasebranch70
Keywords: attribute table, postgresql | Platform: Linux
Cpu: x86-64 |
-----------------------------------------+----------------------------------
Comment(by richardc):
Replying to [comment:1 richardc]:
> My comment about the sqlite db is wrong - I have the same issue in
trying to display a sqlite vector attribute table with the entire GRASS
application freezing.
However, attribute data can be displayed within 1 second with v.db.select
(with postgresql db):
#2656: GRASS freezes for 5-10 mins before eventually showing attribute table
-----------------------+-----------------------------------------
Reporter: richardc | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 7.0.1
Component: wxGUI | Version: svn-releasebranch70
Resolution: | Keywords: attribute table, postgresql
CPU: x86-64 | Platform: Linux
-----------------------+-----------------------------------------
Comment (by richardc):
Hi,
I was wondering if anyone might have any suggestions on how to resolve
this issue.
For instance, in addition to GRASS freezing on trying to show the
attribute table, the same is observed with db.describe or db.columns when
selected from the Layer Manager GUI. I have to restart GRASS each time if
I inadvertently select the these commands.
e.g.,
Database > Database information > Describe table [db.describe]
(Mon May 11 11:49:23 2015)
db.test --verbose test=test1
Using DB driver: pg
EXECUTE: OK
EXECUTE: OK
EXECUTE: OK
EXECUTE: OK
RESULT: OK
EXECUTE: OK
RESULT: OK
EXECUTE: OK
EXECUTE: OK
EXECUTE: OK
EXECUTE: OK
ERROR: RESULT: ******** ERROR ********
EXECUTE: OK
2d1
< 3|0|_\\'_|
3a3
> 3|0|_\'_|
CREATE TABLE grass_test1 (i1 INTEGER, d1 DOUBLE PRECISION, c1 VARCHAR(20))
INSERT INTO grass_test1 VALUES ( 1, 123.456, 'abcd' )
INSERT INTO grass_test1 VALUES ( 2, null, 'xxx' )
SELECT * FROM grass_test1
SELECT c1 FROM grass_test1 WHERE d1 < 500 / 2 AND i1 <> 2 AND c1 LIKE
'%bc%'
INSERT INTO grass_test1 VALUES ( 3, 0.0, '_\''_' )
ALTER TABLE grass_test1 ADD COLUMN i2 INTEGER
UPDATE grass_test1 SET d1 = 18.6, i2 = 987 WHERE i1 = 2
SELECT * FROM grass_test1
DROP TABLE grass_test1
(Mon May 11 11:49:23 20