webrtc / webrtc-org

WebRTC.org website (*** This repository is deprecated ***) - The documentation to contribute to native code is available at https://webrtc.googlesource.com/src/+/refs/heads/master/docs/native-code/index.md, info about WebRTC is available at https://webrtc.org)
https://webrtc.org
BSD 3-Clause "New" or "Revised" License
237 stars 138 forks source link

WebRTC std::deque iterator exception while running peerconenction_client.exe debug verion #260

Closed Sleepingbug closed 1 year ago

Sleepingbug commented 4 years ago

I compiled webrtc code and generated webrtc.lib and peerconnection_client.exe and peerconnection_server.exe, but I have a strange error when I run peerconnection_client.exe program in Windows x86 Debug configuration on Visual Studio :

Error message:

C:\Program Files(x86)\Microsoft Visual Studio\2019\Professinal\VC\msvc\14.25.28610\include\deque line 279

Expression:cannot increment value-initialized deque iterator

//////////////////

_Deque_const_iterator& operator++() {

if _ITERATOR_DEBUG_LEVEL != 0

        const auto _Mycont = static_cast<const _Mydeque*>(this->_Getcont());
        _STL_VERIFY(_Mycont, "cannot increment value-initialized deque iterator");

here----> _STL_VERIFY(this->_Myoff < _Mycont->_Myoff + _Mycont->_Mysize, "cannot increment deque iterator past end");**

endif // _ITERATOR_DEBUG_LEVEL != 0

    ++_Myoff;
    return *this;

}

///////////

With the same configuration (except is_debug=false), the relase version runs well `

Sleepingbug commented 4 years ago

I have tried many times, but the result is that the webrtc.lib debug version has problems and the release version is OK.

alvestrand commented 1 year ago

This bug tracker is only intended for issues with the webrtc.org web site. Please use: