Skip to content

Battle not starting on Windows 11 and 10 after installing docker linux subsystem #119

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

Closed
martinezpenya opened this issue Nov 28, 2024 · 13 comments
Assignees

Comments

@martinezpenya
Copy link
Contributor

Describe the bug
I'm using robocode tankroyale in my classroom in windows and linux. Now my students with windows 10 and 11 can't start battle.
They recently installed the docker with linux subsystem.

To Reproduce
Steps to reproduce the behavior:

  1. Start robocode
  2. Add bots
  3. Start battle
  4. nothing happens

Error info
no error

Expected behavior
start battle with selected bots

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Windows 11 and 10

Java info:

  • Version: some studets with 23, other 18...
  • Vendor: OpenJDK

Additional context
We tried with 24.4 and 26.1

@flemming-n-larsen
Copy link
Contributor

@martinezpenya Thank you for reporting this issue.

Is the problem occurring outside Docker or within Docker? Or is is "just" happening after having installed Docker?

@martinezpenya
Copy link
Contributor Author

It's happening after having installed Docker.
Before this it works great.

@flemming-n-larsen
Copy link
Contributor

OK. This should be easy to reproduce. I will have a look. 👍

@flemming-n-larsen flemming-n-larsen added the in progress Issue is in progress label Nov 30, 2024
@flemming-n-larsen
Copy link
Contributor

@martinezpenya I have just installed Docker Desktop on Windows 11 running on WSL 2, and I can reproduce the issue.
I don't know what causes it yet, but I will find out.

@martinezpenya
Copy link
Contributor Author

You're Super! thank you for your time!

@flemming-n-larsen
Copy link
Contributor

I discovered, that this "only" occurs for the Java bots, but not the .Net bots.
And the issue is within the Bot API for Java, when a bot needs to send a message to the server via its socket. The first message is "ready" when the bot is about to participate in the battle. The server waits for the signal from the bots, but times out as it does not receive a "ready" signal from the bots.

@martinezpenya
Copy link
Contributor Author

If I can help you in any way, let mi know.

@flemming-n-larsen
Copy link
Contributor

I found the bug in the Bot API for Java, and fixed it.
The fix will be available with the next version of Robocode coming soon. 😊

@flemming-n-larsen
Copy link
Contributor

Fixed with version 0.27.0, just released.

@flemming-n-larsen
Copy link
Contributor

@martinezpenya Can you confirm the fix work for your students as well?

@martinezpenya
Copy link
Contributor Author

Yes of course I will... My next class with them is on thursday, i'll come back and confirm that 0.27.0 solves the issue. Thank you so much!.

@martinezpenya
Copy link
Contributor Author

Hi @flemming-n-larsen everything works like a charm again. Thank you for your time.
Is there any way to support your work? buy-me-a-coffe or something like this?
Thank you!

@flemming-n-larsen
Copy link
Contributor

@martinezpenya I am very happy to hear that! Thank you for reporting back! 😊

I haven't thought of buy-me-a-coffe. I will consider that.
Currently, I make Robocode for fun, and make sure to fix any issue that arise.

@flemming-n-larsen flemming-n-larsen removed the in progress Issue is in progress label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants