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 /
  • Help Room /
avatar image
5
Question by justinvirtualitics · Feb 02, 2018 at 12:47 AM · networkingmultiplayer.netpunsockets

Unity .NET 4.6 Socket Exception

Since upgrading to Unity 2017.2.1.p1, we have been experiencing Socket Exception in Photon Unity Networking when passing larger amounts of data to clients via RPC.

After consulting with the dev team at Exit Games, it seems the problem is more related to .NET 4.6 than it is the Photon plugin, as it does not occur when switching back to .NET 3.5. Previous version of the editor, i.e. 2017.1.1p1 do not reproduce the error.

The attached file has a complete problem description as well as links to two sample projects, one created in 2.1p1 to reproduce the error, and the other in 1.1p1 to prove that it was working without issue in the previous version.

Any help would be greatly appreciated.link text

photon-unity-disconnect.pdf (423.1 kB)
Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by cattendu3d · Feb 08, 2018 at 03:39 PM

Hello @justinvirtualitics,

I followed your instructions and was unable to reproduce the bug you described. Perhaps I'm doing something wrong?

I downloaded your projects; started two instances of the 2017.2.1p1 build; connected one as Host and waited for it to finish loading; connected the 2nd one as Client.

At this point they are connected together and in the same level.

I then go to the Host instance and press Space; I get the confirmation that the 75 [0,74] chunks of data are successfuly sent; I also the confirmation they were received from the Client. No crashes...

I have tried reproducing the bug with all combinations of 2017.1.1p1/2017.2.1p1 builds, projects, rebuilding from project source, using two different computers, etc.

Could you provide additionnal information as to the machine you are trying to run this on? Have I missed a step? Any and all information will help me to resolve this issue! :)

Comment
Add comment · Show 3 · 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 justinvirtualitics · Feb 08, 2018 at 06:11 PM 0
Share

Thanks for your reply @cattendu3d.

It sounds like you are testing everything and following the proper steps. Unfortunately, we are still experiencing the issue on the 2017.2.1.p1 build, across several different machines. Some are ASUS ROG VR ready machines, others are custom built rigs (i7-7600,GTX 1080, 32GB RA$$anonymous$$). An engineer from Photon was able to reproduce the issue as described in our doc to the extent that they confirmed the issue is co$$anonymous$$g from .NET's Socket class, not their wrapper. There is no crash, just a disconnection, and an error saying "Not Connected, not bound" on the host.

We tend to fail between 10 and 50 chunks. We're not sure, but if it's related to the quality of your internet connection, you way want to increase the amount of data you are sending. If the 1.5 mb package is being received properly on the client, try changing the size of "dataToSync" in DataSet$$anonymous$$anager.cs line 41 located in the GenerateData method. You can try doubling the byte array size to 3000000 (3 mb) and try again.

avatar image cattendu3d justinvirtualitics · Feb 08, 2018 at 07:23 PM 0
Share

Alright... so I was unable to reproduce the disconnect by increasing the byte array size (went up to 100mb!), but increasing the maxBytesPerChunk did the trick. I'll look further into the issue and comme back to you with what I find!

avatar image justinvirtualitics cattendu3d · Feb 08, 2018 at 07:32 PM 0
Share

Great! I should have mentioned that shrinking our maxBytesPerChunk has helped us get around the issue temporarily for further development, but this isn't a viable long term solution. We've had to multiply by 0.25, and don't want to tell our clients that data transmission will be 4x SLOWER on our next update!

avatar image
0

Answer by justinvirtualitics · Feb 13, 2018 at 04:43 AM

@cattendu3d Any progress on tracking down the issue?

Comment
Add comment · Show 5 · 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 cattendu3d · Feb 13, 2018 at 02:50 PM 0
Share

Yes I've almost finished tracking down the changeset which introduced the issue. I'll open a bug report when I do and I'll provide the link to it in this thread. I get back to you as soon as I'm done, sorry for the delay!

avatar image justinvirtualitics cattendu3d · Feb 13, 2018 at 05:14 PM 0
Share

No worries. Thanks for your help!

avatar image cattendu3d justinvirtualitics · Feb 16, 2018 at 03:49 PM 0
Share

Hi JustinVirtualitics, Don't worry, I haven't forgotten you! I have been busy with other stuff as QA and debugging is not my primary task. In order to speed up the process, I suggest you produce a bug report (https://unity3d.com/unity/qa/bug-reporting) with your project and the explanations you've provided (I also suggest linking to this page). I will add my findings to your bug report and they will let you know if they have found the issue.

Show more comments

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

198 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 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 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

[PUN] All players control one object 0 Answers

Unity Networking Cannot Join Match - Room Disappears 1 Answer

Unet not connecting over the internet 0 Answers

Weapon Pickup in Multiplayer/Networking 0 Answers

Players won't spawn with Photon Unity Network 1 Answer


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