New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Game Crashes with exception #13
Comments
Thanks for reporting! This seems to be a bug in libGDX. I recently added the buttons that give you control over the enemy turn speed and the ability to skip it. Maybe the manipulation of the UI can cause this crash if it happens while rendering is in progress. It might also be caused by the changing texture of the speed button. Do you remember if you pressed that button when the crash happened? |
Interesting! Thanks for the quick response. I don't recall changing the speed, but I can't rule it out 100% sadly. I will observe it more closely if the crash happens again. |
I observed it again, same callstack after Possibly an additional related bug: I think restoring from the saved game allowed me to skip the enemy turn. |
I just observed it as well. I will try to re-do the UI change in a different way and see if the crash still happens. |
When the exception happens, only the UI thread crashes. The bots still do their turns and when they are done, an autosave happens. It would be better if all threads ended in case of an exception. Not sure if there is an easy way to do this. |
Ok, if just the animation is missing, but everything is saved and resumed correctly then it is not a big issue to me, especially if it only happens in case of an exception which usually will be rare. Thanks for the investigation! |
Changing from one set of buttons to the other was triggered by a change of the game state which was triggered by the bot AI thread. It looks like the UI classes from libGDX are not thread-safe. When the button change happened at the same time as the rendering thread tried to render the UI, this exception (and possibly others) could occur. |
after ending my turn the game crashed with the following call stack (including a bit of context leading up to the crash):
Autosafe worked, so no progress was lost.
I am running with ./gradlew desktop:run on commit 329d372 in linux. I don't have android SDK installed but I don't think this should be related. usually the game just fails to start first try and complains about the missing SDK and the second try works flawlessly.
The text was updated successfully, but these errors were encountered: