[Live-devel] Too many buffered packets

Rawling, Stuart SRawling at pelco.com
Wed Oct 21 17:39:17 PDT 2009


Hi, 
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.

I was wondering if anyone had any suggestions as to what caused this and how
I could fix it.  

The stack trace below is a sample of the many thousands I received.  I am
calling all actions on live555 in a single thread.

Stuart

#16137 0x0543175e in ~H264BufferedPacket (this=0x94e0b7b8) at
H264VideoRTPSource.cpp:162
#16138 0x05430827 in ~BufferedPacket (this=0xae68e0f8) at
MultiFramedRTPSource.cpp:316
#16139 0x0543175e in ~H264BufferedPacket (this=0xae68e0f8) at
H264VideoRTPSource.cpp:162
#16140 0x05430827 in ~BufferedPacket (this=0x94e0e8a8) at
MultiFramedRTPSource.cpp:316
#16141 0x0543175e in ~H264BufferedPacket (this=0x94e0e8a8) at
H264VideoRTPSource.cpp:162
#16142 0x05430827 in ~BufferedPacket (this=0x94e0de30) at
MultiFramedRTPSource.cpp:316
#16143 0x0543175e in ~H264BufferedPacket (this=0x94e0de30) at
H264VideoRTPSource.cpp:162
#16144 0x05430827 in ~BufferedPacket (this=0xae6e9b78) at
MultiFramedRTPSource.cpp:316
#16145 0x0543175e in ~H264BufferedPacket (this=0xae6e9b78) at
H264VideoRTPSource.cpp:162
#16146 0x05430827 in ~BufferedPacket (this=0x86fbf08) at
MultiFramedRTPSource.cpp:316
#16147 0x0543175e in ~H264BufferedPacket (this=0x86fbf08) at
H264VideoRTPSource.cpp:162
#16148 0x05430274 in ReorderingPacketBuffer::reset (this=0xa19bbf20) at
MultiFramedRTPSource.cpp:459
#16149 0x05430eaf in MultiFramedRTPSource::doStopGettingFrames
(this=0xa19bcb60) at MultiFramedRTPSource.cpp:106
#16150 0x054143da in FramedSource::stopGettingFrames (this=0xa19bcb60) at
FramedSource.cpp:107
#16151 0x05429fd3 in MediaSink::stopPlaying (this=0xb1e29760) at
MediaSink.cpp:83
#16152 0x057fddb1 in PELCO_RECEIVER_LIVE555_RTP_PLUGIN::RtpReceiver::Stop
(this=0xb1e296e8) at Source/RtpReceiver.cpp:379
#16153 0x057f3b22 in
PELCO_RECEIVER_LIVE555_RTP_PLUGIN::ReceiverLive555MediaObject::ProcessPause
(this=0xa19e3250) at Source/ReceiverLive555MediaObject.cpp:185
#16154 0x002ad3c1 in MPF_SDK::BaseMediaObject::_ProcessNextCommand
(this=0xa19e3250, waitForCommand=1) at Source/BaseMediaObject.cpp:1079
#16155 0x002ad6bc in MPF_SDK::BaseMediaObject::Process (this=0xa19e3250) at
Source/BaseMediaObject.cpp:951
#16156 0x002aa880 in MPF_SDK::MediaObjectThread::svc (this=0xa19e33e0) at
Source/BaseMediaObject.cpp:62
#16157 0x00852cc2 in ACE_Task_Base::svc_run () from ./Libs/libACE.so.5.6.6
#16158 0x00852f2d in ACE_Thread_Adapter::invoke_i () from
./Libs/libACE.so.5.6.6
#16159 0x00852fa6 in ACE_Thread_Adapter::invoke () from
./Libs/libACE.so.5.6.6
#16160 0x007e0fd1 in ace_thread_adapter () from ./Libs/libACE.so.5.6.6
#16161 0x00cb732f in start_thread () from /lib/libpthread.so.0
#16162 0x00e6220e in clone () from /lib/libc.so.6



- ------------------------------------------------------------------------------
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 at 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. 
- ------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20091021/c7cc3311/attachment.html>


More information about the live-devel mailing list