System.Runtime Assembly on Win 11

huhu, strange bug here:

  • seen on Win 11 only
  • tested with gamma 7.0 384 and 387

repro:

  • Add .Net Framework Assembly
  • choose System.Runtime

The hde then becomes unresponsive, the debug window and the helpbrowser stop responding and the following errors can be observed:

Unexpected exception during Update: Invalid URI: The URI scheme is not valid.
 
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

---> System.UriFormatException: Invalid URI: The URI scheme is not valid.

   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions)

   at VL.Lang.PublicAPI.PackageDescription..ctor(String id, String version, String location, String title, String description, String summary, String tags, String authors, Strin

g owners, String projectUrl, String repoUrl, String licenseUrl, String copyright, Boolean isVLPackage)

   at VL.Lang.Packages.PackageInfo.<get_Description>g__Compute|69_0()

   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.ToArray()

   at System.Collections.Immutable.ImmutableArray.CreateRange[T](IEnumerable`1 items)

   at _VL_UI_HelpBrowser_.HelpBrowser.HelpBrowserCommand_C.Update()

   at _VL_HDE_.HDE.VL_HDEApplication_P.Update()

   at InvokeStub_VL_HDEApplication_P.Update(Object, Object, IntPtr*)

   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

   --- End of inner exception stack trace ---

   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

   at VL.Lang.Platforms.RuntimeInstance.Step(ITargetCompilation compilation, TimeSpan timeSinceStart)

   at VL.Lang.Platforms.RuntimeHost.StepInstances(ITargetCompilation compilation, TimeSpan timeSinceStart, Boolean& hadToKill)

and:

UriFormatException: "Invalid URI: The URI scheme is not valid."
            StackTrace:
                System.Uri { private void CreateThis(string uri, bool dontEscape, System.UriKind uriKind, System.UriCreationOptions& creationOptions) { ... } } 
                VL.Lang.Packages.PackageInfo { private VL.Lang.PublicAPI.PackageDescription <get_Description>g__Compute|69_0() { ... } } 
                System.Linq.Enumerable+WhereSelectEnumerableIterator`2 { public virtual TResult[] ToArray() { ... } } 
                System.Collections.Immutable.ImmutableArray { public static System.Collections.Immutable.ImmutableArray<> CreateRange(System.Collections.Generic.IEnumerable<> items) { ... } } 
                _VL_UI_HelpBrowser_.HelpBrowser.HelpBrowserCommand_C { public _VL_UI_HelpBrowser_.HelpBrowser.HelpBrowserCommand_C Update() { ... } } 
                _VL_HDE_.HDE.VL_HDEApplication_P { public _VL_HDE_.HDE.VL_HDEApplication_P Update() { ... } } 
                 { public static object InvokeStub_VL_HDEApplication_P.Update(object , object , System.IntPtr* ) { ... } } 
                System.Reflection.MethodBaseInvoker { internal object InvokeWithNoArgs(object obj, System.Reflection.BindingFlags invokeAttr) { ... } }
 
        TargetInvocationException: "Exception has been thrown by the target of an invocation."
            StackTrace:
                System.Reflection.MethodBaseInvoker { internal object InvokeWithNoArgs(object obj, System.Reflection.BindingFlags invokeAttr) { ... } } 
                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. (Exception has been thrown by the target of an invocation.)"
    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) { ... } } 

alternative repro (that is how we stumbled over it):
nuget install vl.systeminfo

as long as this pack is in the nuget folder and the helpbrowser is open, the same error happens. one can temporarily fix it by removing the pack from the nuget folder. then everything becomes responsive again.

Good catch, thanks for reporting. Fixed in upcoming.

1 Like