-
Notifications
You must be signed in to change notification settings - Fork 108
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
SocketException: Not enough buffer space #131
Comments
Very strange. We haven't seen that one before. What's triggering it is the fact that we set the send/receive buffer sizes to 5Mb here. Hacking that to a smaller number might fix it for you. It is still odd that you cannot have 5Mb of UDP buffer space though... Can you try it with the |
Hey Ramsey, I tried it with both the unity5-repl-fix branches and the develop branches and had the same results. I'm quite sure that it's the line you highlighted and I tried various different values e.g. This feels like a Mono bug to me because if I try to set the SendBufferSize to the default value explicitly I also tried running Unity as root to see if it was a socket permissions issue but that didn't work either. I will try installing Unity on another machine I have see on the boot volume to see if that changes anything and report back. |
Very strange. The off-boot volume installation should not make a difference, but it is the only thing that stands out, so I would definitely try and eliminate that variable. What happens if you remove the lines altogether? |
Removing the lines altogether results in Unity crashing. Is there are Unity log file that might give us a hint to what's happening? |
Yes. Full list: http://docs.unity3d.com/Manual/LogFiles.html |
Here's what
|
Try this:
|
It works! The ClojureREPL window now shows: Now I'm seeing another error in the console:
|
After some poking around this fix produced other errors. To summarize where we are:
Result is ->
|
Yes, this breaks the
|
Uncommenting the buffer size code in
FWIW - if the error is indeed in Mono's socket code a user named HTH - let me know if you want to do some more testing on my config. |
Bah! That's terrible! We will look into swapping out our networking code then. Thank you so much for your work on this. I'm sorry there isn't an easy fix at hand, although installing Unity on the boot volume might do it if that's an option. |
I wish I was a .net hacker and could give you a more help on this one... Great work on Arcadia BTW - super cool stuff and the promise of working with clojure + CES = awesome! :-D A. |
Thanks! It means a lot that you'd say that and take time to work through this bug! |
Did some more digging and here's another update on this one: I had a machine running MacOS X 10.9.5 and ran Unity 5.0.1f1 with the |
Oh that's grim. Thanks for the update. We will look into it. I think @timsgardner is on 10.10, but I am not. Not sure what version he's on though. |
Hey Ramsey, |
I am also seeing this error, I'm on OSX Yosemite as well. I can provide any further details if needed! |
is there any progress with this? I've upgraded to Sierra and am getting this
|
I have the same problem. I am using Unity version 2017.2.2f1 as recommended in the Wiki and Arcadia's |
As a quick workaround, changing those lines in
into something smaller like
|
I have the same problem using OSX Sierra. |
This is an issue with the legacy UDP REPL which has been removed from the beta branch and replaced with the Socket REPL and nREPL. Neither of them exhibit this behavior. |
When starting Arcadia/Unity from the unity5-repl-fix branch, I get a
System.Net.SocketException: Not enough buffer space is available
error.Platform: OSX 10.10.2
Unity: 5.0.1f1
Arcadia: unity5-repl-fix branch
Repro steps:
git checkout -b unity5-repl-fix origin/unity5-repl-fix
Compiled
folderalso:
The text was updated successfully, but these errors were encountered: