Giter Site home page Giter Site logo

Comments (10)

davechurchill avatar davechurchill commented on July 24, 2024

AFAIK we haven't observed this. How big is the data you are trying to send back? And how fast is your network?

from starcraftaitournamentmanager.

krasi0 avatar krasi0 commented on July 24, 2024

from starcraftaitournamentmanager.

richard-kelly avatar richard-kelly commented on July 24, 2024

I've seen some rare Tournament Manager client crashes in the game start process that I thought might be related to our network setup and 30MB+ bot directories (the bot files were only partially copied over). But no we haven't had it hang while sending the replay.

Can you check to see in these cases if a replay is actually written out to (starcraft-dir)/maps/replays by the SC client? Any exceptions logged in the command line?

At the point where it looks like the TM client is stuck, it should be checking to see that the replay folder isn't empty. It checks every 5 seconds for 50 seconds (that should be logged... added to the todo!), and then if it can't find anything it should just send an empty replay folder after logging "Sending data to server...", which I'm not seeing in the log.

Sending the bot write dir and closing the SC client is supposed to happen next after this step.

from starcraftaitournamentmanager.

krasi0 avatar krasi0 commented on July 24, 2024

It's just happened again. Attaching a screenshot from the client in case that helps
clientcrash

from starcraftaitournamentmanager.

richard-kelly avatar richard-kelly commented on July 24, 2024

What are the contents of the replays folder?

from starcraftaitournamentmanager.

krasi0 avatar krasi0 commented on July 24, 2024

from starcraftaitournamentmanager.

richard-kelly avatar richard-kelly commented on July 24, 2024

OK I see the problem. It checks for the existence of a file inside the replays directory, which is assumed to be the subdirectory with the name of the bot, and then it checks to see if that subdirectory has a file. The exception is caused because of this other replay file in the replay folder, which is not expected. The exception is encountered every time and the loop never exits because the counter would be incremented after it tries to read the subdirectory. So two problems really.

This should be an easy fix. I'll try to push one later today. I don't know why StarCraft is writing out the extra replay file.

from starcraftaitournamentmanager.

krasi0 avatar krasi0 commented on July 24, 2024

from starcraftaitournamentmanager.

richard-kelly avatar richard-kelly commented on July 24, 2024

Fixed in both branches now. I tested by manually creating extra files in the replays folder. Let me know if it doesn't work!

from starcraftaitournamentmanager.

krasi0 avatar krasi0 commented on July 24, 2024

Alright, I've copied the changed code from Client.java. Let's see how it behaves overnight.
Thanks for the relatively fast reaction

from starcraftaitournamentmanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.