Built 0 A.D. on Windows 7 using MVS2010 for the first time in order to verify the fix mentioned in http://trac.wildfiregames.com/ticket/2767
At startup it displayed a "mod" screen. Clicking to continue resulting in the following error...
Function call failed: return value was -1 (Function failed (no details available))
Location: wsdl.cpp:260 (wnd_CreateWindow)
Call stack:
wnd_CreateWindow (wsdl.cpp:260)
w = (unavailable)
h = 1080 (0x00000438)
wc =
style = 32 (0x00000020)
lpfnWndProc = 0x00262BF0 -> (OnMessage)
cbClsExtra = 0 (0x00000000)
cbWndExtra = 0 (0x00000000)
hInstance = 0x00020000 (..)
hIcon = 0x00000000
hCursor = 0x00000000
hbrBackground = 0x00000000
lpszMenuName = 0x00000000
lpszClassName = 0x0034FDC8 -> "WSDL{55752F43-0241-492C-8648-C7243397FCE4}"
hInst = 0x00020000 (see above)
class_atom = 0 (0x0000)
SDL_SetVideoMode (wsdl.cpp:398)
w = (unavailable)
h = (unavailable)
bpp = (unavailable)
flags = (unavailable)
screen = { format = 0x003AC0A0 -> { BitsPerPixel = [8] { 32 (0x20), 0 (0x00), 0 (0x00), 0 (0x00), 0 (0x00), 0 (0x00), 0 (0x00), 0 (0x00) } }, w = 1920 (0x00000780), h = 1080 (0x00000438) }
format = { BitsPerPixel = 32 (0x20) }
s =
m_lastError = 0 (0x00000000)
rect =
left = 272830674 (0x104310D2)
top = 0 (0x00000000)
right = 272830674 (0x104310D2)
bottom = 272830677 (0x104310D5)
swp_flags = 272830674 (0x104310D2)
buf = [100]
1
0
41360
4886
60340
125 ('}')
57379
30657
60460
125 ('}')
41368
4886 ...
context = [2048]
190 (0xBE)
40 (0x28)
7 (0x07)
81 (0x51)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
213 (0xD5)
16 (0x10)
67 (0x43)
16 (0x10)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00) ...
CVideoMode::SetVideoMode (videomode.cpp:155)
this = (unavailable)
w = 1920 (0x00000780)
h = 1080 (0x00000438)
bpp = 32 (0x00000020)
fullscreen = true
CVideoMode::InitSDL (videomode.cpp:253)
this = (unavailable)
bpp = 32 (0x00000020)
h = 1080 (0x00000438)
w = 32 (0x00000020)
InitGraphics (gamesetup.cpp:977)
args = (unavailable)
flags = (unavailable)
profilerGPUEnable = false
setup_vmode = (bool)0xAB
context = [2048]
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00) ...
buf = "ᝌ"
context = [2048]
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00) ...
context = [2048]
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00)
0 (0x00) ...
rq =
mContext = 0x007DEEC4 -> (JSContext)
setup_gui = (bool)0xB8
data =
{
(js::ValueOperations<JS::Rooted<JS::Value> >)
}
ptr =
data =
asBits = 8629425691005288576 (0x77C1E0F200000080)
s = { payload =
i32 = 128 (0x00000080)
u32 = 128 (0x00000080)
boo = 128 (0x00000080)
str = 0x00000080
obj = 0x00000080
ptr = 0x00000080
why = 128
word = 128 (0x00000080)
uintptr = 128 (0x00000080)
, tag = 2009194738 }
asDouble = 7.37907e+268 (0x77C1E0F200000080)
asPtr = 0x00000080
scriptInterface =
px = 0x00000046
pn =
pi_ = 0x00AB0358 ->
use_count_ = 131119 (0x0002002F)
weak_count_ = 348617040 (0x14C77950)
e = 0x77C1E0F2 ->
(exception)
m_msg = 0x850F080C -> (unavailable - internal error)
RunGameOrAtlas (main.cpp:508)
argc = 1 (0x00000001)
argv = (unavailable)
args =
m_Args = (unsupported vector<pair<CStr8,CStr8> >)
m_Arg0 =
path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
separator = 92 ('\')
res = 0 (0x0000000000000000)
paths =
m_root =
path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
separator = 10
m_rdata =
path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
separator = 60336
m_gameData =
path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
separator = 348
m_userData =
path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
separator = 36481
m_config =
path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
separator = 65534
m_cache =
path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
separator = 60432
m_logs =
path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
separator = 60426
replay =
m_Stream = 0x77C1E38C -> (basic_istream<char,char_traits<char> >)
mod =
path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
separator = 65535
zip =
path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
separator = 40553
mods = (unsupported vector<CStr8 >)
paths =
m_root =
path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
separator = 10
m_rdata =
path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
separator = 60336
m_gameData =
path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
separator = 348
m_userData =
path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
separator = 36481
m_config =
path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
separator = 65534
m_cache =
path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
separator = 60432
m_logs =
path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
separator = 60426
builder =
m_VFS =
px = 0x005DEC08 -> (IVFS)
pn =
pi_ = 0x00000001
m_Files = (unsupported vector<Path >)
m_TempDir =
path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
separator = 0
m_NumBaseMods = 8256488 (0x007DFBE8)
i = 8256384 (0x007DFB80)
main (main.cpp:554)
argc = 1 (0x00000001)
argv = 0x00AE7B10 -> 0x005DEBB8 -> "C:\play0ad\build\workspaces\vc2010\..\..\..\binaries\system\pyrogenesis.exe"
wmain (wseh.cpp:380)
argc = 1 (0x00000001)
argv = 0x005DA4B8 -> 0x005DA4C0 -> "C:\play0ad\build\workspaces\vc2010\..\..\..\binaries\system\pyrogenesis.exe"
utf8_argv = (unsupported vector<char * >)
ret = 6137016 (0x005DA4B8)
utf8 = (unsupported basic_string<char,char_traits<char> >)
CallStartupWithinTryBlock (wseh.cpp:397)
ret = 0 (0x00000000)
RtlInitializeExceptionChain (:0)
RtlInitializeExceptionChain (:0)
errno = 0 (No error reported here)
OS error = 87 (The parameter is incorrect.)
Duplicate. This issue has been mentioned before. As a workaround you should enable 0ad, save the configuration, start and close the crash window. Restart the game again, the main menu should show up.