VL.IO.WebServer Examples break when web page opens

(Using Preview 0359) Trying Server an image rendered from Skia.

Earlier previews (=< 0344) have a runtime error

2025/05/23 11:15:05.371 [CRT] (Sys) 0 vvvv InvalidOperationException: “MakeCurrent called on the wrong thrad”
StackTrace:
VL.Skia.RenderContext { public void MakeCurrent(VL.Skia.Egl.EglSurface surface) { … } }
VL.Skia.RenderContext+<>c__DisplayClass3_1 { internal void b__2(VL.Lib.Animation.FrameTimeMessage _) { … } }
System.Reactive.AnonymousObserver1 { protected virtual void OnNextCore(T value) { ... } } System.Reactive.ObserverBase1 { public virtual void OnNext(T value) { … } }
VL.Lib.Animation.FrameClock { public void SetFrameTime(VL.Lib.Animation.Time frameTime) { … } }
VL.Lang.Platforms.RuntimeInstance { public void Step(VL.Lang.Symbols.ITargetCompilation compilation, System.TimeSpan timeSinceStart) { … } }
VL.Lang.Platforms.RuntimeHost { public void StepInstances(VL.Lang.Symbols.ITargetCompilation compilation, System.TimeSpan timeSinceStart, System.Boolean& hadToKill) { … } }

AggregateException: “One or more errors occurred. (MakeCurrent called on the wrong thrad)”
InnerExceptions: “1”
StackTrace:
VL.Lang.Platforms.RuntimeHost { public void StepInstances(VL.Lang.Symbols.ITargetCompilation compilation, System.TimeSpan timeSinceStart, System.Boolean& hadToKill) { … } }
VL.Lang.Platforms.RuntimeHost { private void SharedStep(System.TimeSpan timeSinceStart) { … } }

i’m afraid cannot reproduce. assuming you’re testing this with latest version (1.0.1) of VL.IO.WebServer?

Yep, the latest. This is from 0359 this morning:

2025/05/27 09:58:01.273 [CRT] (Sys) 0 vvvv         InvalidOperationException: "MakeCurrent called on the wrong thrad"
            StackTrace:
                VL.Skia.RenderContext { public void MakeCurrent(VL.Skia.Egl.EglSurface surface) { ... } } 
                VL.Skia.RenderContextProvider { private void <.ctor>b__5_0(VL.Lib.Animation.FrameTimeMessage _) { ... } } 
                System.Reactive.AnonymousObserver`1 { protected virtual void OnNextCore(T value) { ... } } 
                System.Reactive.ObserverBase`1 { public virtual void OnNext(T value) { ... } } 
                VL.Lib.Animation.FrameClock { public void SetFrameTime(VL.Lib.Animation.Time frameTime) { ... } } 
                VL.Lang.Platforms.RuntimeInstance { public void Step(VL.Lang.Symbols.ITargetCompilation compilation, System.TimeSpan timeSinceStart) { ... } } 
                VL.Lang.Platforms.RuntimeHost { public void StepInstances(VL.Lang.Symbols.ITargetCompilation compilation, System.TimeSpan timeSinceStart, System.Boolean& hadToKill) { ... } } 

AggregateException: "One or more errors occurred. (MakeCurrent called on the wrong thrad)"
    InnerExceptions: "1"
    StackTrace:
        VL.Lang.Platforms.RuntimeHost { public void StepInstances(VL.Lang.Symbols.ITargetCompilation compilation, System.TimeSpan timeSinceStart, System.Boolean& hadToKill) { ... } } 
        VL.Lang.Platforms.RuntimeHost { private void SharedStep(System.TimeSpan timeSinceStart) { ... } }

Confirmed. Can repro now. This is indeed a breaking change in latest previews. Still works correctly in vvvv gamma 6.7 for now. thanks for the pointer!

1 Like

Thanks. Fixed in upcoming.

1 Like