Cryptyc / CryptBot

Starcraft AI Bot
MIT License
11 stars 4 forks source link

write access violation #3

Open quelibrio opened 6 years ago

quelibrio commented 6 years ago

Unhandled exception thrown: write access violation. this->_Myproxy was 0xF3CDCD5CF0. I get this exception at if (_Myproxy != 0) _Myproxy->_Mycont = (_Container_base12 *)this; xutility file. If i comment it the same exception appears on loading the map line.

Cryptyc commented 6 years ago

Thats wierd, I'll take a look. Can you post the full callstack, that might help

Thanks

quelibrio commented 6 years ago

Sure thanks, the game starts protos is the race, but this memory issue appears Thats the call stack CryptBot.exe!std::_Container_base12::_Swap_all(std::_Container_base12 & _Right) Line 273 C++ Non-user code. Symbols loaded. CryptBot.exe!std::_Vector_alloc<struct std::_Vec_base_types<struct sc2::UnitOrder,class std::allocator > >::_Swap_all(class std::_Vector_alloc<struct std::_Vec_base_types<struct sc2::UnitOrder,class std::allocator > > &) Unknown Non-user code. Symbols loaded. CryptBot.exe!std::vector<struct sc2::UnitOrder,class std::allocator >::_Move_from(class std::vector<struct sc2::UnitOrder,class std::allocator > &&,struct std::integral_constant<bool,1>) Unknown Non-user code. Symbols loaded. CryptBot.exe!std::vector<struct sc2::UnitOrder,class std::allocator >::vector<struct sc2::UnitOrder,class std::allocator >(class std::vector<struct sc2::UnitOrder,class std::allocator > &&) Unknown Non-user code. Symbols loaded. CryptBot.exe!sc2::Unit::Unit(class sc2::Unit &&) Unknown Non-user code. Symbols loaded. CryptBot.exe!std::allocator::construct<class sc2::Unit,class sc2::Unit>(class sc2::Unit ,class sc2::Unit &&) Unknown Non-user code. Symbols loaded. CryptBot.exe!std::allocator_traits<class std::allocator >::construct<class sc2::Unit,class sc2::Unit>(class std::allocator &,class sc2::Unit ,class sc2::Unit &&) Unknown Non-user code. Symbols loaded. CryptBot.exe!std::_Wrap_alloc<class std::allocator >::construct<class sc2::Unit,class sc2::Unit>(class sc2::Unit ,class sc2::Unit &&) Unknown Non-user code. Symbols loaded. CryptBot.exe!std::_Uninitialized_move_al_unchecked<class sc2::Unit ,class sc2::Unit ,class std::allocator >(class sc2::Unit ,class sc2::Unit ,class sc2::Unit ,struct std::_Wrap_alloc<class std::allocator > &,struct std::_General_ptr_iterator_tag,struct std::_Any_tag) Unknown Non-user code. Symbols loaded. CryptBot.exe!std::_Uninitialized_move<class sc2::Unit ,class sc2::Unit ,class std::allocator >(class sc2::Unit ,class sc2::Unit ,class sc2::Unit ,struct std::_Wrap_alloc<class std::allocator > &) Unknown Non-user code. Symbols loaded. CryptBot.exe!std::vector<class sc2::Unit,class std::allocator >::_Umove_if_noexcept1(class sc2::Unit ,class sc2::Unit ,class sc2::Unit ,struct std::integral_constant<bool,1>) Unknown Non-user code. Symbols loaded. CryptBot.exe!std::vector<class sc2::Unit,class std::allocator >::_Umove_if_noexcept(class sc2::Unit ,class sc2::Unit ,class sc2::Unit ) Unknown Non-user code. Symbols loaded. CryptBot.exe!std::vector<class sc2::Unit,class std::allocator >::emplace_back<class sc2::Unit const &>(class sc2::Unit const &) Unknown Non-user code. Symbols loaded. CryptBot.exe!std::vector<class sc2::Unit,class std::allocator >::push_back(class sc2::Unit const &) Unknown Non-user code. Symbols loaded. CryptBot.exe!sc2::Convert(class sc2::MessageResponsePtr const &,class std::vector<class sc2::Unit,class std::allocator > &) Unknown Non-user code. Symbols loaded. CryptBot.exe!sc2::ObservationImp::UpdateObservation(void) Unknown Non-user code. Symbols loaded. CryptBot.exe!sc2::ControlImp::GetObservation(void) Unknown Non-user code. Symbols loaded. CryptBot.exe!sc2::CoordinatorImp::StartGame(void) Unknown Non-user code. Symbols loaded. CryptBot.exe!sc2::Coordinator::StartGame(class std::basic_string<char,struct std::char_traits,class std::allocator > const &) Unknown Non-user code. Symbols loaded. CryptBot.exe!main(int argc, char * argv) Line 31 C++ Symbols loaded. [External Code] Annotated Frame

csandmann commented 5 years ago

I've had a similar problem in a completely different application but stumbled upon this post while googling. For me it turned out that I had linked against a library in a wrong configuration (I wanted to have debug but linked against release). Maybe this here is a similar problem?