Changes between Initial Version and Version 2 of Ticket #2513
- Timestamp:
- 12/24/14 01:06:29 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2513 – Description
initial v2 10 10 My uname output: 11 11 12 {{{ 12 13 : GRASS 7.0.0svn (rlis-master-for-seven):~ > uname -a 13 14 : Linux login.cluster 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux 15 }}} 14 16 15 17 I built grass from source, using primarily deps supplied by 16 18 19 {{{ 17 20 : yum install http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/\ 18 21 : pgdg-redhat93-9.3-1.noarch.rpm 22 }}} 19 23 20 24 The build is painless. GRASS works great, except for this bug. … … 22 26 I run GRASS v.colors to obtain a color map for TIGER census, as in: 23 27 28 {{{ 24 29 : GRASS 7.0.0svn (rlis-master-for-seven):~ > v.colors --verbose map=tract2010censusdp1_clipped_02 column=popden10 layer=1 rgb_column=GRASSRGB color=grey 30 }}} 25 31 26 32 What I expect: … … 31 37 sequence: 32 38 39 {{{ 33 40 : GRASS 7.0.0svn (rlis-master-for-seven):~ > v.colors --verbose map=tract2010censusdp1_clipped_02 column=popden10 layer=1 rgb_column=GRASSRGB color=grey 34 41 : Option <column> given, assuming <use=attr>... … … 53 60 : C-c C-c 54 61 : GRASS 7.0.0svn (rlis-master-for-seven):~ > 62 }}} 55 63 56 64 Where the C-c C-c is, I am tapping C-c to break the task, which is blatently frozen. 57 65 I've debugged it. The sequence of events is: 58 66 67 {{{ 59 68 : print "no database is open" 60 69 : db_shutdown_driver(driver=00661C40) 61 70 : doing waitpid(pid=1583) 62 71 : [freeze] 72 }}} 63 73 64 74 During the freeze, proc 1583 is still running, and it's a db/pg process. … … 66 76 as in 67 77 78 {{{ 68 79 : no database is open 69 80 : no database is open 70 81 : [I kill the db/pg process by hand] 71 82 : GRASS 7.0.0svn (rlis-master-for-seven):~ > 83 }}} 72 84 73 85 I've tried v.colors in the trunk and release SVN branches. The layer is fine, … … 82 94 is called before the colors are written at all. The stack is: 83 95 96 {{{ 84 97 : (gdb) where 85 98 : ,#0 0x0000003ab72ac8ce in waitpid () from /lib64/libc.so.6 … … 93 106 : column_name=0x654830 "GRASSRGB", colors=0x7fffffffce90) at write_rgb.c:37 94 107 : ,#7 0x0000000000402f83 in main (argc=7, argv=0x7fffffffd988) at main.c:350 108 }}} 95 109 96 110 If I delete grassrgb by hand, v.colors does return neatly and works great, as in: 97 111 112 {{{ 98 113 : psql (9.3.5) 99 114 : => … … 101 116 : ALTER TABLE 102 117 : => 118 }}} 103 119 104 120 then 105 121 122 {{{ 106 123 : GRASS 7.0.0svn (rlis-master-for-seven):~ > v.colors --verbose map=tract2010censusdp1_clipped_02 column=popden10 layer=1 rgb_column=GRASSRGB color=grey 107 124 h: Option <column> given, assuming <use=attr>... … … 113 130 : 'grey' 114 131 : GRASS 7.0.0svn (rlis-master-for-seven):~ > 132 }}} 115 133 116 134 The content of GRASSRGB looks fine after that. … … 118 136 Removing the color table using -r before running doesn't work, I get 119 137 138 {{{ 120 139 : GRASS 7.0.0svn (rlis-master-for-seven):~ > v.colors -r map=tract2010censusdp1_clipped_02 rgb_column=GRASSRGB 121 140 : WARNING: Color table of vector map <tract2010censusdp1_clipped_02> not … … 123 142 : GRASS 7.0.0svn (rlis-master-for-seven):~ > v.colors --verbose map=tract2010censusdp1_clipped_02 column=popden10 layer=1 rgb_column=GRASSRGB color=bgyr 124 143 : [freeze] 144 }}} 125 145 126 146 I obviously don't understand the difference between the color table and the rgb_column. v.colors seems to