Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by bobmoff · Oct 17, 2016 at 10:34 PM · networkingservermultiplayer-networking

NetworkManager.OnServerDisconnect not called on timeout in Unity 5.4.1+

Have been relying on OnServerDisconnect during the development on 5.4 so far to know when a player is disconnected, but after upgrading to 5.4.1 (and also tried 5.4.2 which seem to be pulled back now) this method is not called any more.

Instead I get an error message:

Server event: host=0 event=DisconnectEvent error=6
Server client disconnect error:1
OnDisconnectError error:6

Which seems to come from NetworkServerSimple or something. I dont know how to get this callback or register delegate or similar.

There is no OnServerError callback either, so I am bit confused. Is this a bug, or is there another way to know when the client disconnects ?

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image matthewschaeffer · Oct 20, 2016 at 10:00 PM 0
Share

Same issue here I believe. I have the client calling match$$anonymous$$aker.DropConnection() when they want to disconnect. Everything appears to be fine client side, the client is stopped and OnClientDisconnect gets called. The host however never registers that the client was dropped, and ins$$anonymous$$d hits errors: -Server client disconnect error:1 -OnDisconnectError error:6 Followed by -Failed to send internal buffer channel:1 bytesToSend:1386 -Send Error: WrongConnection channel:1 bytesToSend:1386

avatar image diego-vieira · Oct 25, 2016 at 11:34 PM 0
Share

I have the same problem, if someone find a solution, please let me know. I stuck on my game development, trying to figure out this issue. Thanks.

avatar image Looking4Game · Nov 03, 2016 at 08:42 AM 0
Share

Agree. I am facing the same problem too, and finding workaround path... Can we fire this issue to org?

3 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by bobmoff · Nov 03, 2016 at 11:21 AM

This issue is now resolved in 5.4.2p3 :)

Comment
Add comment · Show 8 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image TwistedSage · Nov 03, 2016 at 12:47 PM 0
Share

Nice. So I just place it on any monobehavior?

avatar image bobmoff TwistedSage · Nov 03, 2016 at 12:50 PM 0
Share

Not sure what you mean, but if you are asking about how the Network$$anonymous$$anager works I suggest you read the documentation: https://docs.unity3d.com/$$anonymous$$anual/UNet$$anonymous$$anager.html

$$anonymous$$y questions and answer is a specific bug related to it.

avatar image darpan · Nov 15, 2016 at 08:06 AM 0
Share

I have 5.4.2f2 but still getting this error message whenever I try to log out from my client. Any suggestion about how to solve it?

avatar image bobmoff darpan · Nov 15, 2016 at 08:46 AM 1
Share

You need to install the p3 patch. U have 5.4.2f2 which probably means final2. Upgrade to the 5.4.2p3 patch and it should be fixed.

avatar image darpan bobmoff · Nov 16, 2016 at 05:04 AM 0
Share

I downloaded and Installed p4 but now getting "UNetWeaver error: parameter [$$anonymous$$essageBase] is of the type [UnityEngine.Networking.$$anonymous$$essageBase] is not a valid type, please make sure to use a valid type." error. Do I need to install p3 first and then p4 or its O$$anonymous$$?

Show more comments
avatar image
0

Answer by TwistedSage · Nov 03, 2016 at 02:21 PM

I know how its supposed to work. Manuel says just place it in a MonoBehavior class and drop it on any gameobject. But its never called that way.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image bobmoff · Nov 05, 2016 at 08:11 AM 0
Share

Not sure what you mean by "place it on a $$anonymous$$onoBehaviour". You need to make a custom class that inherit from Network$$anonymous$$anager and override the methods that you want to intercept.

Or am I not understanding your problem maybe?

avatar image
0

Answer by pavan123 · Feb 16, 2017 at 01:57 PM

Hi,I am having issue when using matchmaker whereby my client kicked off the server approximately 50sec and every time got an error :

Server client disconnect error:1 UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate() OnDisconnectError error:6 UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate()

when i upgraded to 5.4.2p3 version i got the below error:

Server Disconnected due to error: Timeout UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate(). Could anyone help me to figure out this issue.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

82 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity networking tutorial? 6 Answers

are client hosted servers limited by my 20 person ccu? 0 Answers

How can I implement Client-Side Prediction and Reconciliation? 1 Answer

UNET Discrete Server/Client. ClientRPC? Command? 3 Answers

When a client click a Canvas button, does the server receive the info? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges