简体   繁体   English

ns3 buffer.h断言失败

[英]ns3 buffer.h assert failed

I created a new application for ns3, which seems to run correctly, however, after a few seconds of execution (after many packets have been received correctly), a get the following error: 我为ns3创建了一个新应用程序,该应用程序似乎可以正常运行,但是,在执行几秒钟后(在正确接收了许多数据包之后),出现以下错误:

assert failed. 断言失败。 cond="m_current + delta <= m_dataEnd", file=./ns3/buffer.h, line=678 cond =“ m_current + delta <= m_dataEnd”,文件=。/ ns3 / buffer.h,第= 678行

Any ideas what causes this error, and how I can bypass/correct it? 任何想法导致此错误的原因,以及如何绕过/纠正该错误?

This is just an assumption, but it seems that you have a buffer overflow, ie the current size exceeds it's maximum size. 这只是一个假设,但似乎您有缓冲区溢出,即当前大小超过了它的最大大小。 Maybe you can clear the buffer or increase its size. 也许您可以清除缓冲区或增加其大小。 As the message tells you, the error occurs on line 678 in the buffer.h file. 正如该消息告诉您的那样,该错误发生在buffer.h文件的第678行上。 You could look at this position to have an idea, which operation causes the assertion and maybe this helps you finding out what you have to do to avoid this message. 您可以看看这个位置有一个想法,哪个操作引起断言,也许这可以帮助您找到避免该消息的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM