Planetside Software Forums

General => Terragen Discussion => Topic started by: WAS on June 08, 2018, 03:46:50 AM

Title: Crashes and Corrupted Temp Files
Post by: WAS on June 08, 2018, 03:46:50 AM
Just a note for people, if you crash during a render you may end up with corrupted temporary files within windows user temp. I was trying to restore a old hard drive from my desktop and it went through and removed over 20 bad PNG images and TIF images from folders for /Terragen/. These can amount, like in my instance to a bad sector that needed remapping.

So if you do crash while rendering you may want to run a chkdsk /r to cleanup before files start piling up.  I wasn't aware of this and had probably 2 years worth of TG crashes and corrupted files which isn't good to carry around.

The hard drive is toast, but I doubt from TG, there was lots of Windows update files corrupted (probably crashes) that lead to a lot of remapping to the point a fresh copy of Windows 10 is triggering start up repair and going into a restart loop. My luck with being poor and second hand or hand me down hardware is always a fun tale.
Title: Re: Crashes and Corrupted Temp Files
Post by: jaf on June 08, 2018, 02:14:14 PM
Were you using a file recovery program like Recuva?  Most of those apps will attempt to recover deleted files, which the win/temp areas would have plenty -- and plenty will be trashed by being over-written.  But maybe I not understanding how you were attempting to recover the files.

Title: Re: Crashes and Corrupted Temp Files
Post by: WAS on June 08, 2018, 09:09:01 PM
Quote from: jaf on June 08, 2018, 02:14:14 PM
Were you using a file recovery program like Recuva?  Most of those apps will attempt to recover deleted files, which the win/temp areas would have plenty -- and plenty will be trashed by being over-written.  But maybe I not understanding how you were attempting to recover the files.

Oh no, this is chkdsk, which finds bad clusters (the bits of files). 

This was true with temp files on another HDD that used TG that I had to use to get this computer online, however this one did not have bad sectors luckily.

This is common with any file open with read-write privileges if a crash happens, it'll likely corrupt parts if not all of the file. For example my sons tablet that I put movies on, conveniently corrupts every movie it's playing when the battery dies -_-

This is the exact reason my media external TB is set to read only unless I'm putting movies or content on it.