Andrettin / Wyrmsun

Strategy game based on history, mythology and fiction
http://andrettin.github.io/
GNU General Public License v2.0
307 stars 48 forks source link

Game freezes at different points of the game #47

Closed KroArtem closed 8 years ago

KroArtem commented 8 years ago

Wyrmsun & Wyrmgus the latest. When I try to load a new game, it freezes, Sometimes on the main menu, sometimes after loading a new game, sometimes when I want to choose quest. There is no valuable output in terminal. This problem was also mentioned here: http://forum.freegamedev.net/viewtopic.php?f=22&t=6607&start=25#p67082

Removing all old data files (autosaves and saves) didn't help.

a-detiste commented 8 years ago

Got this one too with the Steam runtime, but not with ./run.sh

Andrettin commented 8 years ago

Thank you for the report! It seems to be a Linux-only issue, which is why it didn't appear for me during testing.

A similar report reads thus:

"The game tightly hangs randomly in a few seconds after start, without depending on other actions with it. Firstly, the sound disappears (maybe the problem with ALSA?), but the ingame cursor is still moving. After clicking on any button the game hangs finally. Only 'kill -KILL ' helps.

In addition if in fullscreen mode, the X session stays uncleared globally after game crash.

Debian Linux x86_64, GeForce GT 730, nvidia driver ver 352.55 (from SteamOS repo). All other steam games work fine."

If it is indeed a sound-related issue, then it could be due to this commit: https://github.com/Andrettin/Wyrmgus/commit/3c04f605c01d6b8d3d4391ea7a1bd4c457579acd

Andrettin commented 8 years ago

I reverted that commit here: https://github.com/Andrettin/Wyrmgus/commit/51f38ed91beb28878a404f7b076ae8d35de4ae79

Could you let me know if the game works fine with the new commit?

Andrettin commented 8 years ago

I unfortunately could not reproduce the issue with my Ubuntu 12.02 virtual machine.

KroArtem commented 8 years ago

Yup, it works with reverted changes.

Andrettin commented 8 years ago

Thanks for letting me know :)

marcelofg55 sent me a fix to the issue, which I've now implemented: https://github.com/Andrettin/Wyrmgus/commit/408eba40e453a558f84d614d10e51828c8325c83

Andrettin commented 8 years ago

Confirmed fixed with marcelofg's patch.