Hello,
I have run PyViz in ns-3.10 on ubuntu as explained in
http://www.nsnam.org/wiki/index.php/PyViz and there wasn't any
problem.
In ns-3.11 I added #include "ns3/visualizer-module.h" in my code and
typed ./waf --run scratch/myfile --vis in terminal, but I got the
following error :
assert failed. cond="!m_metadataSkipped", msg="Error: attempting to
enable the packet metadata subsystem too late in the simulation, which
is not allowed.
A common cause for this problem is to enable ASCII tracing after
sending any packets. One way to fix this problem is to call
ns3::PacketMetadata::Enable () near the beginning of the program,
before any packets are sent.", file=../src/network/model/packet-
metadata.cc, line=59
terminate called without an active exception
Command ['/home/mahdi/ns-allinone-3.11/ns-3.11/build/debug/scratch/
myfile', '--SimulatorImplementationType=ns3::VisualSimulatorImpl']
terminated with signal SIGIOT. Run it under a debugger to get more
information (./waf --run <program> --command-template="gdb --args %s
<args>").
Can anyone help me ?
Thanks.