Hi,
We get this kind of error in a solution. I cant figure out the cause of it. I see that there is a call to a RenderImagePatternItem. We are not using image patterns in the solution.
Any suggestions?
2023-06-10 10:41:18.5552|ERROR|eCom/Frontend/Errors|GetProductsFromIndexQuery
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at Go3540(RegexRunner )
at System.Text.RegularExpressions.RegexRunner.Scan(Regex regex, String text, Int32 textbeg, Int32 textend, Int32 textstart, Int32 prevlen, Boolean quick, TimeSpan timeout)
at System.Text.RegularExpressions.Regex.Run(Boolean quick, Int32 prevlen, String input, Int32 beginning, Int32 length, Int32 startat)
at System.Text.RegularExpressions.Regex.IsMatch(String input, Int32 startat)
at System.Text.RegularExpressions.Regex.IsMatch(String input, String pattern, RegexOptions options)
at Dynamicweb.Ecommerce.Products.ProductImageService.FileExists(String filePath)
at Dynamicweb.Ecommerce.Products.ProductImageService.GetImagePathFromDetail(String detailValue)
at Dynamicweb.Ecommerce.Products.ProductImageService.GetImagePath(Product product, List`1 details, Boolean ignoreNoPictureSetting, Shop shop)
at Dynamicweb.Ecommerce.Frontend.Renderer.GetDefaultProductImage(Product product, RenderingContext renderingContext)
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at Dynamicweb.Ecommerce.Frontend.Renderer.RenderImagePatternItem(ImagePattern image, Lazy`1 imageFile, String productNumber, Template template, String tagPrefix)
at Dynamicweb.Ecommerce.Frontend.Renderer.RenderImagePatterns(IList`1 imagePatterns, Product product, Template template, String tagPrefix, ProductCatalogSettings paragraphSettings, Shop shop, RenderingContext renderingContext)
at Dynamicweb.Ecommerce.Frontend.Renderer.RenderProduct(Product product, Boolean extendedProperties, Template template, Int32 loopCounter, Boolean renderRelated, String productUrl, Int32 quantity, Int32 wishListId, Boolean renderPublicList, Boolean isRecursiveCall, Lazy`1 categoryFieldSorting, Int32 orderLineOfProductCount, RenderingContext renderingContext, String unitId)
at Dynamicweb.Ecommerce.Frontend.Renderer.RenderProducts(ProductCollection products, Template parentTemplate, String loopName, Int32 loopCounter, Boolean renderRelatedProducts, Boolean renderRelatedLists, Boolean isRecursive, RenderingContext renderingContext)
at Dynamicweb.Ecommerce.Frontend.Renderer.RenderProductsWithContext(ProductCollection products, Template parentTemplate, RenderingContext renderingContext)
at Dynamicweb.Ecommerce.Frontend.Renderer.RenderProducts(ProductCollection products)
at Dynamicweb.Ecommerce.Frontend.Frontend.ListProducts(ProductCollection products, String groupsIdent, Boolean hasBeenSorted)
at Dynamicweb.Ecommerce.Frontend.Frontend.GetProductsFromIndexQuery(ProductCatalogShowType settingsType)
Regards / Aki