Search Issue Tracker
Fixed in 2017.3.0f3
Votes
0
Found in
2017.1.0p2
Issue ID
942006
Regression
Yes
Stuck on compiling when class inherits a NetworkBehaviour class
Steps to reproduce:
1. Open user attached project
2. Open ExtendsNetworkBehaviourClass.cs script
3. Uncomment.the line SyncListBool bob = new SyncListBool();
4. Save the script
5. Switch back to Unity and notice it freezing in the middle of compilation
Expected result: the script should compile
Reproduced in: 2017.3.0a4, 2017.2.0b7, 2017.1.0a5
Not reproduced in: 2017.1.0a4, 5.6.3f1
Regression since: 2017.1.0a5
Comments (1)
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
- Crash on GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
- Graphics State Collection warm-up does not work when using with Addressables Shaders
- "Baked Shadow Radius" field is visible but inactive when when the Shadow Type is set to "Hard Shadows" under the Light Component
Bailywick
Oct 09, 2017 12:57
For anyone else encountering this:
This affects 2017.1.1f1
It occurs for any kind of sync list as far as I can tell (SyncListBool SyncListInt, SyncListStruct etc).
It only occurs if the class is not directly descended from UnityNetworkBehaviour.
e.g.
class CustomBehaviour : NetworkBehaviour
{
private SyncListBool syncList; //this will work
}
class HangBehaviour: CustomBehaviour
{
private SyncListBool hangList; //this line will cause the hang
}
I've worked around it locally by moving the SyncList declarations into base class and then only setting them up the classes that use them - not ideal but it works till a fix is released.