Hi,
KroArtem {l Wrote}:While you're discussing package problems here, M&MS doesn't work under ubuntu 11.04, it loads 200% of cpu, all ram and a bit of swap
MCMic {l Wrote}: ... , and the svn version freezes when I go into the level selection menu.
Where did you encounter this bug? If it's after clicking "Game", I think probably the game couldn't find level list, and there is a bug in Level::Level() so it runs into an infinite loop and add items to vector infinitely ...
MCMic {l Wrote}:And the game's not working on my computer, it segfaults after installation
MCMic {l Wrote}:About the crash of the 0.1.1 installed version, I did cmake, make and make install and gdb says it segfault in GetUserPath.
I searched in Internet and write some code about getting user path under Linux:
- {l Code}: {l Select All Code}
std::string GetUserPath(){
if(m_sUserPath[0]) return m_sUserPath; <--- (1)
#ifdef WIN32
...
#else
m_sUserPath=getenv("HOME"); <--- (2)
m_sUserPath+="/.meandmyshadow/";
mkdir(m_sUserPath.c_str(),0777);
#endif
return m_sUserPath;
}
I think either (1) or (2) can cause the bug, but I think std::string will initialized with empty string ("\0") automatically, and it works correctly under Windows ... and if getenv("HOME") returns NULL then (2) is buggy (again, I'm not familiar with Linux so I don't know whether getenv("HOME") is a correct code
)
MCMic {l Wrote}:I'm first trying to debug the crash of the svn version, it seems when I clic on the first level, the loop at line POASerializer.cpp:109 is infinite.
I have no idea about this because POASerializer.cpp:109 is while(!fin.eof()) in ReadNode and function LoadNodeFromFile calls ReadNode, after checking the file is actually open. Maybe there is hidden bug in ReadNode but I can't figure it out
KroArtem {l Wrote}:Which version did you try, 0.1, 0.1.1 or from SVN and what is displayed when you run it in terminal?
I'm using the version from SVN and I don't have anything in terminal. Is there any option to compile M&MS with debug support?
I'm sorry that currently there is no console output code in the game