Hello,
When upgrading from Umbraco 7.2.2 to 7.15.1 I suddenly got Outofmemory in one of the test environments. I had it up and running at first, but after some bug fixes, not related to this suddenly this happened.
ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
System.TypeInitializationException: The type initializer for 'ImageProcessor.Web.Helpers.ImageHelpers' threw an exception. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Reflection.AssemblyName.nGetFileInformation(String s)
at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)
at ImageProcessor.Common.Helpers.TypeFinder.GetAllAssemblies()
at ImageProcessor.Common.Helpers.TypeFinder.GetFilteredAssemblies(IEnumerable1 excludeFromResults, String[] exclusionFilter)
at ImageProcessor.Common.Helpers.TypeFinder.GetAssembliesWithKnownExclusions(IEnumerable1 excludeFromResults)
at ImageProcessor.Configuration.ImageProcessorBootstrapper.LoadSupportedImageFormats()
at ImageProcessor.Configuration.ImageProcessorBootstrapper..ctor()
at ImageProcessor.Configuration.ImageProcessorBootstrapper.<>c.<.cctor>b19_0()
at System.Lazy1.CreateValue()
at System.Lazy1.LazyInitValue()
at System.Lazy1.get_Value()
at ImageProcessor.Web.Helpers.ImageHelpers.BuildExtensionRegexPattern()
at ImageProcessor.Web.Helpers.ImageHelpers..cctor()
--- End of inner exception stack trace ---
at ImageProcessor.Web.Helpers.ImageHelpers.IsValidImageExtension(String fileName)
at ImageProcessor.Web.Services.LocalFileImageService.IsValidRequest(String path)
at ImageProcessor.Web.HttpModules.ImageProcessingModule.<>c__DisplayClass37_0.<GetImageServiceForRequest>b__0(IImageService s)
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func`2 predicate)
at ImageProcessor.Web.HttpModules.ImageProcessingModule.GetImageServiceForRequest(String url, String applicationPath)
at ImageProcessor.Web.HttpModules.ImageProcessingModule.31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar)
at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Outofmemory exception on ImageProcessor
Hello, When upgrading from Umbraco 7.2.2 to 7.15.1 I suddenly got Outofmemory in one of the test environments. I had it up and running at first, but after some bug fixes, not related to this suddenly this happened.
ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred System.TypeInitializationException: The type initializer for 'ImageProcessor.Web.Helpers.ImageHelpers' threw an exception. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.Reflection.AssemblyName.nGetFileInformation(String s) at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile) at ImageProcessor.Common.Helpers.TypeFinder.GetAllAssemblies() at ImageProcessor.Common.Helpers.TypeFinder.GetFilteredAssemblies(IEnumerable
1 excludeFromResults, String[] exclusionFilter) at ImageProcessor.Common.Helpers.TypeFinder.GetAssembliesWithKnownExclusions(IEnumerable
1 excludeFromResults) at ImageProcessor.Configuration.ImageProcessorBootstrapper.LoadSupportedImageFormats() at ImageProcessor.Configuration.ImageProcessorBootstrapper..ctor() at ImageProcessor.Configuration.ImageProcessorBootstrapper.<>c.<.cctor>b19_0() at System.Lazy1.CreateValue() at System.Lazy
1.LazyInitValue() at System.Lazy1.get_Value() at ImageProcessor.Web.Helpers.ImageHelpers.BuildExtensionRegexPattern() at ImageProcessor.Web.Helpers.ImageHelpers..cctor() --- End of inner exception stack trace --- at ImageProcessor.Web.Helpers.ImageHelpers.IsValidImageExtension(String fileName) at ImageProcessor.Web.Services.LocalFileImageService.IsValidRequest(String path) at ImageProcessor.Web.HttpModules.ImageProcessingModule.<>c__DisplayClass37_0.<GetImageServiceForRequest>b__0(IImageService s) at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable
1 source, Func`2 predicate) at ImageProcessor.Web.HttpModules.ImageProcessingModule.GetImageServiceForRequest(String url, String applicationPath) at ImageProcessor.Web.HttpModules.ImageProcessingModule.31.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar) at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)is working on a reply...