disguise-one / RenderStream-Unity

RenderStream plugin for Unity
BSD 3-Clause "New" or "Revised" License
38 stars 15 forks source link

IndexOutOfRangeException when playing in editor #2

Closed husberg-disguise closed 3 years ago

husberg-disguise commented 3 years ago

Build callbacks are being called when starting play mode in the editor. Prevent or handle these cases instead of allowing them to throw.

IndexOutOfRangeException: Index was outside the bounds of the array. DisguiseRenderStream.OnPostProcessScene () (at Assets/DisguiseUnityRenderStream/DisguiseCameraCapture.cs:94) System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <eae584ce26bc40229c1b1aa476bfa589>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <eae584ce26bc40229c1b1aa476bfa589>:0) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <eae584ce26bc40229c1b1aa476bfa589>:0) UnityEditor.Build.BuildPipelineInterfaces+AttributeCallbackWrapper.OnProcessScene (UnityEngine.SceneManagement.Scene scene, UnityEditor.Build.Reporting.BuildReport report) (at <c9b5231e365148a4bc210cc4e439206d>:0) UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass16_0.<OnSceneProcess>b__1 (UnityEditor.Build.IProcessSceneWithReport spp) (at <c9b5231e365148a4bc210cc4e439206d>:0) UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List1[T] oneInterfaces, System.Action1[T] invocationOne, System.Collections.Generic.List1[T] twoInterfaces, System.Action1[T] invocationTwo, System.Boolean exitOnFailure) (at <c9b5231e365148a4bc210cc4e439206d>:0) UnityEditor.Build.BuildPipelineInterfaces:OnSceneProcess(Scene, BuildReport)

husberg-disguise commented 3 years ago

Fixed in r1.26