Menu

#527 Assertion fails in OpalRTPMediaStream::~OpalRTPMediaStream()

Development_Branch
closed-out-of-date
nobody
None
5
2015-02-16
2014-10-07
No

Opal Garbage thread executes OpalRTPMediaStream::~OpalRTPMediaStream() -> OpalMediaStream::~OpalMediaStream() -> connection.SafeDereference(); but m_safeReferenceCount is 0.

Stack trace:

    ptlib64d.dll!PAssertFunc(const char * msg=0x000000000a25eb30) Line 311  C++
    ptlib64d.dll!PAssertFunc(const char * file=0x000007fee06ab458, int line=95, const char * className=0x0000000000000000, const char * msg=0x0000000000000000) Line 169    C++
    ptlib64d.dll!PAssertFunc(const char * file=0x000007fee06ab458, int line=95, const char * className=0x0000000000000000, PStandardAssertMessage msg=PLogicError) Line 147 C++
    ptlib64d.dll!PSafeObject::SafeDereference() Line 95 C++
    opal64d.dll!OpalMediaStream::~OpalMediaStream() Line 88 C++
>   opal64d.dll!OpalRTPMediaStream::~OpalRTPMediaStream() Line 86   C++
    opal64d.dll!OpalRTPMediaStream::`scalar deleting destructor'(unsigned int)  C++
    ptlib64d.dll!PSafeCollection::DeleteObject(PObject * object=0x00000000095ba550) Line 401    C++
    ptlib64d.dll!PSafeCollection::DeleteObjectsToBeRemoved() Line 387   C++
    opal64d.dll!OpalConnection::GarbageCollection() Line 269    C++
    opal64d.dll!OpalRTPConnection::GarbageCollection() Line 595 C++
    opal64d.dll!SIPConnection::GarbageCollection() Line 316 C++
    ptlib64d.dll!PSafeCollection::DeleteObjectsToBeRemoved() Line 382   C++
    opal64d.dll!OpalEndPoint::GarbageCollection() Line 139  C++
    opal64d.dll!SIPEndPoint::GarbageCollection() Line 562   C++
    opal64d.dll!OpalManager::GarbageCollection() Line 2164  C++
    opal64d.dll!OpalManager::GarbageMain(PThread & __formal={...}, __int64 __formal=0) Line 2185    C++
    opal64d.dll!OpalManager::GarbageMain_PNotifier::Call(PObject & note={...}, __int64 extra=0) Line 2102   C++
    ptlib64d.dll!PNotifierTemplate<__int64>::operator()(PObject & notifier={...}, __int64 extra=0) Line 137 C++
    ptlib64d.dll!PSimpleThread::Main() Line 2706    C++
1 Attachments

Discussion

  • Valeriy V. Argunov

    OPAL rev. 32865.

     
  • Valeriy V. Argunov

    The similar stack trace:

        ptlib64d.dll!PAssertFunc(const char * msg=0x000000001329b090) Line 311  C++
        ptlib64d.dll!PAssertFunc(const char * file=0x000007fee1c7b3c8, int line=95, const char * className=0x0000000000000000, const char * msg=0x0000000000000000) Line 169    C++
        ptlib64d.dll!PAssertFunc(const char * file=0x000007fee1c7b3c8, int line=95, const char * className=0x0000000000000000, PStandardAssertMessage msg=PLogicError) Line 147 C++
        ptlib64d.dll!PSafeObject::SafeDereference() Line 95 C++
        opal64d.dll!OpalMediaStream::~OpalMediaStream() Line 88 C++
    >   opal64d.dll!OpalMixerMediaStream::~OpalMixerMediaStream() Line 1162 C++
        opal64d.dll!OpalMixerMediaStream::`scalar deleting destructor'(unsigned int)    C++
        ptlib64d.dll!PSafeCollection::DeleteObject(PObject * object=0x00000000131d5280) Line 401    C++
        ptlib64d.dll!PSafeCollection::DeleteObjectsToBeRemoved() Line 387   C++
        opal64d.dll!OpalConnection::GarbageCollection() Line 269    C++
        ptlib64d.dll!PSafeCollection::DeleteObjectsToBeRemoved() Line 382   C++
        opal64d.dll!OpalEndPoint::GarbageCollection() Line 139  C++
        opal64d.dll!OpalMixerEndPoint::GarbageCollection() Line 923 C++
    

    OpalMediaStream::~OpalMediaStream() executes "connection.SafeDereference();" but m_safeReferenceCount of the connection is 0 already.

     
  • Robert Jongbloed

    The trace log provided in the ZIP file does not appear to have an assert in it.

    There was nothing immediately obvious in it re anything unusual either.

    Not sure there is anything more I can do as I have not had reports from anyone else.

     
  • Robert Jongbloed

    • status: open --> pending
     
  • Robert Jongbloed

    • status: pending --> closed-out-of-date
     

Log in to post a comment.