The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Cannot send to: xxx.x.xx.xxx. Not enough buffer space is available

Khudere
2017-08-04 22:58:56

I was trying to search for a solution for this but i'm having issues with running the game on the laptop (this is for IOS though) but still strange its closing the game with this error. Anyone know why it would be doing this?

Cannot send to: xxx.x.xx.xx. Not enough buffer space is available UnityEngine.Debug:LogError(Object) NetworkingPeer:DebugReturn(DebugLevel, String) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1522) ExitGames.Client.Photon.<>c__DisplayClass145_0:b__0() ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands() ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands() PhotonHandler:Update() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:157)
## Comments

JohnTube
2017-08-24 14:27:24

Hi @Khudere,

Thank you for choosing Photon and I apologize about the delay.

Can you tell us more about the issue?

What PUN version?
How often do you see this error?

Tobias
2017-09-01 13:05:32

Which version of PUN is that?

jakeyfabrizio1
2019-04-10 00:50:11

I'm using PUN2 and I recently got this same error. Did anyone ever find a solution?

Tobias
2019-04-11 12:40:17

@jakeyfabrizio1: It seems that the send buffer of the Socket is full. This should be .. rare but it's probably not impossible.
Are you sending a lot of data in a short time?
If you are unsure, add a PhotonStatsGui and have a look at the "health" and "traffic" values. Or enable the SupportLogger in the PhotonServerSettings to get some values into the log. Put that on hastebin and send the link.

jakeyfabrizio1
2019-04-15 21:49:17

Hi Tobias, thank you for the quick response. I haven't changed anything in my code, yet the problem has gone away. I still enabled support logger so here is the pastebin link: https://pastebin.com/WK4p7wZx
Let me know if you see anything from the log that may suggest I could run into problems again.

Tobias
2019-04-16 08:54:05

The summary of the SupportLogger looks ok. No long delta times between send/dispatch calls and no long durations for events and callbacks.
Make sure to get and send a full log (not just the summary), if the problem comes up again.

Back to top