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
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
- Rendering locks up when not looking at a transparent material on Meta Quest 2
- Volumetrics break when using a Custom Pass to create a Thickness Buffer for Alpha Clipping
- All tests are run instead of only the failed ones when the "Rerun Failed" button is pressed
- GameObject is not masked when the "Render PostProcessing Effects" pass executes with a resolved non-MSAA Color target and MSAA DepthStencil target
- [Android] Gfx.WaitForGfxCommandsFromMainThread high performance usage and inconsistency when built Player scene has Canvas GameObject on a specific Project
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.