-
-
Notifications
You must be signed in to change notification settings - Fork 747
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
Client Transport Error Timeout: kcp2k.KcpClient: ReceiveNextReliable() msgSize returns -1 #3700
Comments
Can you reproduce this with any of the examples that ship with Mirror, e.g. the Basic example? |
Can you please link the Basic Example, I will reproduce it on there |
It's included in Mirror...Examples / Basic folder. |
I've reproduced the error on the Mirro Basic example you mentioned, it resulted in the same, one thing that I forgot to say was that I'm using PlayFabSDK, GSDK, this server I deployed is built with PlayFabMultiplayerServer in mind, and Mirror is trying to communicate to that server without any luck, so it could be on their end, |
Hey, I've fixed it now already thank you so much for your assistance was from debugging and using the LocalMultiplayerAgent that I found the error, this was the server output 2023-12-15 19:42:40 KcpServer: already started! from this I found this help post where I found the solution, https://community.playfab.com/questions/60882/bug-in-localmultiplayeragent.html |
Client Transport Error: Timeout: kcp2k.KcpClient: Connection timed out after not receiving any message for 10000ms. Disconnecting.. This is fine.
Hi there, been dealing with this for a while now, looked at the stack trace over the mirror code, but still confused, After successfully deploying the build to PlayfabMultiplayer Services build is healthy and remains healthy on that platform. Upon starting the game. I log in with PlayFabClientAPI.LoginWithCustomID which always grants a successful login, (whether or not I do this, the issue persists)
On Playfab if there is no server made under builds, my code sends API request to playfab to create a new server with new SessionID, normally there already is a preexisting server and automatically binds the IP and port but if it already exists then I just copy and paste its IP and port(30000) into the NetworkManagerHUD, after clicking 'Client' button with the details on the network manager HUD, the console verbose appears (shown above) with the error everytime after "KcpClient send[s] handshake to other end"
I have looked at the mirror code and the bool statement ReceiveNextReliable that sends the KcpHeader.Hello back is never entered in this on line 290 of KcpPeer "msgSize" returns -1 which always returns false which means that instead of code going inside bool statement calls HandleTimeout instead
Expected Behaviour
![Screenshot 2023-12-13 at 15 14 28](https://private-user-images.githubusercontent.com/75588113/290237028-3b95ba87-b2f4-436b-855d-aca09c3a53e9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2NDkxNTAsIm5iZiI6MTcyMDY0ODg1MCwicGF0aCI6Ii83NTU4ODExMy8yOTAyMzcwMjgtM2I5NWJhODctYjJmNC00MzZiLTg1NWQtYWNhMDljM2E1M2U5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEwVDIyMDA1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI3NjYxY2I3ZGVmNjI2ZDI4ZDI3MmZkOGIwYWNiM2U5MjhjNWQ0ZTc5YzExYmE1NWY3NWU1ZTc1YjU4ZmQ4OTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ZKMbkbXwZHMJe7BY27Hdn4VGe2j9IDYl4Mo_P1zImyE)
KcpClient not meant to timeout and KcPeer meant to receive handshake on line KcpPeer line 343, and then call OnClientConnected in my clientstartup code that calls Connect()
Darwin MacBook-Pro.local 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:39:46 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6020 arm64
Target Platform: MacOS, ------- but also tried with Dedicated Server Linux also but did not work
Architecture: Intel 64-bit + Apple Silicon
Unity Version: Unity 2022.3.11f1
Mirror branch: from asset store, 86.13.0,
The text was updated successfully, but these errors were encountered: