[GRASS5] Volunteer wanted for CELL driver color problem

Markus Neteler neteler at geog.uni-hannover.de
Thu Apr 19 06:43:29 EDT 2001


On Wed, Apr 18, 2001 at 08:11:50AM -0700, Eric G. Miller wrote:
> On Wed, Apr 18, 2001 at 11:35:42AM -0300, Bob Covill wrote:
> > Hi,
> > 
> > I just tried starting the CELL driver on my Linux machine and I still
> > get the same error message ...
> > 
> > Usage:  CELL [-] "input_fifo output_fifo"
> > No socket to connect to for monitor <CELL>.
> > Problem selecting CELL. Will try once more
> > No socket to connect to for monitor <CELL>.
> > 
> > It sounds like you are experiencing a different problem than I am. Do
> > you have a special monitorcap entry fort the CELL driver?  I think the
> > key to the above error is on the fist line, which sounds like the CELL
> > driver is being called incorrectly? 
> 
> Bob, your problem is clearly a CELL driver that is built with FIFO
> support, while the rest of the display code is built with the socket
> support.  You need to clean an rebuild the driver.  Hint: the changes
> are actually in ../lib (if cwd ~ grass/src/display/devices/CELL).

[Bob got it fixed]
 
> Markus's problem with CELL driver is clearly two things.
> 
> 1) The timing issue.  Both CELL and PNG seem to have longer start-up
>    times than the X driver.  Leads to the "unable to connect" message.
>    Subsequent "d.mon select=CELL" should succeed.
> 
> 2) Then forgot to d.mon stop=CELL (the driver was still running *and*
>    using the socket -- hence the message about it already being in use).
> 
> It's true that the drivers don't clean up their socket files at
> shutdown, but they'll remove them at start-up at long at they aren't
> already in use.  

Eric, yes, I got it as well and can proof the timing problem:

GRASS:~ > d.mon stop=CELL
Error - Monitor 'CELL' was not running

GRASS:~ > d.mon CELL
Can't bind to socket for monitor <CELL>. Already in use?
Socket is already in use or not accepting connections.
Use d.mon to select a monitor
Problem selecting CELL. Will try once more
Socket is already in use or not accepting connections.
Use d.mon to select a monitor

GRASS:~ > rm $LOCATION/.tmp/$HOSTNAME/CELL*
rm: »/home/neteler/grassdata5/lindau/PERMANENT/.tmp/bermuda/CELL« entfernen? y

GRASS:~ > d.mon stop=CELL
Error - No such monitor as 'CELL'

GRASS:~ > d.mon CELL
Graphics driver [CELL] started
Wait for 'READY'
Socket is already in use or not accepting connections.
Use d.mon to select a monitor
Problem selecting CELL. Will try once more
READY

 -> I had included your proposed "sleep(1)" in d.mon/cmd/main.c

Probably we should distinguish between CELL start (with sleep) and XDRIVER
start (without sleep). I have a 1GHz Athlon board here.

However, I think Glynn is looking into this as well now for a cleanup.

Thanks for your comments,

 Markus

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list