TheOpteProject / LGL

Large Graph Layout
GNU General Public License v2.0
168 stars 27 forks source link

Cannot make Graph. Example broken? #8

Open zrthstr opened 2 years ago

zrthstr commented 2 years ago

When trying to make a graph as described in https://github.com/TheOpteProject/LGL#making-internet-graphs i get some errors and no output png.

Should the steps in the README.md still work if followed correctly? Or are they out of date? If they should work, on what OS/Linux distro can this be reproduced?

In my case no *.coords file gets generated.

Here is what i am doing, following the steps under: "Making Internet graphs / The same thing but step by step (if above fails):"

LGL/scripts%> rm -rf ../testrun/internet_2000
LGL/scripts%> ./create_run.sh internet_2000
LGL/scripts%> cd ../testrun/internet_2000
LGL/testrun/internet_2000%> cp ../../bview.20000901.0610.gz ../testrun/internet_2000
LGL/testrun/internet_2000%> ./bootstrap.sh bview.20000901.0610.gz

Running bootstrap for bview.20000901.0610.gz (using internet_2000 as base)
in /home/user/graphic/internet_graphics/LGL/testrun/internet_2000
zcat bview.20000901.0610.gz
Parsing bview.20000901.0610.gz for ASpath-info (i.e. AS -> AS routing)
2021-11-28 13:34:39 [info] logging to syslog

real▷⋅⋅⋅0m21.483s
user▷⋅⋅⋅0m28.827s
sys▷⋅⋅⋅⋅0m0.602s
Parsing bview.20000901.0610.gz for prefix-info (i.e. AS -> prefix routing)
2021-11-28 13:35:00 [info] logging to syslog

real▷⋅⋅⋅0m21.263s
user▷⋅⋅⋅0m29.003s
sys▷⋅⋅⋅⋅0m0.509s
Combining internet_2000.as_as.ncol and internet_2000.prefix_as.ncol into internet_2000.full.ncol

real▷⋅⋅⋅0m0.003s
user▷⋅⋅⋅0m0.000s
sys▷⋅⋅⋅⋅0m0.002s
Converted and got ncol-file internet_2000.full.ncol
 is empty
Selecting to go with 6 threads (based on max(cores-2, 2))
/home/user/graphic/internet_graphics/LGL/testrun/internet_2000/setup.cfg already exists, using it...
LGLBREAKUP: /home/user/graphic/internet_graphics/LGL/bin/lglbreakup -d /home/user/graphic/internet_graphics/LGL/testrun/internet_2000/tmp/1638102922 /home/user/graphic/internet_graphics/LGL/testrun/internet_2000/tmp/internet_2000.full.lgl
Loading /home/user/graphic/internet_graphics/LGL/testrun/internet_2000/tmp/internet_2000.full.lgl...Done.
103104 : Total Vertex Count
112349 : Total Edge Count
Determining connected sets...
Found 1 connected sets.
Writing /home/user/graphic/internet_graphics/LGL/testrun/internet_2000/tmp/1638102922/0.lgl
103104 : Vertex Count
112349 : Edge Count
Remapping
LGLAYOUT: /home/user/graphic/internet_graphics/LGL/bin/lglayout2D -o /home/user/graphic/internet_graphics/LGL/testrun/internet_2000/tmp/1638102922/0.coords -y -O -t 6 -E 1x1 -e -l -L /home/user/graphic/internet_graphics/LGL/testrun/internet_2000/tmp/1638102922/0.lgl
readLGL: Open of Reading in Graph from Problem with lglayout (Part II): 256 at /home/user/graphic/internet_graphics/LGL/bin/lgl.pl line 204, <IN> line 112349.

lgl.pl took 00:00:03 to run.
Generating color_file...
Open Failed: /home/user/graphic/internet_graphics/LGL/testrun/internet_2000/tmp/*/0.coords.edge_levels: No such file or directory
Opening viewer(s)...
java -jar /home/user/graphic/internet_graphics/LGL/Java/jar/LGLView.jar /home/user/graphic/internet_graphics/LGL/testrun/internet_2000/tmp/1638102922/0.lgl /home/user/graphic/internet_graphics/LGL/testrun/internet_2000/tmp/*/0.coords /home/user/graphic/internet_graphics/LGL/testrun/internet_2000/tmp/../color_file
java -jar /home/user/graphic/internet_graphics/LGL/Java/jar/LGLView.jar /home/user/graphic/internet_graphics/LGL/testrun/internet_2000/tmp/final.mst.lgl /home/user/graphic/internet_graphics/LGL/testrun/internet_2000/tmp/final.coords /home/user/graphic/internet_graphics/LGL/testrun/internet_2000/tmp/../color_file
java -jar /home/user/graphic/internet_graphics/LGL/Java/jar/ImageMaker.jar 2400 2400 /home/user/graphic/internet_graphics/LGL/testrun/internet_2000/tmp/1638102922/0.lgl /home/user/graphic/internet_graphics/LGL/testrun/internet_2000/tmp/*/0.coords -c /home/user/graphic/internet_graphics/LGL/testrun/internet_2000/color_file
run.sh -- finished
Sleeping for a couple of second to wait in image generation
Moving images, png to '' and '../../resource/images/' for easy commit.
cp: cannot stat 'tmp/*/0.coords*transparent.png': No such file or directory
cp: cannot stat 'tmp/*/0.coords*light.png': No such file or directory
cp: cannot stat 'tmp/*/0.coords*dark.png': No such file or directory
cp: cannot stat 'internet_2000_transparent.png': No such file or directory
Moving graph-components (lgl and coords)
cp: cannot stat 'tmp/*/0.coords': No such file or directory
Icon theme "breeze" not found.
Icon theme "breeze" not found.
./bootstrap.sh bview.20000901.0610.gz  62,26s user 1,53s system 121% cpu 52,686 total

As far as i can debug it, the error happens on when bootstrap.sh calls run.sh calls lgl.pl in line 203 calls lglayout2D. What happens is that lgl.pl calls die()'s in line 204 but run.sh continues.

The command line arguments to lglayout2D that lgl.pl generates looks good from what i can tell. The perl script calling lglayout2D eats part of the error message so i isolated it.

LGL/testrun/internet_2000%>  /home/user/graphic/internet_graphics/LGL/bin/lglayout2D -o /home/user/graphic/internet_graphics/LGL/testrun/internet_2000/tmp/1638035734/0.coords -y -O -t 6 -E 1x1 -e -l -L /home/user/graphic/internet_graphics/LGL/testrun/internet_2000/tmp/1638035734/0.lgl

Reading in Graph from readLGL: Open of 

(the error msg stops after 'Open of' without a newline.

After the call to lglayout2D the 0.coords file is not generated. This of course then causes the image generation to fail later on.

Any idea what is going wrong here? How can i debug this further?

Happy about any pointers on how to continue.

( i'm using an up to date arch linux, but also in an debian 10, have all dependencies installed, i did the make && make install etc etc)

zrthstr commented 2 years ago

Drilling further down, it would appear that the error originates in include/graph.hpp line 768 called by lglayout.C in line 128. Failing to debug this further, as i don't speak c++, one thing i don't understand is where argv[optind] comes from..

DnQi commented 1 year ago

Hi, I meet the same problem, how did you handle it? Could you help me, please?

zrthstr commented 1 year ago

Unfortunately i could never get it to work.