[Click] Problem with clicky rendering

david johnson david.lloyd.johnson at gmail.com
Wed Jun 10 04:32:42 EDT 2009


Eric,

Thanks for the advice - I discovered the problem was with Ubuntu using
dash instead of bash. When I started clicky I had this error 

bin/sh: Syntax error: Bad fd number

it still ran - but the images were all on top of one another

But now it makes sense that it is a shell problem looking at the code
section you sent which executes the dot program via a shell call.

To fix it I just did the following:

sudo rm /bin/sh
sudo ln -s /bin/bash /bin/sh

Cheers
David


On Tue, 2009-06-09 at 23:30 -0700, Eddie Kohler wrote:
> David,
> 
> I use intrepid myself with no problems.  I'm not sure how you could go about 
> debugging this.  You could edit the code in clicky/src/dwidget.cc, that runs 
> dot; the relevant lines are 264 & 265.  If I change those lines to:
> 
> 	String dot1_res = shell_command_output_string("dot", sa.take_string(), errh);
> 	fprintf(stderr, "RUN 1\n%s\n", dot1_res.c_str());
> 	StringAccum outsa(shell_command_output_string("dot", dot1_res, errh));
> 	fprintf(stderr, "RUN 2\n%s\n", outsa.c_str());
> 
> And run:
> 
>          src/clicky ../../conf/test.click 2> /tmp/dotresults.txt
> 
> I get the attached.  Do you see something different?
> 
> E
> 
> 
> 
> david johnson wrote:
> > I am using ubuntu intrepid (8.10) with graphviz ( Release 2.18 - March
> > 10, 2008 ) but when I try and display a click file in clicky all the
> > elements start on top of one another.
> > 
> > I have tried upgrading graphviz to  Release 2.22.2 - March 13, 2009 but
> > this didn't work. I have tested this on another ubuntu machine running
> > hardy (8.04) which is using graphviz ( 2.16  - November 9, 2007) and I
> > can confirm that it works fine.
> > 
> > I don't want to backdate my graphviz becuase so many ubuntu packages
> > depend on it - has anyone had a problem like this?
> > 
> > _______________________________________________
> > click mailing list
> > click at amsterdam.lcs.mit.edu
> > https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> plain text document attachment (dotresults.txt)
> RUN 1
> digraph {
> 	graph [nodesep="0.14", ranksep="0.2"];
> 	node [label="\N", shape=record];
> 	edge [arrowsize="0.2", headclip=true, tailclip=true];
> 	graph [bb="0,0,104,226"];
> 	n2 [label="{{}|InfiniteSource at 1|{<o0>}}", width="1.33", height="0.35", fixedsize=true, pos="52,213", rects="4,216,100,225 4,208,100,216 4,200,100,208"];
> 	n4 [label="{{<i0>}|Strip at 2|{<o0>}}", width="0.75", height="0.35", fixedsize=true, pos="52,173", rects="25,176,80,185 25,168,80,176 25,160,80,168"];
> 	n6 [label="{{<i0>}|Align at 3|{<o0>}}", width="0.78", height="0.35", fixedsize=true, pos="52,133", rects="24,136,80,145 24,128,80,136 24,120,80,128"];
> 	n8 [label="{{<i0>}|CheckIPHeader at 4|{<o0>}}", width="1.44", height="0.35", fixedsize=true, pos="52,93", rects="0,96,104,105 0,88,104,96 0,80,104,88"];
> 	n10 [label="{{<i0>}|Print at 5|{<o0>}}", width="0.75", height="0.35", fixedsize=true, pos="52,53", rects="25,56,80,65 25,48,80,56 25,40,80,48"];
> 	n12 [label="{{<i0>}|Discard at 6|{}}", width="0.94", height="0.35", fixedsize=true, pos="52,13", rects="18,16,86,25 18,8,86,16 18,0,86,8"];
> 	n10:o0:s -> n12:i0:n [pos="e,52,25 52,40 52,34 52,32 52,27"];
> 	n8:o0:s -> n10:i0:n [pos="e,52,65 52,80 52,74 52,72 52,67"];
> 	n6:o0:s -> n8:i0:n [pos="e,52,105 52,120 52,114 52,112 52,107"];
> 	n4:o0:s -> n6:i0:n [pos="e,52,145 52,160 52,154 52,152 52,147"];
> 	n2:o0:s -> n4:i0:n [pos="e,52,185 52,200 52,194 52,192 52,187"];
> }
> 
> RUN 2
> digraph {
> 	graph [nodesep="0.14", ranksep="0.2", bb="0,0,104,226"];
> 	node [label="\N", shape=record];
> 	edge [arrowsize="0.2", headclip=true, tailclip=true];
> 	n2 [label="{{}|InfiniteSource at 1|{<o0>}}", width="1.33", height="0.35", fixedsize=true, pos="52,213", rects="4,216,100,225 4,208,100,216 4,200,100,208"];
> 	n4 [label="{{<i0>}|Strip at 2|{<o0>}}", width="0.75", height="0.35", fixedsize=true, pos="52,173", rects="25,176,79,185 25,168,79,176 25,160,79,168"];
> 	n6 [label="{{<i0>}|Align at 3|{<o0>}}", width="0.78", height="0.35", fixedsize=true, pos="52,133", rects="24,136,80,145 24,128,80,136 24,120,80,128"];
> 	n8 [label="{{<i0>}|CheckIPHeader at 4|{<o0>}}", width="1.44", height="0.35", fixedsize=true, pos="52,93", rects="0,96,104,105 0,88,104,96 0,80,104,88"];
> 	n10 [label="{{<i0>}|Print at 5|{<o0>}}", width="0.75", height="0.35", fixedsize=true, pos="52,53", rects="25,56,79,65 25,48,79,56 25,40,79,48"];
> 	n12 [label="{{<i0>}|Discard at 6|{}}", width="0.94", height="0.35", fixedsize=true, pos="52,13", rects="18,16,86,25 18,8,86,16 18,0,86,8"];
> 	n10:o0:s -> n12:i0:n [pos="e,52,25 52,40 52,34 52,32 52,27"];
> 	n8:o0:s -> n10:i0:n [pos="e,52,65 52,80 52,74 52,72 52,67"];
> 	n6:o0:s -> n8:i0:n [pos="e,52,105 52,120 52,114 52,112 52,107"];
> 	n4:o0:s -> n6:i0:n [pos="e,52,145 52,160 52,154 52,152 52,147"];
> 	n2:o0:s -> n4:i0:n [pos="e,52,185 52,200 52,194 52,192 52,187"];
> }
> 



More information about the click mailing list