Jump to content

File is Corrupt or was saved in a newer version of paint.net


Go to solution Solved by otuncelli,

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...