Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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
5
Question by AaronSvoboda · Dec 15, 2016 at 04:41 AM · errorwebglphotonsockets

Photon and WebGL random error sending data

So first off Thanks for any help...

I'm using Photon with a webgl build. randomly when switching scenes i am receiving this error....

 Exiting receive thread (inside loop). Server: wss://SLWASH002.exitgames.com:19090:0 Error: An error has occurred in sending data.
     UnityEngine.Debug:LogError(Object)
     NetworkingPeer:DebugReturn(DebugLevel, String) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1486)
     ExitGames.Client.Photon.<ReceiveLoop>c__Iterator23:MoveNext() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/SocketWebTcp.cs:209)


The error typically only happens in the build version... but from time to time it does happen in the editor.

I have tried searching here googling and talking with others and i cant seem to figure it out. Thanks Again, Aaron

Comment
Add comment · Show 7
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 ChristianSimon · Dec 15, 2016 at 09:36 AM 0
Share

Hi,

you are saying that this happens randomly. Can you specify this a little more and tell us how often this happens? Is it like one or two out of ten times? Is it more or less? Or is it really random and you can't provide some more detailed information?

Also interesting is which loading function do you use when changing the scene. Is it Unity's built-in function using the Scene$$anonymous$$anager or is it Photon's PhotonNetwork.LoadLevel(...) function?

Additionally please let us know which Unity and which PUN version you are using, so we can investigate this behaviour.

avatar image AaronSvoboda ChristianSimon · Dec 15, 2016 at 03:45 PM 0
Share

@ChristianSimon completely random in editor. some times it happens once in a run. Sometimes not at all. In the built version.. it happens almost every time 8/10 times when loading between scenes. I am using unity 5.3.5f1 and the latest PUN version. and im using Scene$$anonymous$$anager. I acts like when it exits to lobby than reloads a scene it gets an abnormal disconnection when the websocket tries infor$$anonymous$$g the server. Thank you for any help.

avatar image ChristianSimon AaronSvoboda · Dec 15, 2016 at 04:57 PM 0
Share

This is interesting. I have a question about the scenes you are loading. Are these 'big' scenes with lots of objects and other stuff? I'm asking because I'm interested in the resulting loading times. Since WebGL is single-threaded there is a chance, that you get disconnected when loading a level because it simply takes too long. Please measure the time it takes to load another scene. This doesn't need to be very accurate, you can also do this with your smartphone's stopwatch. I just need some idea, how long it takes.

Additionally you can also try asynchronous loading by using LoadSceneAsync(...). If this doesn't work either, you maybe can try to create a repro project where we can do some testing on this behaviour.

Show more comments
avatar image shinichikudo997 · Feb 25 at 11:44 AM 0
Share

No solution till date...

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Le_Hieu · May 02, 2018 at 02:30 AM

I have the same problem, can anyone help us?

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
avatar image
1

Answer by albertduranll · Jul 07, 2020 at 04:48 PM

I've the same problem, any solution for this problem?

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
avatar image
0

Answer by gamescorpion · May 18 at 01:24 PM

For anyone experiencing this issue => Exiting receive thread (inside loop). Server: XXXXX

Here is the solutions that have worked for our team:

Check to see if the scene that you are loading is not MASSIVE in size.

Check to see if the scene being loaded is not sending/receiving data in the first frame (Wait a while before sending/receiving sync information with Photon).

TO TEST AND SEE IF THIS IS THE CASE:

Create a FULLY EMPTY dummy scene in unity and add it to the build settings

Connect to Photon and try and use that EMPTY scene to see if works (Which it most likely should). This will alert you that your issue lies in the scene you were trying to load (Due to one of the above items OR something else in that specific scene).

Hope the above solution helps out others going through the same issues!

Nav Gupta => Former Unity 3D Live Help Expert Team Member and now Founder and CEO of Chaarmi Worlds Inc. making the future metaverse!! Check us out at Chaarmi.com!

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

10 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

Related Questions

WebGL file doesn't work, I can't change levels?! 0 Answers

Photon PUN offline mode didn't work 2 Answers

WebGl build on Server has load memory error 6 Answers

Unity WebGL websocket LLAPI alternatives? 0 Answers

TcpClient error WebGL 0 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