robocode-dev / tank-royale

Git repository for Robocode Tank Royale
Apache License 2.0
122 stars 23 forks source link

New version 0.21.0 freezes starting battle #75

Closed martinezpenya closed 8 months ago

martinezpenya commented 9 months ago

Describe the bug New version 0.21.0 freezes starting battle

To Reproduce Launch 0.21.0 version gui jar from Kubuntu 22.04LTS, go to Battle, Start Battle... the app freezes, you can't select bots from samples bot and boot them. I have to close the app by the force. No error or debug information on console

Error info No error shown

Expected behavior Select bots, boot them and start battle, with version 0.19.3 it works very well.

Screenshots non applicable

Desktop (please complete the following information):

Java info: openjdk 19.0.2 2023-01-17 OpenJDK Runtime Environment (build 19.0.2+7-Ubuntu-0ubuntu322.04) OpenJDK 64-Bit Server VM (build 19.0.2+7-Ubuntu-0ubuntu322.04, mixed mode, sharing)

Additional context nothing exceptional

flemming-n-larsen commented 9 months ago

@martinezpenya Thank you for reporting this. I will have a look ASAP.

martinezpenya commented 9 months ago

If I can help you in any way, let me know. Launching in debug mode, or get logs...

flemming-n-larsen commented 9 months ago

@martinezpenya Thanks. I have made a temporary workaround and uploaded a new GUI Application I basically uncommented the code for the BusyPointer with activate and deactivate, which causes the issue somehow: https://github.com/robocode-dev/tank-royale/blob/123a495fd28a4d5f33309dbcb58903dec1c1548d/gui-app/src/main/kotlin/dev/robocode/tankroyale/gui/util/GuiTask.kt#L9

Now I need to fix this issue so it works well on both Windows, Linux (Ubuntu), and Mac OS. I think I am going to rewrite the way to handle the busy pointer. Then I will make a new release with the fix after testing this on all the platforms. 🙂

martinezpenya commented 9 months ago

Thank you, I can confirm you that 21.0.1.jar works well on kubuntu 22.04 LTS. Thank you!