AssignSceneNetworkIDs throws an exception on every build
needs more information
lackofbindings
Every time I try to build and test or build and publish an error popup shows up saying:
The VRCSDK build was aborted because the IVRCSDKPreprocessSceneCallback 'AssignSceneNetworkIDs' threw an exception.
The build appears to continue regardless, though I'm not sure whether or not its just uploading an older cached asset bundle.
Clearing and regenerating the network IDs does not have any effect. There are no errors displayed in the network ID utility.
The rest of the log is spammed with many instances of the following:
NullReferenceException: Object reference not set to an instance of an object
VRC.SDKBase.Network.NetworkIDAssignment.<ConfigureNetworkIDs>g__DoTypesMatch|7_7 (VRC.SDKBase.Network.NetworkIDPair idInfo, System.Collections.Generic.List`1[T] typeNames) (at <0d388269b8e349d2b8789659f308f194>:0)
VRC.SDKBase.Network.NetworkIDAssignment+<>c__DisplayClass7_0.<ConfigureNetworkIDs>g__TrySetID|6 (VRC.SDKBase.INetworkID NetworkID, System.Int32& refId, System.Collections.Generic.List`1[VRC.SDKBase.Network.NetworkIDAssignment+SetErrorLocation]& errors, VRC.SDKBase.Network.NetworkIDPair& newIDPair) (at <0d388269b8e349d2b8789659f308f194>:0)
VRC.SDKBase.Network.NetworkIDAssignment.ConfigureNetworkIDs (VRC.SDKBase.INetworkIDContainer container, System.Collections.Generic.List`1[VRC.SDKBase.Network.NetworkIDAssignment+SetErrorLocation]& errors, VRC.SDKBase.Network.NetworkIDAssignment+SetError[] errorsToIgnore) (at <0d388269b8e349d2b8789659f308f194>:0)
AssignSceneNetworkIDs.OnPreprocessScene (UnityEngine.SceneManagement.Scene scene) (at <d7f9a2238e9c42d08803d601ddbcb008>:0)
VRC.SDKBase.Editor.BuildPipeline.VRCBuildPipelineCallbacks.OnPreprocessScene (UnityEngine.SceneManagement.Scene scene) (at <d7f9a2238e9c42d08803d601ddbcb008>:0)
UnityEngine.Debug:LogException(Exception)
VRC.SDKBase.Editor.BuildPipeline.VRCBuildPipelineCallbacks:OnPreprocessScene(Scene)
VRC.SDK3.Editor.Builder.VRCWorldAssetExporter:ExportCurrentSceneResource(Boolean, Action`1, Action`1)
VRC.SDK3.Editor.Builder.VRCWorldBuilder:ExportSceneResourceInternal(Boolean)
VRC.SDK3.Editor.Builder.VRCWorldBuilder:ExportSceneResource()
VRC.SDK3.Editor.<Build>d__116:MoveNext() (at ./Packages/com.vrchat.worlds/Editor/VRCSDK/SDK3/VRCSdkControlPanelWorldBuilder.cs:2199)
UnityEngine.UnitySynchronizationContext:ExecuteTasks()
Log In
Fax
needs more information
Thanks for the report! Does this happen in every scene, or only in a particular scene?
lackofbindings
Fax I assume it’s something wrong with my scene, though I’m not sure how to best test in abstraction. At first this error was always thrown. After regenerating the IDs for my scenes it no longer errors, but if I try to export and import the IDs from my PC scene into my Quest version of the scene it always errors. So I’ve just been uploading different IDs for PC and Quest so it will let me upload, though I’m sure Quest/Android users are not thrilled by synced things going haywire if a PC user joins.
Fax
lackofbindings Ah - perhaps it's related to exporting an importing the ID?