Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute could not be set #1

Open
baverozceylan opened this issue Nov 30, 2017 · 3 comments
Open

Attribute could not be set #1

baverozceylan opened this issue Nov 30, 2017 · 3 comments

Comments

@baverozceylan
Copy link

When I tried to run lorawan-example.cc file, I get following error message;

"Attribute name=NbRep could not be set for this object: tid=ns3::LoRaWANNetDevice"

I think the program tries to set the NbReb attribute to an invalid value.

How can I fix that ?

Baver

@fvdnabee
Copy link
Collaborator

fvdnabee commented Dec 7, 2017

Note that lorawan-example-tracing was primarily used during the final de of the module. The other examples are older. That said, you could try setting nbrep via lorawanhelper:
lorawanHelper.SetNbRep (1);

By default, lorawan-example doesn't touch nbrep though. So most likely you are experiencing a bug. I don't have access to a computer to troubleshoot however(posting this from mobile).

@ejschiller
Copy link

Dear all,

I confirm that the bug exists:

https://github.com/imec-idlab/ns-3-dev-git.git in the lorawan branch, commit 0b80ed1, I run the following:

./waf --run=lorawan-example
Waf: Entering directory /home/ubuntu/ns-lorawan/ns-3-dev-git/build' Waf: Leaving directory /home/ubuntu/ns-lorawan/ns-3-dev-git/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (2.928s)
LoRaWANEndDeviceApplication::GetTypeId: ns3::UniformRandomVariable[Min=0|Max=6]
msg="Attribute name=NbRep could not be set for this object: tid=ns3::LoRaWANNetDevice", file=../src/core/model/object-base.cc, line=207
terminate called without an active exception
Command ['/home/ubuntu/ns-lorawan/ns-3-dev-git/build/src/lorawan/examples/ns3-dev-lorawan-example-debug'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run --command-template="gdb --args %s ").

gdb build/src/lorawan/examples/ns3-dev-lorawan-example-debug
Reading symbols from /home/ubuntu/ns-lorawan/ns-3-dev-git/build/src/lorawan/examples/ns3-dev-lorawan-example-debug...done.
(gdb) r
Starting program: /home/ubuntu/ns-lorawan/ns-3-dev-git/build/src/lorawan/examples/ns3-dev-lorawan-example-debug
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
LoRaWANEndDeviceApplication::GetTypeId: ns3::UniformRandomVariable[Min=0|Max=6]
msg="Attribute name=NbRep could not be set for this object: tid=ns3::LoRaWANNetDevice", file=../src/core/model/object-base.cc, line=207
terminate called without an active exception

Program received signal SIGABRT, Aborted.
0x00007ffff0b35428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) backtrace
#0 0x00007ffff0b35428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1 0x00007ffff0b3702a in __GI_abort () at abort.c:89
#2 0x00007ffff169584d in __gnu_cxx::__verbose_terminate_handler() ()
from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007ffff16936b6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007ffff1693701 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007ffff4e6e91d in ns3::ObjectBase::SetAttribute (this=0x6711f0, name="NbRep", value=...)
at ../src/core/model/object-base.cc:207
#6 0x00007ffff7b936bb in ns3::LoRaWANHelper::Install (this=0x7fffffffd950, c=...)
at ../src/lorawan/helper/lorawan-helper.cc:123
#7 0x000000000040a5af in main (argc=1, argv=0x7fffffffde98) at ../src/lorawan/examples/lorawan-example.cc:94

Best regards
Eryk Schiller

@OniremE
Copy link

OniremE commented Mar 6, 2020

Same error here :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants