[GRASS5] [bug #2746] (grass) nowadays tight loop while waiting for mouse input

Markus Neteler neteler at itc.it
Wed Dec 1 03:41:46 EST 2004


On Wed, Dec 01, 2004 at 06:43:25AM +0100, Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=2746
> -------------------------------------------------------------------------
> 
> Nowadays when programs are waiting for mouse input, they go into tight
> loops, as seen with strace here on d.where:
> write(4, "\0\0\0\0", 4)                 = 4
> read(5, "@\1\0\0", 4)                   = 4
> read(5, "\357\0\0\0", 4)                = 4
> read(5, "\0\0\0\0", 4)                  = 4
> $ strace v.what.vect ...
> read(9, "\0\0\0\0", 4)                  = 4
> write(8, "\0\0\0\0", 4)                 = 4
> read(9, "@\1\0\0", 4)                   = 4
> v.digit too.
> While the program is waiting for the user to do something, the CPU
> meter stays pegged at 100%. Debian grass 5.7.0-4

This is due to the implementation of mouse input (which differs
from older GRASS versions).

Markus




More information about the grass-dev mailing list