Problem to run a simulation in ns3

41 views
Skip to first unread message

Γιώργος Παπαδόπουλος

unread,
Jul 4, 2024, 5:56:40 AMJul 4
to ns-3-users
I try to run a simulation in ns3 and it shows me this problem.

[0/2] Re-checking globbed directories...
[2/2] Linking CXX executable /home/geo...scratch/ns3.41-v2x-highway-v40-default
msg="Attribute name=NrSpectrumPhyList does not exist for this object: tid=ns3::NrGnbPhy", +0.000000000s -1 file=/home/george/Downloads/ns-allinone-3.41/ns-3.41/src/core/model/object-base.cc, line=251
NS_FATAL, terminating
terminate called without an active exception
Command 'build/scratch/ns3.41-v2x-highway-v40-default' died with <Signals.SIGABRT: 6>.

Please help anyone who knows, what i should to do.

Gabriel Ferreira

unread,
Jul 4, 2024, 8:52:18 AMJul 4
to ns-3-users
You just hit the bug I discovered a few days ago and I'm working on fixes for nr. Make sure you are using a compatible v2x model for your example.

Gabriel Ferreira

unread,
Jul 4, 2024, 8:54:11 AMJul 4
to ns-3-users
The problem will probably look like the following.

- is bugged code that should be replaced
+ is fixed code

-        Ptr<NrSpectrumPhy> nrSpectrumPhy;
-        uePhyFirst->GetAttribute("NrSpectrumPhyList", ueSpectrumPhysFirstBwp);
-        nrSpectrumPhy = ueSpectrumPhysFirstBwp.Get(0)->GetObject<NrSpectrumPhy>();
+        Ptr<NrSpectrumPhy> nrSpectrumPhy = uePhyFirst->GetSpectrumPhy();

zoro

unread,
Jul 6, 2024, 5:47:12 AMJul 6
to ns-3-users
  hi , I'm working on a V2X project in ns3. Can you give me some resources like starting points 
Reply all
Reply to author
Forward
0 new messages