Search Issue Tracker
Fixed in 5.5.0
Votes
6
Found in
5.3.4f1
Issue ID
790320
Regression
No
Broadcast discovery not stopping after multiple calls
Steps to reproduce:
1) Unzip and open the project attached by user (Broadcast.zip) in Unity.
2) Open scene 'one.unity' and play it.
3) Press the 'Lan Host(H)' button and then the 'Stop (X)' button. Repeat this process three times.
4) When pressing the host button the third time an error message appears
Broadcast discovery has been already running. Stop discovery first before repeat this call
UnityEngine.Networking.NetworkDiscovery:StartAsServer()
MyNetManager:OnStartHost() (at Assets/MyNetManager.cs:13)
UnityEngine.Networking.NetworkManagerHUD:OnGUI()
Reproduced on:
5.2.4f1, 5.3.0f4, 5.3.4f1, 5.3.4p4, 5.4.0b15
Comments (5)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
PhilipKeenanPhilips
Oct 16, 2017 14:04
Still finding it in 2017.1.0p4
DavidHidvegi
Oct 09, 2017 09:24
I'm not sure it has anything to do with StopBroadvast and StopHost combo. Because when you start the game without having connection you can start the Broadcast as a Client but when you start it as a Server it gives the same error mentioned above.
Btw, are you sure you aren't calling StartAsClient multiple times? cause that also causes a crash, thats a no no, don't do that :)
sebrk_hiq
Aug 30, 2017 08:53
This isn't fixed. NetworkDiscovery is anything but stable.
helgewl
Apr 06, 2017 10:28
This issue is still present in Unity 5.5.1f1.
See this forum thread for possible workarounds: https://forum.unity3d.com/threads/broadcast-discovery-already-running-startbroadcast-failed-err-8-startserver-listen-failed.357852/
moco2k
Aug 05, 2016 11:37
If you call StopBroadcast and something like StopHost afterwards, the NetworkDiscovery screws up and won't work properly anymore. I guess StopHost somehow breaks the StopBroadcast routine. I don't know, but maybe this behavior is somehow related to the issue?