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
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
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
- Incorrect warning icon and wrong message displayed in HDRP Decal Projector
- [Dragon Crashers] Build fails in U6
- [Dragon Crashers] 4 Shader error messages on import
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?