<div dir="ltr">Hi Junxiao,<div><br></div><div>Yes, this is what I am doing from my example. </div><div><div> </div><div> 93   // Install NLSR Controller on Node-1.</div><div> 94   NS_LOG_INFO ("Installing NLSR Controller application on all nodes");</div><div> 95   ndn::AppHelper nlsrcHelper ("ns3::ndn::NlsrcApp");</div><div> 96   nlsrcHelper.Install(nodes); </div><div> 97</div></div><div><br></div><div><div>109   // Schedule the new prefis registration at 100 sec.</div><div>110   Simulator::Schedule(Seconds(100.0), advertise, nodes.Get(1));</div><div>111 </div></div><div><br></div><div>I referred to the example given here: <a href="https://github.com/named-data/ndnSIM/blob/master/examples/ndn-simple-with-link-failure.cpp#L95">https://github.com/named-data/ndnSIM/blob/master/examples/ndn-simple-with-link-failure.cpp#L95</a></div><div><br></div><div>I am explicitly selecting the node 1 to schedule this event on; but not sure why it is returning -1 at runtime. Do you still think '<span style="font-family:sans-serif;font-size:12.8px">ns3::Simultor::</span><wbr style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">ScheduleWithContext' is the correct way to go?</span></div><div><br></div><div>/anil.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 11, 2017 at 11:50 AM, Junxiao Shi <span dir="ltr"><<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Hi Anil</div><div dir="auto"><br></div><div dir="auto">The log indicates some code is calling ns3::NodeList::GetNode(-1), but -1 is obviously not a valid NodeId.</div><div dir="auto">I guess this invalid NodeId comes from ns3::Simulator::GetContext(), which usually returns the current NodeId on which an event is scheduled. However, some code (most likely in main function or initialization procedure) has scheduled an event without context, so that <span style="font-family:sans-serif">ns3::Simulator::<wbr>GetContext() is returning -1.</span></div><div dir="auto"><font face="sans-serif">You may search for calls to ns3::Simulator::Schedule and replace them with ns3::Simultor::<wbr>ScheduleWithContext. The context value should indicate which node the event should be happening.</font></div><div dir="auto"><font face="sans-serif"><br></font></div><div dir="auto"><font face="sans-serif">Yours, Junxiao<br></font><span class=""><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">On Jun 11, 2017 10:35, "Anil Jangam" <<a href="mailto:anilj.mailing@gmail.com" target="_blank">anilj.mailing@gmail.com</a>> wrote:<br type="attribution"><blockquote class="m_-2020719453460897826quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi All,<div><br></div><div>Mahsa, Sabet, How have you solved this issue of SIGABRT? </div><div><br></div><div>I converted the "nlsrc" into a a ndn::Application instance and installed it on each of the nodes. In my simulation example, I am scheduling a new prefix injection (at 100.0 sec) from a node. </div><div><br></div><div>I see that experiment is running and at time 100 secs  into simulation, its crashing. I am attaching the stack trace for more details. Can you help me know what wrong here?</div><div><br></div><div>Let me know if you need additional info. </div><font color="#888888"><div><br></div><div>/anil.</div><div><br></div></font></div></blockquote></div></div></span></div></div>
</blockquote></div><br></div>