[ndnSIM] Not able to visualise the simulated code

sai gautams saigautam96 at gmail.com
Mon Apr 26 00:20:19 PDT 2021


Hi Ygor,

Thanks for the information. So, from what I understand, I need to allocate
memory to my code.Because the smart pointer of ns-3 is pointing nowhere I
guess. Is that it? or something else.Please correct me.

On Sun, Apr 25, 2021 at 4:35 AM Ygor Amaral <ygor.amaral at gmail.com> wrote:

> Hi Sai,
>
> You are experiencing a memory allocation problem. ns-3 has a smart pointer
> mechanism and you are overloading the reference counting system.
>
> Review your code in the snippets that you created ns-3 objects.
>
> The limit of references is given by uint32_t. It is an acceptable value,
> the error is not the limit.
>
> Regards,
> Ygor Amaral
>
>
>
> On Sat, Apr 24, 2021 at 2:03 AM sai gautams <saigautam96 at gmail.com> wrote:
>
>> Hi Yogr,
>> I'm facing the following issue when I try to debug my code in ndnSIM. I
>> don't understand how to deal with this fault. Can you please help me out?
>> Thank you.
>>
>> Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7f584d1
>> in ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase,
>> ns3::ObjectDeleter>::Ref (this=0x6465697272616320) at
>> ./ns3/simple-ref-count.h:107 107    NS_ASSERT (m_count <
>> std::numeric_limits<uint32_t>::max())
>>
>> On Fri, Apr 16, 2021 at 12:39 AM Ygor Amaral <ygor.amaral at gmail.com>
>> wrote:
>>
>>> Hi Sai,
>>>
>>> I think the documentation does not explain in this way how you
>>> configured it. But in summary...
>>>
>>> To configure in debug mode:
>>>      - ./waf configure (or ./waf configure -d debug)
>>>
>>>      ---- Summary of optional NS-3 features (CONFIGURE OUTPUT):
>>>      Build profile                 : debug
>>>
>>> To configure in optimized mode:
>>>      - ./waf configure -d optimized
>>>
>>>      ---- Summary of optional NS-3 features: (CONFIGURE OUTPUT)
>>>      Build profile                 : optimized
>>>
>>>
>>> Regards,
>>> Ygor Amaral
>>>
>>> On Tue, Apr 13, 2021 at 12:37 AM sai gautams <saigautam96 at gmail.com>
>>> wrote:
>>>
>>>> Hi Ygor,
>>>>
>>>> Thank you for the information. I tried compiling in the debugging
>>>> mode(./waf configure --debug) as given in ndnSIM documentation. But it is
>>>> throwing me an error of no such option.
>>>>
>>>> On Tue, Apr 13, 2021 at 5:45 AM Ygor Amaral <ygor.amaral at gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Sai,
>>>>>
>>>>> This output log did not give much information.
>>>>>
>>>>> Did you compile ndnSIM in debug or optimized mode? In the development
>>>>> stage, prefer the debug mode, use the optimized mode only for the final
>>>>> simulation.
>>>>>
>>>>> I do not believe that the error is the number of nodes. If you are a
>>>>> new user, the first tip is to read the ns3 and ndnSIM documentation.
>>>>>
>>>>> To try to solve this problem, read about the log module of ns-3, it
>>>>> will help you to find the problem.
>>>>> https://www.nsnam.org/docs/release/3.33/tutorial/html/tweaking.html#using-the-logging-module
>>>>>
>>>>> If you use any C ++ IDE (e.g.: Eclipse, CLion ...), you can do remote
>>>>> debugging to use breakpoints and other interesting debug features provided
>>>>> by these IDEs.
>>>>>
>>>>> So, you would run as follows:
>>>>>
>>>>> ./waf --command-template="gdbserver localhost:1234 %s"
>>>>> --run=ndn-complex
>>>>>
>>>>> Regards,
>>>>> Ygor Amaral
>>>>>
>>>>> On Mon, Apr 12, 2021 at 4:21 AM sai gautams via ndnSIM <
>>>>> ndnsim at lists.cs.ucla.edu> wrote:
>>>>>
>>>>>>
>>>>>> Hello everyone,
>>>>>>
>>>>>> I tried to write a code with 20 nodes (P2P) but when I try to
>>>>>> visualize its build but for some reason, I couldn't. Can someone help me
>>>>>> with this issue? I'm new to ndnSIM.
>>>>>>
>>>>>> ./waf --run=ndn-complex --vis
>>>>>> Waf: Entering directory `/home/smandapati/ndnSIM/ns-3/build'
>>>>>> [2772/3269] Compiling src/ndnSIM/examples/ndn-complex.cpp
>>>>>> [3227/3269] Linking
>>>>>> build/src/ndnSIM/examples/ns3-dev-ndn-complex-debug
>>>>>> Waf: Leaving directory `/home/smandapati/ndnSIM/ns-3/build'
>>>>>> Build commands will be stored in build/compile_commands.json
>>>>>> 'build' finished successfully (7.654s)
>>>>>> Command
>>>>>> ['/home/smandapati/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-complex-debug',
>>>>>> '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with
>>>>>> signal SIGSEGV. Run it under a debugger to get more information (./waf
>>>>>> --run <program> --command-template="gdb --args %s <args>").
>>>>>>
>>>>>> --
>>>>>>
>>>>>> *Sai Gautam Mandapati*
>>>>>>
>>>>>> Deakin University
>>>>>>
>>>>>> Doctor of Philosophy Student
>>>>>>
>>>>>> Higher Degree by Research
>>>>>>
>>>>>> Faculty of Science, Engineering and Built-in Environment
>>>>>>
>>>>>> E-mail: saigautam96 at gmail.com
>>>>>>
>>>>>> http://www.linkedin.com/in/sai-gautam-mandapati
>>>>>> _______________________________________________
>>>>>> ndnSIM mailing list
>>>>>> ndnSIM at lists.cs.ucla.edu
>>>>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>>>>>>
>>>>>
>>>>
>>>> --
>>>>
>>>> *Sai Gautam Mandapati*
>>>>
>>>> Deakin University
>>>>
>>>> Doctor of Philosophy Student
>>>>
>>>> Higher Degree by Research
>>>>
>>>> Faculty of Science, Engineering and Built-in Environment
>>>>
>>>> E-mail: saigautam96 at gmail.com
>>>>
>>>> http://www.linkedin.com/in/sai-gautam-mandapati
>>>>
>>>
>>
>> --
>>
>> *Sai Gautam Mandapati*
>>
>> Deakin University
>>
>> Doctor of Philosophy Student
>>
>> Higher Degree by Research
>>
>> Faculty of Science, Engineering and Built-in Environment
>>
>> E-mail: saigautam96 at gmail.com
>>
>> http://www.linkedin.com/in/sai-gautam-mandapati
>>
>

-- 

*Sai Gautam Mandapati*

Deakin University

Doctor of Philosophy Student

Higher Degree by Research

Faculty of Science, Engineering and Built-in Environment

E-mail: saigautam96 at gmail.com

http://www.linkedin.com/in/sai-gautam-mandapati
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210426/a2a81ab4/attachment-0001.html>


More information about the ndnSIM mailing list