ItzT3D Posted June 5, 2022 Share Posted June 5, 2022 As i tried to open a .pdn file i got this error: (paint.net version 4.3.11) Exception: System.Runtime.Serialization.SerializationException: Invalid BinaryFormatter stream. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.OutOfMemoryException: VirtualAlloc returned a null pointer, bytes = 1.194.833.640 ---> System.AggregateException: One or more errors occurred. (VirtualAlloc returned a null pointer, bytes = 1.194.833.640) (VirtualAlloc returned a null pointer, bytes = 1.194.833.640) (VirtualAlloc returned a null pointer, bytes = 1.194.833.640) (VirtualAlloc returned a null pointer, bytes = 1.194.833.640) (VirtualAlloc returned a null pointer, bytes = 1.194.833.640) ---> System.OutOfMemoryException: VirtualAlloc returned a null pointer, bytes = 1.194.833.640 at PaintDotNet.SystemLayer.Memory.AllocateLarge(UInt64 bytes, Boolean zeroFill) in D:\src\pdn\src_4_3_x\SystemLayer\Memory.cs:line 156 at PaintDotNet.Runtime.RetryManager.<>c__DisplayClass7_0`1.<RunMemorySensitiveOperation>b__0() in D:\src\pdn\src_4_3_x\Base\Runtime\RetryManager.cs:line 135 at PaintDotNet.Runtime.RetryManager.RunMemorySensitiveOperation(Int32 maxAttempts, Action action) in D:\src\pdn\src_4_3_x\Base\Runtime\RetryManager.cs:line 190 --- End of inner exception stack trace --- ---> (Inner Exception #1) System.OutOfMemoryException: VirtualAlloc returned a null pointer, bytes = 1.194.833.640 at PaintDotNet.SystemLayer.Memory.AllocateLarge(UInt64 bytes, Boolean zeroFill) in D:\src\pdn\src_4_3_x\SystemLayer\Memory.cs:line 156 at PaintDotNet.Runtime.RetryManager.<>c__DisplayClass7_0`1.<RunMemorySensitiveOperation>b__0() in D:\src\pdn\src_4_3_x\Base\Runtime\RetryManager.cs:line 135 at PaintDotNet.Runtime.RetryManager.RunMemorySensitiveOperation(Int32 maxAttempts, Action action) in D:\src\pdn\src_4_3_x\Base\Runtime\RetryManager.cs:line 190<--- ---> (Inner Exception #2) System.OutOfMemoryException: VirtualAlloc returned a null pointer, bytes = 1.194.833.640 at PaintDotNet.SystemLayer.Memory.AllocateLarge(UInt64 bytes, Boolean zeroFill) in D:\src\pdn\src_4_3_x\SystemLayer\Memory.cs:line 156 at PaintDotNet.Runtime.RetryManager.<>c__DisplayClass7_0`1.<RunMemorySensitiveOperation>b__0() in D:\src\pdn\src_4_3_x\Base\Runtime\RetryManager.cs:line 135 at PaintDotNet.Runtime.RetryManager.RunMemorySensitiveOperation(Int32 maxAttempts, Action action) in D:\src\pdn\src_4_3_x\Base\Runtime\RetryManager.cs:line 190<--- ---> (Inner Exception #3) System.OutOfMemoryException: VirtualAlloc returned a null pointer, bytes = 1.194.833.640 at PaintDotNet.SystemLayer.Memory.AllocateLarge(UInt64 bytes, Boolean zeroFill) in D:\src\pdn\src_4_3_x\SystemLayer\Memory.cs:line 156 at PaintDotNet.Runtime.RetryManager.<>c__DisplayClass7_0`1.<RunMemorySensitiveOperation>b__0() in D:\src\pdn\src_4_3_x\Base\Runtime\RetryManager.cs:line 135 at PaintDotNet.Runtime.RetryManager.RunMemorySensitiveOperation(Int32 maxAttempts, Action action) in D:\src\pdn\src_4_3_x\Base\Runtime\RetryManager.cs:line 190<--- ---> (Inner Exception #4) System.OutOfMemoryException: VirtualAlloc returned a null pointer, bytes = 1.194.833.640 at PaintDotNet.SystemLayer.Memory.AllocateLarge(UInt64 bytes, Boolean zeroFill) in D:\src\pdn\src_4_3_x\SystemLayer\Memory.cs:line 156 at PaintDotNet.Runtime.RetryManager.<>c__DisplayClass7_0`1.<RunMemorySensitiveOperation>b__0() in D:\src\pdn\src_4_3_x\Base\Runtime\RetryManager.cs:line 135 at PaintDotNet.Runtime.RetryManager.RunMemorySensitiveOperation(Int32 maxAttempts, Action action) in D:\src\pdn\src_4_3_x\Base\Runtime\RetryManager.cs:line 190<--- --- End of inner exception stack trace --- at PaintDotNet.Runtime.RetryManager.RunMemorySensitiveOperation(Int32 maxAttempts, Action action) in D:\src\pdn\src_4_3_x\Base\Runtime\RetryManager.cs:line 190 at PaintDotNet.Runtime.RetryManager.RunMemorySensitiveOperation[T](Int32 maxAttempts, Func`1 func) in D:\src\pdn\src_4_3_x\Base\Runtime\RetryManager.cs:line 0 at PaintDotNet.MemoryBlock..ctor(SerializationInfo info, StreamingContext context) in D:\src\pdn\src_4_3_x\Core\MemoryBlock.cs:line 515 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeConstructorInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context) at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder) at System.Runtime.Serialization.ObjectManager.DoFixups() at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(BinaryParser serParser) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream) --- End of inner exception stack trace --- at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream) at PaintDotNet.Document.FromStream(Stream stream) in D:\src\pdn\src_4_3_x\Data\Document.cs:line 1337 at PaintDotNet.Data.PdnFileType.OnLoad(Stream input) in D:\src\pdn\src_4_3_x\PaintDotNet\Data\PdnFileType.cs:line 31 at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src_4_3_x\Data\FileType.cs:line 498 at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src_4_3_x\Base\Functional\Func.cs:line 158 Any way to fix this? I spent many hours on this. Quote Link to comment Share on other sites More sharing options...
Solution otuncelli Posted June 5, 2022 Solution Share Posted June 5, 2022 Looks like, you're running out of memory. Try again after closing some other programs or images. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.