-
Notifications
You must be signed in to change notification settings - Fork 1
Description
We had exceptions yesterday on a Windows server running dotnet 6 accessed via IIS. Restarting the application pool fixed it for now, but I'm weary of this happening in other environments like DXP. I redacted the client information, but this was logged every liquid page load.
Versions:
Optimizely.CSM.Labs.LiquidTemplating: 0.5.0
Fluid.Core: 2.2.15
Fluid.MvcViewEngine: 2.2.15
Fluid.ViewEngine: 2.2.15
Optimizely.CMS: 12.26.1
An unhandled exception has occurred while executing the request.
System.InvalidOperationException: Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct.
at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at Optimizely.CMS.Labs.LiquidTemplating.Values.ContentLoaderValue.<.ctor>g__AddMethod|3_0(VirtualMemberDelegate m) at Optimizely.CMS.Labs.LiquidTemplating.Values.ContentLoaderValue..ctor() at Optimizely.CMS.Labs.LiquidTemplating.FluidRenderingViewAsync.AddItemsToFluidContext(String path, ViewContext viewContext, TemplateContext context) at Fluid.MvcViewEngine.FluidRendering.RenderAsync(TextWriter writer, String path, ViewContext viewContext) at Fluid.MvcViewEngine.FluidView.RenderAsync(ViewContext context) at Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.RenderPartialCoreAsync(String partialViewName, Object model, ViewDataDictionary viewData, TextWriter writer) at Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.PartialAsync(String partialViewName, Object model, ViewDataDictionary viewData) at AspNetCoreGeneratedDocument.Views_Pages_Page_Index.ExecuteAsync() in [redacted]\Index.cshtml:line 13 at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context) at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts) at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable1 statusCode)
at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable1 statusCode) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ActionContext actionContext, IView view, ViewDataDictionary viewData, ITempDataDictionary tempData, String contentType, Nullable1 statusCode)
at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor.ExecuteAsync(ActionContext context, ViewResult result)
at Microsoft.AspNetCore.Mvc.ViewResult.ExecuteResultAsync(ActionContext context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker. g__Logged|22_0(ResourceInvoker invoker, IActionResult result)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker. g__Awaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters()
removed additional stack trace