project-navigation
Personal tools

Author Topic: Assertion failed under win2k  (Read 3478 times)

weldroid

  • Guest
Assertion failed under win2k
« 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

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Assertion failed under win2k
« Reply #1 on: June 27, 2007, 10:35:41 am »
which version are you using?

weldroid

  • Guest
Assertion failed under win2k
« Reply #2 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.

oeystein

  • Guest
Assertion failed under win2k
« Reply #3 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.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Assertion failed under win2k
« Reply #4 on: July 15, 2007, 09:02:29 pm »
where did you install ufo:ai into? and where's your application data located?

oeystein

  • Guest
Assertion failed under win2k
« Reply #5 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.

oeystein

  • Guest
Assertion failed under win2k
« Reply #6 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.

Kamu

  • Guest
Assertion failed under win2k
« Reply #7 on: July 16, 2007, 11:54:08 am »
Could it possibly be the 'O' character in your name causing troubles?

oeystein

  • Guest
Assertion failed under win2k
« Reply #8 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.