Random lockup

http://pastebin.ca/2004377

 

There's my debug file. After playing the latest "beta" patch for more than 15 minutes or about, the game will just lock up. I have to open up task manager to terminate the game and restart. It is also strange in that sound will continue to play normally in game but you cannot do anything or open any menus, everything but sound is locked up.

2,619 views 4 replies
Reply #1 Top

This is caused by a critical section deadlock.

Here's what causes it:

Thread A is waiting for a resource locked by thread B.

Thread B is waiting for a resource locked by thread A.

It's something I've been trying to fix with the AI this week.  It's actually quite tough because the particular deadlock is related to what seems like a simple call World::GetRandomEmptyTile().

The EmptyTile is the issue.  Because to determine whether it's "empty" requires going and looking at a lot of stuff.

I wrote a much simpler version of the function that I hope won't have the problem.  But like I said, it's proving a lot tougher than I thought it would to fix.

 

Reply #2 Top

Thank you, i'm glad you're aware of the issue. Tremendously fun game, I just want to be able to play it, you know? I tried continuing the game, which I usually can by rebooting, and got a plain old CTD a little while later, not the lockup from before.

 

http://pastebin.ca/2004409

 

Continuation of the previous debug so most of it is the same up until the end of the file I believe.

Reply #3 Top

I know how you feel. When it locks up like that in the debugger it's still game over too.