UFO:Alien Invasion

Technical support => Feature Requests => Topic started by: weldroid on June 27, 2007, 10:31:25 am

Title: Assertion failed under win2k
Post by: weldroid on June 27, 2007, 10:31:25 am
/src/client/cl_console.c
line: 327
expression: Path

HP NC8000 Notebook, 512 MB RAM, 1,6 Mhz Pentium M, Windows2000

Is this a known issue? If not, can I provide more detailed information?

cheers,
Weldroid
Title: Assertion failed under win2k
Post by: Mattn on June 27, 2007, 10:35:41 am
which version are you using?
Title: Assertion failed under win2k
Post by: weldroid on June 27, 2007, 12:36:23 pm
Thanks for the quick answer!  :)

I've tried both 2.1.1 and 2.2 beta, both do the same.
Title: Assertion failed under win2k
Post by: oeystein on July 15, 2007, 08:56:49 pm
I think I've located this bug.

ufo.exe!Con_SaveConsoleHistory(const char * path=0x00000000) ufo.exe!CL_Shutdown()  
ufo.exe!Sys_Error(const char * error=0x005d2f68, ...)
ufo.exe!FixWorkingDirectory()  Line 875 + 0xa bytes
ufo.exe!WinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x00161f3f, int nCmdShow=1)  
 ufo.exe!__tmainCRTStartup()  Line 578 + 0x35 bytes   C
 ufo.exe!WinMainCRTStartup()  Line 403   C

It occurs when the working dir path is too long and sys_error is called.
Then Con_SaveConsoleHistory(FS_Gamedir()), but FS_Gamedir returns NULL, because "fs_searchpaths" is a null reference.
Title: Assertion failed under win2k
Post by: Mattn on July 15, 2007, 09:02:29 pm
where did you install ufo:ai into? and where's your application data located?
Title: Assertion failed under win2k
Post by: oeystein on July 15, 2007, 09:06:03 pm
I've placed breakpoints at the places in files.c where fs_searchpaths is assigned, but they're not hit before FS_Gamedir is called. I'm pretty new to this code so I don't know how to resolve this.
Title: Assertion failed under win2k
Post by: oeystein on July 15, 2007, 09:11:25 pm
C:\Documents and Settings\Øystein\Mine dokumenter\Visual Studio Projects\ufo_8\debug is the directory where ufo is ran from. I haven't installed any gamedata yet, only .exe and .dll's.
Title: Assertion failed under win2k
Post by: Kamu on July 16, 2007, 11:54:08 am
Could it possibly be the 'O' character in your name causing troubles?
Title: Assertion failed under win2k
Post by: oeystein on July 16, 2007, 06:38:12 pm
Maybe, but as far as I found out, fs_searchpaths isn't assigned before the error occurs and so the logging operations fail.