Jump to content

host can't connect to host


alre
 Share

Recommended Posts

yesterday I was hosting a game, when, not long before action would start, all players started to lose connection, and I read a strange error message that said that I couldn't connect to the host (I was hosting). the game said that I had lost connection to the server, and I also couldn't log to the lobby. Actually, I also lost internet connection for a while, which seems to be the obvious culprit.

Anyway, today I was playing in a game @Talenters was hosting, when the same thing happened. Talenters however, did not lose internet connection and was still in the lobby. Noone could rejoin the game though, and my 0AD even crashed while trying.

Why would the game say to the host that he lost connection to the server?

the forum won't let me upload the html log files.

crashlog.dmp crashlog.txt crashlog.dmp crashlog.txt crashlog.dmp crashlog.txt

Link to comment
Share on other sites

Unhandled exception thrown: read access violation.
this->m_ClientTurnManager was nullptr.

 	pyrogenesis.exe!CNetClient::HandleMessage(CNetMessage * message) Line 563	C++
 	pyrogenesis.exe!CNetClientSession::ProcessPolledMessages() Line 197	C++
 	pyrogenesis.exe!CNetClient::Poll() Line 361	C++
 	pyrogenesis.exe!Frame() Line 422	C++
 	pyrogenesis.exe!RunGameOrAtlas(int argc, const char * * argv) Line 701	C++
 	pyrogenesis.exe!SDL_main(int argc, char * * argv) Line 753	C++
 	pyrogenesis.exe!main_getcmdline() Line 74	C
>	[Inline Frame] pyrogenesis.exe!invoke_main() Line 90	C++
 	pyrogenesis.exe!__scrt_common_main_seh() Line 288	C++
 	pyrogenesis.exe!CallStartupWithinTryBlock() Line 365	C++
 	kernel32.dll!76b6fa29()	Unknown
 	kernel32.dll![Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]	Unknown
 	ntdll.dll!77467a9e()	Unknown
 	ntdll.dll!77467a6e()	Unknown

Second crashlog

Unhandled exception thrown: read access violation.
this->m_ClientTurnManager was nullptr.

 	pyrogenesis.exe!CNetClient::HandleMessage(CNetMessage * message) Line 563	C++
 	pyrogenesis.exe!CNetClientSession::ProcessPolledMessages() Line 197	C++
 	pyrogenesis.exe!CNetClient::Poll() Line 361	C++
 	pyrogenesis.exe!Frame() Line 422	C++
 	pyrogenesis.exe!RunGameOrAtlas(int argc, const char * * argv) Line 701	C++
 	pyrogenesis.exe!SDL_main(int argc, char * * argv) Line 753	C++
 	pyrogenesis.exe!main_getcmdline() Line 74	C
>	[Inline Frame] pyrogenesis.exe!invoke_main() Line 90	C++
 	pyrogenesis.exe!__scrt_common_main_seh() Line 288	C++
 	pyrogenesis.exe!CallStartupWithinTryBlock() Line 365	C++
 	kernel32.dll!76b6fa29()	Unknown
 	kernel32.dll![Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]	Unknown
 	ntdll.dll!77467a9e()	Unknown
 	ntdll.dll!77467a6e()	Unknown

The line in question

	if (message->GetType() == NMT_FILE_TRANSFER_REQUEST)
	{
		CFileTransferRequestMessage* reqMessage = static_cast<CFileTransferRequestMessage*>(message);

		// TODO: we should support different transfer request types, instead of assuming
		// it's always requesting the simulation state

		std::stringstream stream;

->		LOGMESSAGERENDER("Serializing game at turn %u for rejoining player", m_ClientTurnManager->GetCurrentTurn());
		u32 turn = to_le32(m_ClientTurnManager->GetCurrentTurn());
		stream.write((char*)&turn, sizeof(turn));

		bool ok = m_Game->GetSimulation2()->SerializeState(stream);
		ENSURE(ok);

		// Compress the content with zlib to save bandwidth
		// (TODO: if this is still too large, compressing with e.g. LZMA works much better)
		std::string compressed;
		CompressZLib(stream.str(), compressed, true);

		m_Session->GetFileTransferer().StartResponse(reqMessage->m_RequestID, compressed);

		return true;
	}

I suppose we're missing a check for m_ClientTurnManager. @wraitii would know I suppose.

 

StunClient: Using STUN server lobby.wildfiregames.com:3478
StunClient: external IP address is ---.---.---.---:----
NetClient: connecting to server at ---.---.---.---:----
Net client: Connected to ---.---.---.---:----
Messaggio di rete: ({status:"connected", type:"netstatus"})
Net client: Received message CSrvHandshakeMessage { m_Magic: 1349714239, m_ProtocolVersion: 16842776, m_SoftwareVersion: 16842776 } of size 15 from server
Net client: Received message CSrvHandshakeResponseMessage { m_UseProtocolVersion: 16842776, m_Flags: 1, m_GUID: CE004EBBD8A5CE03 } of size 31 from server
Messaggio di rete: ({meanRTT:429, warntype:"server-latency", type:"netwarn"})
Net client: Received message CAuthenticateMessage { m_Name: , m_Password: [secret], m_ControllerSecret: [secret] } of size 13 from server
Net client: Received message CAuthenticateResultMessage { m_Code: 1, m_HostID: 22, m_IsController: 0, m_Message: Logged in } of size 30 from server
Net: Authentication result: host=22, Logged in
Net client: Received message CPlayerAssignmentMessage { m_Hosts: { { m_GUID: 00C51875BADFB944, m_Name: Bakixeddu (1417), m_PlayerID: 1, m_Status: 0 }, { m_GUID: CE004EBBD8A5CE03, m_Name: alre (1454), m_PlayerID: 8, m_Status: 0 }, { m_GUID: F7B5EF56A8DF2F37, m_Name: Cedric_O (1548), m_PlayerID: 7, m_Status: 0 } } } of size 159 from server
Messaggio di rete: ({rejoining:true, status:"authenticated", type:"netstatus"})
Messaggio di rete: ({newAssignments:{'00C51875BADFB944':{status:0, player:1, name:"Bakixeddu (1417)"}, CE004EBBD8A5CE03:{status:0, player:8, name:"alre (1454)"}, F7B5EF56A8DF2F37:{status:0, player:7, name:"Cedric_O (1548)"}}, type:"players"})
Net client: Received message CPlayerAssignmentMessage { m_Hosts: { { m_GUID: 00C51875BADFB944, m_Name: Bakixeddu (1417), m_PlayerID: 1, m_Status: 0 }, { m_GUID: CE004EBBD8A5CE03, m_Name: alre (1454), m_PlayerID: 8, m_Status: 0 } } } of size 105 from server
Messaggio di rete: ({newAssignments:{'00C51875BADFB944':{status:0, player:1, name:"Bakixeddu (1417)"}, CE004EBBD8A5CE03:{status:0, player:8, name:"alre (1454)"}}, type:"players"})
Net client: Received message CPlayerAssignmentMessage { m_Hosts: { { m_GUID: 00C51875BADFB944, m_Name: Bakixeddu (1417), m_PlayerID: 1, m_Status: 0 }, { m_GUID: 0ACC05EBF77D0A0E, m_Name: ali_96 (1473), m_PlayerID: 4294967295, m_Status: 0 }, { m_GUID: CE004EBBD8A5CE03, m_Name: alre (1454), m_PlayerID: 8, m_Status: 0 } } } of size 155 from server
Messaggio di rete: ({newAssignments:{'00C51875BADFB944':{status:0, player:1, name:"Bakixeddu (1417)"}, '0ACC05EBF77D0A0E':{status:0, player:-1, name:"ali_96 (1473)"}, CE004EBBD8A5CE03:{status:0, player:8, name:"alre (1454)"}}, type:"players"})
Net client: Received message CPlayerAssignmentMessage { m_Hosts: { { m_GUID: 00C51875BADFB944, m_Name: Bakixeddu (1417), m_PlayerID: 1, m_Status: 0 }, { m_GUID: 0ACC05EBF77D0A0E, m_Name: ali_96 (1473), m_PlayerID: 4294967295, m_Status: 0 }, { m_GUID: CE004EBBD8A5CE03, m_Name: alre (1454), m_PlayerID: 8, m_Status: 0 }, { m_GUID: F14221D29F75D51A, m_Name: Gladiator_7050 (1352), m_PlayerID: 4, m_Status: 0 } } } of size 221 from server
Messaggio di rete: ({newAssignments:{'00C51875BADFB944':{status:0, player:1, name:"Bakixeddu (1417)"}, '0ACC05EBF77D0A0E':{status:0, player:-1, name:"ali_96 (1473)"}, CE004EBBD8A5CE03:{status:0, player:8, name:"alre (1454)"}, F14221D29F75D51A:{status:0, player:4, name:"Gladiator_7050 (1352)"}}, type:"players"})
Net client: Received message CPlayerAssignmentMessage { m_Hosts: { { m_GUID: 00C51875BADFB944, m_Name: Bakixeddu (1417), m_PlayerID: 1, m_Status: 0 }, { m_GUID: 0ACC05EBF77D0A0E, m_Name: ali_96 (1473), m_PlayerID: 4294967295, m_Status: 0 }, { m_GUID: 1E3F435B702950A5, m_Name: Cedric_O (1548), m_PlayerID: 7, m_Status: 0 }, { m_GUID: CE004EBBD8A5CE03, m_Name: alre (1454), m_PlayerID: 8, m_Status: 0 }, { m_GUID: F14221D29F75D51A, m_Name: Gladiator_7050 (1352), m_PlayerID: 4, m_Status: 0 } } } of size 275 from server
Messaggio di rete: ({newAssignments:{'00C51875BADFB944':{status:0, player:1, name:"Bakixeddu (1417)"}, '0ACC05EBF77D0A0E':{status:0, player:-1, name:"ali_96 (1473)"}, '1E3F435B702950A5':{status:0, player:7, name:"Cedric_O (1548)"}, CE004EBBD8A5CE03:{status:0, player:8, name:"alre (1454)"}, F14221D29F75D51A:{status:0, player:4, name:"Gladiator_7050 (1352)"}}, type:"players"})
Net client: Received message CPlayerAssignmentMessage { m_Hosts: { { m_GUID: 00C51875BADFB944, m_Name: Bakixeddu (1417), m_PlayerID: 1, m_Status: 0 }, { m_GUID: 1E3F435B702950A5, m_Name: Cedric_O (1548), m_PlayerID: 7, m_Status: 0 }, { m_GUID: CE004EBBD8A5CE03, m_Name: alre (1454), m_PlayerID: 8, m_Status: 0 }, { m_GUID: F14221D29F75D51A, m_Name: Gladiator_7050 (1352), m_PlayerID: 4, m_Status: 0 } } } of size 225 from server
Messaggio di rete: ({newAssignments:{'00C51875BADFB944':{status:0, player:1, name:"Bakixeddu (1417)"}, '1E3F435B702950A5':{status:0, player:7, name:"Cedric_O (1548)"}, CE004EBBD8A5CE03:{status:0, player:8, name:"alre (1454)"}, F14221D29F75D51A:{status:0, player:4, name:"Gladiator_7050 (1352)"}}, type:"players"})
Net client: Received message CPlayerAssignmentMessage { m_Hosts: { { m_GUID: 1E3F435B702950A5, m_Name: Cedric_O (1548), m_PlayerID: 7, m_Status: 0 }, { m_GUID: CE004EBBD8A5CE03, m_Name: alre (1454), m_PlayerID: 8, m_Status: 0 }, { m_GUID: F14221D29F75D51A, m_Name: Gladiator_7050 (1352), m_PlayerID: 4, m_Status: 0 } } } of size 169 from server
Messaggio di rete: ({newAssignments:{'1E3F435B702950A5':{status:0, player:7, name:"Cedric_O (1548)"}, CE004EBBD8A5CE03:{status:0, player:8, name:"alre (1454)"}, F14221D29F75D51A:{status:0, player:4, name:"Gladiator_7050 (1352)"}}, type:"players"})
Net client: Received message CPlayerAssignmentMessage { m_Hosts: { { m_GUID: CE004EBBD8A5CE03, m_Name: alre (1454), m_PlayerID: 8, m_Status: 0 }, { m_GUID: F14221D29F75D51A, m_Name: Gladiator_7050 (1352), m_PlayerID: 4, m_Status: 0 } } } of size 115 from server
Messaggio di rete: ({newAssignments:{CE004EBBD8A5CE03:{status:0, player:8, name:"alre (1454)"}, F14221D29F75D51A:{status:0, player:4, name:"Gladiator_7050 (1352)"}}, type:"players"})
Net client: Received message CPlayerAssignmentMessage { m_Hosts: { { m_GUID: BFD53CD07A29F0EE, m_Name: Bakixeddu (1417), m_PlayerID: 1, m_Status: 0 }, { m_GUID: CE004EBBD8A5CE03, m_Name: alre (1454), m_PlayerID: 8, m_Status: 0 }, { m_GUID: F14221D29F75D51A, m_Name: Gladiator_7050 (1352), m_PlayerID: 4, m_Status: 0 } } } of size 171 from server
Net client: Received message CFileTransferRequestMessage { m_RequestID: 1 } of size 7 from server

 

  • Like 1
Link to comment
Share on other sites

You can be disconnected from your own server. In fact it was very common before A24 because it wasn't threaded. You just had to lag enough. In this case it's a bit weird though, because it seems someone tried to rejoin, while the game hadn't started. When did the crash occur exactly?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...