Multiplayer Roles Data causes crash by keeping references to null components

When I remove a component that was manually given a multiplayer role, the hidden “Multiplayer Roles Data” component doesn’t remove the component from its list. This causes the Editor to immediately crash when play mode is entered.

The only way to stop the editor from crashing is to manually remove the null item from the “Components Roles Masks” list via the Debug Inspector.

Am I the only one facing this issue because I can’t find anything mentioning this problem.

EDIT:
Additionally at runtime, after the components are stripped out, the “Multiplayer Roles Data” list is full of missing object references. This then throws Assertion failed messages when the inspector is opened.

Thanks for bringing this up! I think the crash should be fixed in 6000.0.32f1.
We’ll take a look to the cleaning up after stripping and removing.

1 Like

Hi, what version did you observe this?

Sorry for the late response I must have notifications turned off!

I am now using unity 6000.0.30f1 and dedicated server package 1.3.3
The crash appears to be fixed but I still get assertion errors.