Greetings all,
I am using Gentoo (2.6.14-gentoo-r5).
When I try to play Guild Wars using Cedega with pthreads enabled, I get the following
warning:
Code:
Your system requires the use of pthreads but the maximum system allowed stack size of 2052 kB may be too small for some games.
If you experience problems, try rerunning with "-use-pthreads no" which may help.
The game then continues to start as normal. I am able to login and create a character, and it downloads all the updates fine.
However, When I try to enter the game world, it does one of three things:
1. It will crash when loaded to 100%.
2. It will enter the game area, but then crash after it has loaded.
3. It will enter the game area, and I can play, but when I try to move to another area, the game will crash like above. (This has only happened twice)
When I try to start the game without pthreads, it will ask me if I want to start the game, then not doing anything (no crashes, no hangs, nothing).
I suspect that it is because of the small(?) thread stack size (Not the kernel stack size, I'm sure). I downloaded the source code to "LinuxThreads" (I don't use NPTL, but I am considering migrating, would this be best?) and had a little look through it. I found where STACK_SIZE is set in descr.h:
Code:
#ifndef STACK_SIZE
#define STACK_SIZE (2 * 1024 * 1024)
#endif
Although I think that I can manage the change (Although I think I need to change it in glibc and recompile that (Could someone clear that up for me?)), I would like some more concreate information (i.e How much to increase it) and possibly a short guide on how best to go about this.
Any help is much appreciated.
Cheers,
Reth.