I tried reducing the psd file to lower size and this happened:
System.AggregateException: One or more errors occurred. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at PhotoshopFile.Channel.DecompressImageData()
at PhotoshopFile.Channel.DecodeImageData()
at PhotoshopFile.PsdFile.<DecompressImages>b__1(Channel channel)
at System.Threading.Tasks.Parallel.<>c__DisplayClass27`2.<PartitionerForEachWorker>b__29()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object )
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
at PhotoshopFile.PsdFile.DecompressImages()
at PhotoshopFile.PsdFile.Load(Stream stream, LoadContext loadContext)
at Faces.Core.PSDLayer.FromPSD(String filename)
at Faces.Core.Process.LoadLayers()
at Faces.Core.Process.GetAllLayers()
at Faces.MainWindowVM.<RefreshAllLayersAsync>b__1f()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Faces.MainWindowVM.<RefreshAllLayersAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Faces.MainWindowVM.<ChangePSDCmdAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Faces.AsyncRelayCommand.<FireAndForget>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c__DisplayClass2.<ThrowAsync>b__3(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
---> (Inner Exception #0) System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at PhotoshopFile.Channel.DecompressImageData()
at PhotoshopFile.Channel.DecodeImageData()
at PhotoshopFile.PsdFile.<DecompressImages>b__1(Channel channel)
at System.Threading.Tasks.Parallel.<>c__DisplayClass27`2.<PartitionerForEachWorker>b__29()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object )<---
---> (Inner Exception #1) System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at PhotoshopFile.Channel.DecompressImageData()
at PhotoshopFile.Channel.DecodeImageData()
at PhotoshopFile.PsdFile.<DecompressImages>b__1(Channel channel)
at System.Threading.Tasks.Parallel.<>c__DisplayClass27`2.<PartitionerForEachWorker>b__29()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object )<---
---> (Inner Exception #2) System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at PhotoshopFile.Channel.DecompressImageData()
at PhotoshopFile.Channel.DecodeImageData()
at PhotoshopFile.PsdFile.<DecompressImages>b__1(Channel channel)
at System.Threading.Tasks.Parallel.<>c__DisplayClass27`2.<PartitionerForEachWorker>b__29()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object )<---
---> (Inner Exception #3) System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at PhotoshopFile.Channel.DecompressImageData()
at PhotoshopFile.Channel.DecodeImageData()
at PhotoshopFile.PsdFile.<DecompressImages>b__1(Channel channel)
at System.Threading.Tasks.Parallel.<>c__DisplayClass27`2.<PartitionerForEachWorker>b__29()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object )<---
---> (Inner Exception #4) System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at PhotoshopFile.Channel.DecompressImageData()
at PhotoshopFile.Channel.DecodeImageData()
at PhotoshopFile.PsdFile.<DecompressImages>b__1(Channel channel)
at System.Threading.Tasks.Parallel.<>c__DisplayClass27`2.<PartitionerForEachWorker>b__29()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object )<---
---> (Inner Exception #5) System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at PhotoshopFile.Channel.DecompressImageData()
at PhotoshopFile.Channel.DecodeImageData()
at PhotoshopFile.PsdFile.<DecompressImages>b__1(Channel channel)
at System.Threading.Tasks.Parallel.<>c__DisplayClass27`2.<PartitionerForEachWorker>b__29()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object )<---
---> (Inner Exception #6) System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at PhotoshopFile.Channel.DecompressImageData()
at PhotoshopFile.Channel.DecodeImageData()
at PhotoshopFile.PsdFile.<DecompressImages>b__1(Channel channel)
at System.Threading.Tasks.Parallel.<>c__DisplayClass27`2.<PartitionerForEachWorker>b__29()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object )<---