Hi,I found out that the game Merlin from Ace of Penguins crashes on start. I managed to isolate the issue to a XGetImage call on startup.
I think this is because of a race condition, since adding a sleep(1) just before the XGetImage removes the crash, at the cost of waiting an extra second on startup.
I don't know much about X11. Is there a way to wait until XGetImage has available whatever it is that it needs?
Thanks.