<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
I’m not using conda at the moment. Is there any chance we could solve this problem?<br id="lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>2024年4月5日 下午4:44,李怿曈 Yitong LI <yitongli@hkust-gz.edu.cn> 写道:</div>
<br class="Apple-interchange-newline">
<div>
<div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
I’m confused about kiwi, I’ve installed kiwi using “pip3 install kiwi”, and it succeeded. When I checked using “import kiwi.ui” in python3, it gave an error. I’ve checked many info online, no solution has been proved to work. I wonder if the error given is
really caused by kiwi’s installation?
<div><br>
</div>
<div>Thanks,</div>
<div>Caster<br>
<div>
<blockquote type="cite">
<div>2024年4月4日 上午3:32,Sirapop Theeranantachai <sirapop741@gmail.com> 写道:</div>
<br class="Apple-interchange-newline">
<div>
<div dir="auto">
<div>1. The error is different from yours.6-node bottleneck shows that you lack some python module. The error is SIGSEGV which means segmentation fault (a type of crash). Your code in scratch fails assertion check (not really a crash). </div>
<div dir="auto"><br>
<div dir="auto">2. In the example, you can either try without -visualize or try solving module issue by installing kiwi and gnomedesktop</div>
<div dir="auto"><br>
</div>
<div dir="auto">3. If not solved, try to see which line is causing segmentation fault by eithrr using gdb (advanced) or printing out lines and see how far the code goes. </div>
<br>
<br>
<div class="gmail_quote" dir="auto">
<div dir="ltr" class="gmail_attr">On Wed, Apr 3, 2024, 4:01 AM 李怿曈 Yitong LI <<a href="mailto:yitongli@hkust-gz.edu.cn">yitongli@hkust-gz.edu.cn</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="line-break:after-white-space">Hi,
<div><br>
</div>
<div>I’ve regenerated the error from online example “6-node bottleneck topology” (<a href="https://ndnsim.net/current/examples.html#node-bottleneck-topology" target="_blank" rel="noreferrer">https://ndnsim.net/current/examples.html#node-bottleneck-topology</a>).
When I run it using “./waf —run xxx —visualize”, then click simulate button in the graphic interface, it will automatically exit and give errors below in one second.</div>
<div><br>
</div>
<div>
<div><b>caster@ubuntu:~/ndnSim/ns-3$ ./waf --run test-bottleneck --visualize</b></div>
<div><b>Waf: Entering directory `/home/caster/ndnSim/ns-3/build'</b></div>
<div><b>Waf: Leaving directory `/home/caster/ndnSim/ns-3/build'</b></div>
<div><b>Build commands will be stored in build/compile_commands.json</b></div>
<div><b>'build' finished successfully (1.930s)</b></div>
<div><b>Could not load plugin 'show_last_packets.py': No module named 'kiwi.ui'</b></div>
<div><b>Could not load icon applets-screenshooter due to missing gnomedesktop Python module</b></div>
<div><b>scanning topology: 6 nodes...</b></div>
<div><b>scanning topology: calling graphviz layout</b></div>
<div><b>scanning topology: all done.</b></div>
<div><b>Command ['/home/caster/ndnSim/ns-3/build/scratch/test-bottleneck', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run <program> --gdb").</b></div>
<div><br>
</div>
<div>Except for the error reason for this example, I’ll appreciate it very much if you can give me some guidance on how to find out the problem when running scenarios, as the errors normally don’t indicate where are they occur.</div>
<div><br>
</div>
<div>Many thanks,</div>
<div>Caster</div>
<div><br>
<blockquote type="cite">
<div>2024年4月3日 下午5:30,Sirapop Theeranantachai <<a href="mailto:sirapop741@gmail.com" target="_blank" rel="noreferrer">sirapop741@gmail.com</a>> 写道:</div>
<br>
<div>
<div dir="auto">
<div> It appears that your code may have issue with ns3::RandomRectanglePositionAllocator. </div>
<div dir="auto">Which specific online example did you use, and are you sure it gives you exactly the same error? Would be great if you could provide the error message from the official documentation. <br>
<br>
<div class="gmail_quote" dir="auto">
<div dir="ltr" class="gmail_attr">On Wed, Apr 3, 2024, 1:26 AM 李怿曈 Yitong LI <<a href="mailto:yitongli@hkust-gz.edu.cn" target="_blank" rel="noreferrer">yitongli@hkust-gz.edu.cn</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="line-break:after-white-space">Hi all,
<div><br>
</div>
<div>I’ve installed ndnSIM and tested it using example code. But when I tried to run some example codes from the online documentation and my own scenarios, it will appears the same error. For some programs, it will appear immediately when executing them, some
other programs will show this error after visualization module is loaded and run for a few seconds. I’ve attached the log below and my source code. I appreciate your help!</div>
<div><br>
</div>
<div>
<div><b>caster@ubuntu:~/ndnSim/ns-3$ ./waf --run ndn-random --visualize</b></div>
<div><b>Waf: Entering directory `/home/caster/ndnSim/ns-3/build'</b></div>
<div><b>Waf: Leaving directory `/home/caster/ndnSim/ns-3/build'</b></div>
<div><b>Build commands will be stored in build/compile_commands.json</b></div>
<div><b>'build' finished successfully (3.593s)</b></div>
<div><b>assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: 0:100 not found", +0.000000000s -1 file=../src/core/model/type-id.cc, line=834</b></div>
<div><b>terminate called without an active exception</b></div>
<div><b>Command ['/home/caster/ndnSim/ns-3/build/scratch/ndn-random', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --gdb”).</b></div>
</div>
<div><b></b></div>
</div>
<div style="line-break:after-white-space">
<div><b></b></div>
<div>Thanks,</div>
<div>Caster</div>
</div>
</div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" rel="noreferrer noreferrer" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer noreferrer noreferrer" target="_blank">https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</body>
</html>