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
Unable to join User hosted games #2192
Comments
@lolydaggle I love example videos! Thanks for making it 👍 |
It was a little hard to tell because the first 20 seconds or so were non-HD for me, but it appeared the first (successful) connection was to a bot host (Bot73_NJ_USA), while the second (failed) connection was to a user host (fernaffen). The bot had 0 players connected, while fernaffen had 2 players connected (the maximum for Blue vs. Gray). I wonder if it has anything to do with the maximum number of players reached? Let me try to repro that scenario locally. |
So that worked fine for me, both with and without a lobby. 😞 |
@RoiEXLab Yes, I can connect to bots, but not to player hosted. |
@ssoloff I tried it again with a different map and it still showed the same. |
@lolydaggle Is this the case for all player hosted games? |
@RoiEXLab Yes, I can connect to all bots. It doesn't seem to be an issue with versions, as when I tried it with the person I usually play with, we both had the same version. It was working fine for a while, but suddenly stopped working after a couple of weeks. |
I was looking around the client connection code to see if there is any additional logging we can enable in 1.9.0.0.3635, but I didn't see anything substantive. However, it would be useful if we could get a stack trace to see where exactly the code is hung. We could do that pretty simply using the @lolydaggle Do you happen to have the Java 8 Developer Kit installed? If not, would you be willing to install it? You can tell if you have a JDK installed by looking at your Java installation folder (typically Once a JDK is available, you can use
And then using
|
@lolydaggle Great! I outlined the steps you need to follow below. Open command promptFirst, you'll need to open a command prompt. See here for various ways to do that if you're not sure how. The command prompt should open to your home directory (e.g. Set PATHNext, you'll need to set the path Windows uses to find executable files to include the JDK. Type the following in the command prompt and press ENTER:
(You can also copy-paste the above command directly into the command prompt window. Note, however, that you can't use CTRL+V to paste in a command prompt. Instead, right click your mouse in the command prompt window and select Paste on the context menu that pops up.) Reproduce TripleA bugStart TripleA and get it into the state where it's hung. Get ID of hung TripleA processBack in your command window, run the
The output from your command will most assuredly be different. However, you should have both a You'll want to write down the number in front of the Get stack traces of hung TripleA processFinally, you want to run the
As I noted in my previous comment, the letter in You should have seen a few screenfulls of information fly by when you did that. If so, good. If not, verify that you typed the command correctly and used the correct process ID. Now, you're going to re-run the command and save all that output to a file. So, type the same command you just ran (or press the up arrow to bring back the previous command you typed), but before you press ENTER, add the following:
Again, replace If you had multiple
Attach stack traces to GitHub issueYou should now have one or more |
@ssoloff |
Like a champ. 👍 I see the thread that's hanging. I'll try to dig into it later tonight or tomorrow. |
@lolydaggle I took a closer look at the stack traces you provided and believe we're closer to understanding what's going on. Here's the stack trace for the thread that's hung:
First, the root cause of your problem is definitely a network connectivity issue. From the above stack trace, execution passed through What we really need to do is get more information why you can't connect to these hosts. Hopefully, the error message that should be displayed would actually help diagnose that problem. Since you can't see this information in 1.9.0.0.3635 due to the above bug, I would recommend that you install the latest pre-release version and reproduce the problem there. Then you can report the network error message, and we can try to help you figure out why you can't connect to these hosts. You should be able to install a second instance of TripleA as long as you choose a different installation folder. If you don't feel comfortable doing that, you can create a new user on your machine (e.g. for testing purposes), and install the latest TripleA as that user. That way any changes the new version may make to your settings will be isolated from your original 3635 installation. |
@lolydaggle I'm by no means a networking expert, but my guess is that there is a firewall somewhere between you and the game host blocking the connection. There are some things you can do to try to track down the firewall that's blocking you. Once you know the offending firewall, you may or may not be able to do something about it. An example of "may" would be your own firewall blocking outbound traffic to a range of IPs (typically seen in parental controls). An example of "may not" would be that you live in a country where the government is selectively blocking traffic. 😄 In order to do anything, you'll need to get the IP address and port that the game host is using. You can do this by following a similar procedure to what you did above with
where you replace 7777 with the process ID you got from This should display a few lines of output. You're looking for the lines First you want to check if you can ping the host, so type the following in your command prompt:
where you replace 1.2.3.4 with the value of the
This command could take a few minutes to run. If you start seeing a bunch of lines with asterisks ( To verify that the connectivity issue has nothing to do with TripleA, you can try to Telnet to the host manually. The Telnet client isn't installed in Windows by default, so you'll need to go to Control Panel > Programs and click Turn Windows features on or off. When the Windows Features dialog opens, scroll down to Telnet Client, check it, and press OK. Go back to your command prompt and type:
where you replace 8888 with the value of the The final thing you can do is also, unfortunately, the most complicated. It involves capturing network traffic while you attempt to connect to the game host so you can see the packets that are sent back from the firewall that is refusing the connection. If the firewall has been configured to respond with On Windows, the easiest tool to use to do this is Wireshark. Unfortunately, trying to explain how to configure Wireshark and run it to do what I described above would probably quadruple the size of this already-long post. 😄 If you want to give it a shot, you can find many tutorials (including videos) online describing how to use Wireshark. However, I can outline the basic steps you would need to follow:
If you can get a capture of that scenario, feel free to zip it up and post it here, and I'll take a look at it. |
@ssoloff the 'host' should be the lobby, right? @lolydaggle Wireshark can be a bit difficult, there is a telnet on windows, can you let us know if you can establish a telnet connection to: 45.79.144.53 port 3304 (https://www.youtube.com/watch?v=e_qrl04H8Bk) |
I don't believe so. When joining a game from the lobby, a new TripleA process is launched and the I just connected to both a bot-hosted and a user-hosted game from the lobby. For the bot-hosted game, the |
Ah, indeed my mistake, I was too focused on " game through the play online option" |
@prastle This issue reminds me of the issue we have with scousemart's bot. However I made the UI non-blocking recently, so the window shouldn't freeze any longer. Closing this |
GameRunner-9704.txt
My Operating System:
Windows 10 Pro
TripleA version:
1.9.0.0.3635
Map:
n/a
Can you describe how to trigger the error? (eg: what sequence of actions will recreate it?)
https://www.youtube.com/watch?v=1TFtvJcVI5A
When trying to join a user hosted game through the play online option, it opens the main menu window and won't go anywhere from there. It is un-interactable, and can only be closed through the task manager.
Do you have the exact error text?
no, unsure if there is
Instead of this error, what should have happened?
Go to the select screen for teams and such.
Any additional information that may help:
It was suggested that it might be a network problem, and if it was then if I waited long enough an error console would pop up. I left it open for a while, around 20 minutes or so and no console popped up.
The text was updated successfully, but these errors were encountered: