ravinet / mahimahi

Web performance measurement toolkit
GNU General Public License v3.0
241 stars 129 forks source link

Why the xcb_get_setup return the null pointer #126

Closed bupt-steven closed 6 years ago

bupt-steven commented 6 years ago

mm-delay 100 mm-link /home/netlab/TCPgame/180917/env/ATT-LTE-driving.down /home/netlab/TCPgame/180917/env/ATT-LTE-driving.down --meter-downlink --downlink-queue=droptail --downlink-queue-args=packets=140 -- sh -c 'python /home/netlab/TCPgame/180917/env/run_receiver.py $MAHIMAHI_BASE 57083'

Died on std::runtime_error: xcb_get_setup: returned null pointer Died on std::runtime_error: downlink': process exited with failure status 1 Died on std::runtime_error:mm-link /home/netlab/TCPgame/180917/env/ATT-LTE-driving.down /home/netlab/TCPgame/180917/env/ATT-LTE-driving.down --meter-downlink --downlink-queue=droptail --downlink-queue-args=packets=140 -- sh -c python /home/netlab/TCPgame/180917/env/run_receiver.py $MAHIMAHI_BASE 57083': process exited with failure status 1 Died on std::runtime_error: `packetshell': process exited with failure status 1

keithw commented 6 years ago

This indicates an X11 error (xcb_get_setup: returned null pointer) trying to launch the downlink meter you requested (--meter-downlink).

What is your DISPLAY environment variable? Can xlogo successfully pop up a window?

bupt-steven commented 6 years ago

Thanks, I know what happened.

miqianmimi commented 5 years ago

could any one tell me why this happen ?

miqianmimi commented 5 years ago

may any tell me i already installed mahimahi ,but when i use

mm-delay 20 mm-link --meter-all /usr/share/mahimahi/traces/Verizon-LTE-short.up /usr/share/mahimahi/traces/Verizon-LTE-short.down

and i got error >

Died on std::runtime_error: xcb_get_setup: returned null pointer
Died on std::runtime_error: xcb_get_setup: returned null pointer
Died on std::runtime_error: downlink': process exited with failure status 1 Died on std::runtime_error: mm-link --meter-all /usr/share/mahimahi/traces/Verizon-LTE-short.up /usr/share/mahimahi/traces/Verizon-LTE-short.down': process exited with failure status 1
Died on std::runtime_error: `packetshell': process exited with failure status 1

i don't know why .

keithw commented 5 years ago

This indicates an X11 error (xcb_get_setup: returned null pointer) trying to launch the visual meters you requested (--meter-all).

What is your DISPLAY environment variable? Can xlogo successfully pop up a window?

miqianmimi commented 5 years ago

DISPLAY=localhost:10.0 and xlogo can not pop up a window.

Error: Can't open display: localhost:10.0

so how can i fix it ??

keithw commented 5 years ago

If you want the live animated meter, you'll have to get X working. The problem seems to be unrelated to mahimahi. localhost:10.0 suggests you logged in with ssh -X or something and are trying to forward X over the connection, which you also probably don't want to do (because the animation would consume a lot of throughput). You'll have the best results if you use the computer normally (on a graphical consume/monitor) instead of over an SSH connection.

Or you can just run mm-link without the --meter-all option and then you won't get the animation and it won't try to use a graphical display or X11 at all.

miqianmimi commented 5 years ago

thank you ! I know what happened.

hexi519 commented 4 years ago

If you want the live animated meter, you'll have to get X working. The problem seems to be unrelated to mahimahi. localhost:10.0 suggests you logged in with ssh -X or something and are trying to forward X over the connection, which you also probably don't want to do (because the animation would consume a lot of throughput). You'll have the best results if you use the computer normally (on a graphical consume/monitor) instead of over an SSH connection.

Or you can just run mm-link without the --meter-all option and then you won't get the animation and it won't try to use a graphical display or X11 at all.

Hi~ Xlogo can pop up and DISPLAY is localhost:12.0, so what should I do to fix it up ?I work with it on a server over an SSH connection and is there any method to show the figure from the remote server?