PATOOFA Posted April 1, 2018 Share Posted April 1, 2018 My computer crashed while I was working on a PDN file project. I now get this error when opening the file: System.FormatException: file is not a valid paint.net document at PaintDotNet.Document.FromStream(Stream stream) in D:\src\pdn\src\Data\Document.cs:line 1333 at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 496 at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Base\Functional\Func.cs:line 158 If someone could help me get this file working again that would be great. Even if there is a way to just convert the file to a PNG that's fine - I can work off that. Thanks! Quote Link to comment Share on other sites More sharing options...
Pixey Posted April 1, 2018 Share Posted April 1, 2018 Hi @PATOOFA & Welcome. Please open PDN and go to the little Gear at the top right of the screen and click on Diagnostics and copy & paste the crash log to this thread. Quote How I made Jennifer & Halle in Paint.net My Gallery | My Deviant Art "Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon. Link to comment Share on other sites More sharing options...
PATOOFA Posted April 2, 2018 Author Share Posted April 2, 2018 5 hours ago, Pixey said: Hi @PATOOFA & Welcome. Please open PDN and go to the little Gear at the top right of the screen and click on Diagnostics and copy & paste the crash log to this thread. Hey thanks for the reply. I checked the crash logs and there is nothing. When the error appears, Paint.NET doesn't crash - the pdn file simply doesn't open. This is the error window that appears when I try opening my pdn file: Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted April 2, 2018 Share Posted April 2, 2018 You say that your computer crashed ... like the whole system? Or just Paint.NET? If the latter, then a crash log should still be available using the method Pixey described. And that's what we'll need. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
PATOOFA Posted April 2, 2018 Author Share Posted April 2, 2018 4 hours ago, Rick Brewster said: You say that your computer crashed ... like the whole system? Or just Paint.NET? If the latter, then a crash log should still be available using the method Pixey described. And that's what we'll need. My computer system randomly crashed while I was using Paint.NET. It had nothing to do with Paint.NET - it was simply a Windows error. The crash log is empty. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted April 2, 2018 Share Posted April 2, 2018 Okay, darn. When Paint.NET saves an image it uses a technique that ensures there isn't data loss in the event of an app crash. However, if your computer randomly crashed on its own then there's no real guarantee -- there's no good way to know what happened, what caused it, etc. You could look in the folder where you saved the image, there might be a file with the same name but a ".pdnBak" extension. If it's there then you're in luck: rename it to remove the .pdnBak. Otherwise, sadly, your file is toast. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
PATOOFA Posted April 2, 2018 Author Share Posted April 2, 2018 26 minutes ago, Rick Brewster said: Okay, darn. When Paint.NET saves an image it uses a technique that ensures there isn't data loss in the event of an app crash. However, if your computer randomly crashed on its own then there's no real guarantee -- there's no good way to know what happened, what caused it, etc. You could look in the folder where you saved the image, there might be a file with the same name but a ".pdnBak" extension. If it's there then you're in luck: rename it to remove the .pdnBak. Otherwise, sadly, your file is toast. Damn, could I give you the file and see if you can do something with it? It is still a .pdn file so I assume the data should still be there, but Paint.NET can't open it due to some issue. It won't let me upload the file here as it is over 256kb. Maybe I can DM the file to you? Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted April 2, 2018 Share Posted April 2, 2018 No, there's nothing I can do with it. There's no magical forensic recovery tool for PDNs, unfortunately. It either works or it doesn't. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
PATOOFA Posted April 2, 2018 Author Share Posted April 2, 2018 Welp, there goes ~20 hours of work. Thanks for trying though. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted April 2, 2018 Share Posted April 2, 2018 Backups, backups, backups! Save often and always make backups. Unfortunately it can't be done retroactively :-\ Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
PATOOFA Posted April 2, 2018 Author Share Posted April 2, 2018 Not sure if this matters, but it says the file is 297kb. That must mean the data is still there, right? I just can't open it. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted April 2, 2018 Share Posted April 2, 2018 It means that 297kb worth of something is there. It isn't necessarily coherent data though, it could be scrambled or just a bunch of zeros. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
PATOOFA Posted April 2, 2018 Author Share Posted April 2, 2018 But why would all the information get scrambled? I remember saving the project a few minutes before the crash, which means the data (pre-crash) was stored - so I don't see why the entire thing would get scrambled without me doing anything. Quote Link to comment Share on other sites More sharing options...
Pixey Posted April 2, 2018 Share Posted April 2, 2018 @PATOOFA I'm so sorry you lost the file. Been there done that ! If you could save the PDN File to Drop Box and post the link here, I can take a look at what is inside, if anything, to put your mind to rest Quote How I made Jennifer & Halle in Paint.net My Gallery | My Deviant Art "Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon. Link to comment Share on other sites More sharing options...
PATOOFA Posted April 2, 2018 Author Share Posted April 2, 2018 I haven't used Dropbox for a while so I may have done it wrong, but here you go: https://www.dropbox.com/s/quqfpwqe66giram/city_Buildings - Original.pdn?dl=0 Quote Link to comment Share on other sites More sharing options...
Pixey Posted April 2, 2018 Share Posted April 2, 2018 Sorry - I opened it and I get the exact same error message you do. No data there. I was really hoping, but it's not to be . When I first started out learning PDN @barbieq25 drummed it into me, to save often and make it a regular thing. Now, once I'm making something I save it to PDN in different stages, so if I mess up I can find the one before. I know this is not much consolation Quote How I made Jennifer & Halle in Paint.net My Gallery | My Deviant Art "Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon. Link to comment Share on other sites More sharing options...
toe_head2001 Posted April 2, 2018 Share Posted April 2, 2018 Yeah, just as Rick said, literally just a bunch of zeros in your file. Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
PATOOFA Posted April 2, 2018 Author Share Posted April 2, 2018 Thank you everyone for trying to help. Very good mods and admins here! At least now I'm more experienced with the program so it should be much faster to redo. 2 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.