<HTML>
<HEAD>
<TITLE>Too many buffered packets</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi, <BR>
Today I cam across an issue where the source was seemingly buffering up thousands of packets. I got a crash in my client which after looking at the backtrace could be to do with a memory / stack issue. Basically I found a backtrace that was 16 *thousand* frames long. It seems that there were thousands of buffered packets in the linked list for some reason. When I called pause, it called MultiFramedRTPSource::reset which deleted the buffers in the linked list. <BR>
<BR>
I was wondering if anyone had any suggestions as to what caused this and how I could fix it. <BR>
<BR>
The stack trace below is a sample of the many thousands I received. I am calling all actions on live555 in a single thread.<BR>
<BR>
Stuart<BR>
<BR>
#16137 0x0543175e in ~H264BufferedPacket (this=0x94e0b7b8) at H264VideoRTPSource.cpp:162<BR>
#16138 0x05430827 in ~BufferedPacket (this=0xae68e0f8) at MultiFramedRTPSource.cpp:316<BR>
#16139 0x0543175e in ~H264BufferedPacket (this=0xae68e0f8) at H264VideoRTPSource.cpp:162<BR>
#16140 0x05430827 in ~BufferedPacket (this=0x94e0e8a8) at MultiFramedRTPSource.cpp:316<BR>
#16141 0x0543175e in ~H264BufferedPacket (this=0x94e0e8a8) at H264VideoRTPSource.cpp:162<BR>
#16142 0x05430827 in ~BufferedPacket (this=0x94e0de30) at MultiFramedRTPSource.cpp:316<BR>
#16143 0x0543175e in ~H264BufferedPacket (this=0x94e0de30) at H264VideoRTPSource.cpp:162<BR>
#16144 0x05430827 in ~BufferedPacket (this=0xae6e9b78) at MultiFramedRTPSource.cpp:316<BR>
#16145 0x0543175e in ~H264BufferedPacket (this=0xae6e9b78) at H264VideoRTPSource.cpp:162<BR>
#16146 0x05430827 in ~BufferedPacket (this=0x86fbf08) at MultiFramedRTPSource.cpp:316<BR>
#16147 0x0543175e in ~H264BufferedPacket (this=0x86fbf08) at H264VideoRTPSource.cpp:162<BR>
#16148 0x05430274 in ReorderingPacketBuffer::reset (this=0xa19bbf20) at MultiFramedRTPSource.cpp:459<BR>
#16149 0x05430eaf in MultiFramedRTPSource::doStopGettingFrames (this=0xa19bcb60) at MultiFramedRTPSource.cpp:106<BR>
#16150 0x054143da in FramedSource::stopGettingFrames (this=0xa19bcb60) at FramedSource.cpp:107<BR>
#16151 0x05429fd3 in MediaSink::stopPlaying (this=0xb1e29760) at MediaSink.cpp:83<BR>
#16152 0x057fddb1 in PELCO_RECEIVER_LIVE555_RTP_PLUGIN::RtpReceiver::Stop (this=0xb1e296e8) at Source/RtpReceiver.cpp:379<BR>
#16153 0x057f3b22 in PELCO_RECEIVER_LIVE555_RTP_PLUGIN::ReceiverLive555MediaObject::ProcessPause (this=0xa19e3250) at Source/ReceiverLive555MediaObject.cpp:185<BR>
#16154 0x002ad3c1 in MPF_SDK::BaseMediaObject::_ProcessNextCommand (this=0xa19e3250, waitForCommand=1) at Source/BaseMediaObject.cpp:1079<BR>
#16155 0x002ad6bc in MPF_SDK::BaseMediaObject::Process (this=0xa19e3250) at Source/BaseMediaObject.cpp:951<BR>
#16156 0x002aa880 in MPF_SDK::MediaObjectThread::svc (this=0xa19e33e0) at Source/BaseMediaObject.cpp:62<BR>
#16157 0x00852cc2 in ACE_Task_Base::svc_run () from ./Libs/libACE.so.5.6.6<BR>
#16158 0x00852f2d in ACE_Thread_Adapter::invoke_i () from ./Libs/libACE.so.5.6.6<BR>
#16159 0x00852fa6 in ACE_Thread_Adapter::invoke () from ./Libs/libACE.so.5.6.6<BR>
#16160 0x007e0fd1 in ace_thread_adapter () from ./Libs/libACE.so.5.6.6<BR>
#16161 0x00cb732f in start_thread () from /lib/libpthread.so.0<BR>
#16162 0x00e6220e in clone () from /lib/libc.so.6<BR>
</SPAN></FONT>
<BR>
- ------------------------------------------------------------------------------<BR>
Confidentiality Notice: The information contained in this transmission is legally privileged and confidential, intended only for the use of the individual(s) or entities named above. This email and any files transmitted with it are the property of Pelco. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you receive this communication in error, please notify us immediately by telephone call to +1-559-292-1981 or forward the e-mail to administrator@pelco.com and then permanently delete the e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. <BR>
- ------------------------------------------------------------------------------<BR>
</BODY>
</HTML>