BWTA Crash

https://github.com/bwapi/bwapi
Kanamorf
Posts: 1
Joined: Tue Dec 04, 2012 7:40 pm

BWTA Crash

Postby Kanamorf » Tue Dec 04, 2012 8:12 pm

I have been successfully developing against BWAPI for about 3 months now and got to the point where I felt it was time to do some map analysis.

So I created a new map analysis class included BWTA.h and called BWTA::readMap()
Problem I am having is its crashing no matter what map I select.

So I am obviously doing something very stupid......
I have grabbed the call stack on crash which is as follows

Code: Select all


msvcr90.dll!_crt_debugger_hook(int _Reserved=1632136)  Line 65   C

    msvcr90.dll!_invalid_parameter(const wchar_t * pszExpression=0x00000000, const wchar_t * pszFunction=0x00000000, const wchar_t * pszFile=0x00000000, unsigned int nLine=0, unsigned int pReserved=0)  Line 112 + 0x7 bytes   C++

    msvcr90.dll!_invalid_parameter_noinfo()  Line 125 + 0xc bytes   C++

    LizurdBot.dll!std::_Tree<std::_Tset_traits<BWAPI::Unit *,std::less<BWAPI::Unit *>,std::allocator<BWAPI::Unit *>,0> >::const_iterator::operator==(const std::_Tree<std::_Tset_traits<BWAPI::Unit *,std::less<BWAPI::Unit *>,std::allocator<BWAPI::Unit *>,0> >::const_iterator & _Right=0x00000000)  Line 308 + 0x2a bytes   C++

    LizurdBot.dll!std::_Tree<std::_Tset_traits<BWAPI::Unit *,std::less<BWAPI::Unit *>,std::allocator<BWAPI::Unit *>,0> >::const_iterator::operator!=(const std::_Tree<std::_Tset_traits<BWAPI::Unit *,std::less<BWAPI::Unit *>,std::allocator<BWAPI::Unit *>,0> >::const_iterator & _Right=0x00000000)  Line 316 + 0xc bytes   C++

    LizurdBot.dll!std::_Tree<std::_Tset_traits<BWAPI::Unit *,std::less<BWAPI::Unit *>,std::allocator<BWAPI::Unit *>,0> >::erase(std::_Tree<std::_Tset_traits<BWAPI::Unit *,std::less<BWAPI::Unit *>,std::allocator<BWAPI::Unit *>,0> >::const_iterator _First=0x1e006917, std::_Tree<std::_Tset_traits<BWAPI::Unit *,std::less<BWAPI::Unit *>,std::allocator<BWAPI::Unit *>,0> >::const_iterator _Last=0x8c000000)  Line 942 + 0xc bytes   C++

    LizurdBot.dll!std::_Tree<std::_Tset_traits<BWAPI::Unit *,std::less<BWAPI::Unit *>,std::allocator<BWAPI::Unit *>,0> >::operator=(const std::_Tree<std::_Tset_traits<BWAPI::Unit *,std::less<BWAPI::Unit *>,std::allocator<BWAPI::Unit *>,0> > & _Right={...})  Line 547 + 0x77 bytes   C++

    LizurdBot.dll!std::set<BWAPI::Unit *,std::less<BWAPI::Unit *>,std::allocator<BWAPI::Unit *> >::operator=(const std::set<BWAPI::Unit *,std::less<BWAPI::Unit *>,std::allocator<BWAPI::Unit *> > & __that=[42930776](...))  + 0x1a bytes   C++

    LizurdBot.dll!BWTA::load_resources()  Line 83   C++

    LizurdBot.dll!BWTA::readMap()  Line 88   C++


I am running on Win7 using VS2008 still
Any help would be much appreciated

Thanks
Kanamorf
User avatar
c3lm4ta
Posts: 8
Joined: Tue Dec 04, 2012 7:47 pm

Postby c3lm4ta » Wed Dec 05, 2012 12:29 am

Have you tried stepping through load_resources()? I don't have any experience with BWAPI yet, but I have a feeling some data is not being loaded correctly, or at all.
krasi0
Posts: 254
Joined: Thu Dec 18, 2008 12:42 pm

Postby krasi0 » Wed Dec 05, 2012 9:44 am

As I've advised you on IRC, I think you should try with one of the standard maps like Python or Lost temple and tell us what happens then.

Return to “BWAPI (wrappers in other languages / questions and announcements related to BWAPI itself)”

Who is online

Users browsing this forum: No registered users and 1 guest