Spawned Objects have Null References after rejoin
Fionna
World wrld_0e017a10-3469-4c65-9fec-27a877d8fd4a
Repro steps: Have two players join. Click the unicorn to get balloons, observe the colors (look at the logs to see the broadcasts). Pop each other's balloons, everyone should see them pop and disappear, and then reappear after clicking the unicorn.
Have one player rejoin the instance. Now if the rejoiner clicks the unicorn, the first player will see a NullReference and the balloon will remain pink instead of being set to a random color. If that balloon is popped, it will not disappear on one client, and there will be a Null Reference.
Probably related to this canny:
Log In
Fionna
I have done some debugging and it seems this is another repro of this old issue, which I thought was fixed. The workaround is still to destroy children objects first before Destroy or Reap the parent. https://vrchat.canny.io/bug-reports/p/spawned-prefabs-with-disabled-game-objects-inside-break-syncing-if-deleted-via-d
Fionna
2019/09/03 Live version 1.0 of Balloonicorns also has this bug but in slightly different way. As soon as one player leaves the instance, the popping no longer works. https://www.vrchat.com/home/launch?worldId=wrld_606a15bd-e4c4-4f3e-a150-288216630b74&instanceId=99354
Fionna
owlboy
booooo
CyanLaser
2019.09.01 21:23:10 Log - [VRC_EventDispatcherRFC] Executing SendRPC on SceneEventHandlerAndInstantiator (UnityEngine.GameObject) from Dispatcher (UnityEngine.GameObject) for B M O: S: "_SendOnSpawn" I: 0 F: 0 B: Unused
2019.09.01 21:23:10 Log - [Network Processing] RPC invoked _SendOnSpawn on SceneEventHandlerAndInstantiator for B M O
2019.09.01 21:23:10 Error - [VRC_EventLog] Caught NullReferenceException:
2019.09.01 21:23:10 Log - [SyncPhysics] Pin readied as Unreliable and observing [Assets/Prefabs/BalloonFightPrefab.prefab (Dynamic Clone 204609281:600003) VRCPlayer[Remote] 6.SyncPhysics, Pin.SyncPhysics, Armature.SyncPhysics]
2019.09.01 21:23:10 Log - [SyncPhysics] Armature readied as Unreliable and observing [Assets/Prefabs/BalloonFightPrefab.prefab (Dynamic Clone 204609281:600003) VRCPlayer[Remote] 6.SyncPhysics, Pin.SyncPhysics, Armature.SyncPhysics]
2019.09.01 21:23:10 Error - [VRC_EventLog] Caught NullReferenceException:
2019.09.01 21:23:10 Warning - [VRC_TriggerInternal] Assets/Prefabs/BalloonFightPrefab.prefab (Dynamic Clone 204609281:600003) VRCPlayer[Remote] 6 deferred event OwnerOnlyEnableLocal type OnSpawn because Logics to ready
2019.09.01 21:23:10 Log - [VRC_TriggerInternal] 10093.1 Assets/Prefabs/BalloonFightPrefab.prefab (Dynamic Clone 204609281:600003) VRCPlayer[Remote] 6 via OwnerOnlyEnableLocal:OnSpawn executing ActivateCustomTrigger
2019.09.01 21:23:10 Log - [VRC_EventDispatcherRFC] Executing ActivateCustomTrigger on Assets/Prefabs/BalloonFightPrefab.prefab (Dynamic Clone 204609281:600003) VRCPlayer[Remote] 6 (UnityEngine.GameObject) from Dispatcher (UnityEngine.GameObject) for @Legends: S: "OwnerLocalTest" I: 0 F: 0 B: False
2019.09.01 21:23:10 Log - [VRC_TriggerInternal] 10093.1 Assets/Prefabs/BalloonFightPrefab.prefab (Dynamic Clone 204609281:600003) VRCPlayer[Remote] 6 via OwnerLocalTest:Custom executing SetComponentActive
2019.09.01 21:23:10 Exception - NullReferenceException
VRC_EventDispatcherRFC.PEDIPODMBHL (VRCSDK2.VrcEvent ELPILDCBCNM)
VRC_EventDispatcherRFC.CCKDCFIJOOH (VRCSDK2.VrcEvent ELPILDCBCNM, VrcBroadcastType JNBGKNENIII, Int32 KJFAGEPJMPH, Single GIKFGHDGIOC)
VRC_EventDispatcherRFC.TriggerEvent (VRCSDK2.VRC_EventHandler LNPAEIDHMHA, VRCSDK2.VrcEvent ELPILDCBCNM, VrcBroadcastType JNBGKNENIII, Int32 KJFAGEPJMPH, Single GIKFGHDGIOC)
VRC_EventLog.LogEvent (VRCSDK2.VRC_EventHandler PCNPBJOIKAM, VRCSDK2.VrcEvent JIDLGLOMIBF, VrcBroadcastType JNBGKNENIII, Int32 KJFAGEPJMPH, Single GIKFGHDGIOC)
VrcSdk2Interface.JIEJCMFOOKO (VRCSDK2.VRC_EventHandler PCNPBJOIKAM, VRCSDK2.VrcEvent JIDLGLOMIBF, VrcBroadcastType JNBGKNENIII, Int32 KJFAGEPJMPH, Single GIKFGHDGIOC)
VRCSDK2.VRC_EventHandler.InternalTriggerEvent (VRCSDK2.VrcEvent e, VrcBroadcastType broadcast, Int32 instagatorId, Single fastForward)
VRCSDK2.VRC_EventHandler.TriggerEvent (VRCSDK2.VrcEvent e, VrcBroadcastType broadcast, UnityEngine.GameObject instagator, Single fastForward)
VRC_TriggerInternal+AFCGJJBODND.MoveNext ()
UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
VRC_TriggerInternal:ONLJPCHIPCG(TriggerEvent)
VRCSDK2.VRC_Trigger:ExecuteCustomTrigger(String)
VRCSDK2.VRC_Trigger:TriggerCustom(GameObject, String)
VRC_EventDispatcherRFC:HFJMLPLBOIJ(VrcBroadcastType, Int32, GameObject, String)
VRC_EventDispatcherRFC:CCKDCFIJOOH(VrcEvent, VrcBroadcastType, Int32, Single)
VRC_EventDispatcherRFC:TriggerEvent(VRC_EventHandler, VrcEvent, VrcBroadcastType, Int32, Single)
VRC_EventLog:LogEvent(VRC_EventHandler, VrcEvent, VrcBroadcastType, Int32, Single)
VrcSdk2Interface:JIEJCMFOOKO(VRC_EventHandler, VrcEvent, VrcBroadcastType, Int32, Single)
VRCSDK2.VRC_EventHandler:InternalTriggerEvent(VrcEvent, VrcBroadcastType, Int32, Single)
VRCSDK2.VRC_EventHandler:TriggerEvent(VrcEvent, VrcBroadcastType, GameObject, Single)
AFCGJJBODND:MoveNext()
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
VRC_TriggerInternal:OnNetworkReady()
UnityEngine.Component:SendMessage(String, SendMessageOptions)
BJBFIJICDKF:MoveNext()
CNCGEAADOLN:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)