Author Topic: PI keeps losing temporary file  (Read 1891 times)

Offline Lord Beowulf

  • Newcomer
  • Posts: 21
PI keeps losing temporary file
« on: 2018 October 22 18:12:37 »
Hi All,

So I spend days or even weeks with PI open working on a project trying to figure out suitable settings for a process.  However, when I go to save the project I quite regularly get an error message that PI has lost some temporary file and I can't save my work any more.  This is getting incredibly frustrating since this seems like a pretty basic thing that PI can't seem to handle.  Any thoughts on how to address this or is it just a bug?

Thanks,

Beo

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: PI keeps losing temporary file
« Reply #1 on: 2018 October 22 19:06:33 »
OSX?

two solutions: 1) edit the cron script in OSX that cleans out /tmp every 3 days. or 2) tell PI to store it's 'swap' files somewhere else than /tmp. the setting is in Global Preferences, Directories and Network tab. after changing the directory, don't forget to click the round button to apply the global settings.

rob

Offline Lord Beowulf

  • Newcomer
  • Posts: 21
Re: PI keeps losing temporary file
« Reply #2 on: 2018 October 22 20:36:33 »
Nope, Windows 10. 

Thanks,

Beo

Offline RickS

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1298
Re: PI keeps losing temporary file
« Reply #3 on: 2018 October 22 20:57:06 »
I doubt that it is PI "losing" the files.  Something else is probably deleting them.  Moving the PI temp directory somewhere else may put the files out of harms way.

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: PI keeps losing temporary file
« Reply #4 on: 2018 October 22 22:51:23 »
yes - have never heard of this problem happening outside of OSX; as mentioned it's because if PI stores its files in /tmp, a cron script comes along and erases them periodically.

if there's any similar process on your windows machine, that could account for it. as rick says, you should at least check where PI is storing it's swap files and see if it could be vulnerable to something like this.

rob

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1178
    • astrobin
Re: PI keeps losing temporary file
« Reply #5 on: 2018 October 23 04:41:49 »
The default swap storage space that PI uses in Windows is a general location that most software uses. PI places a swap folder for the files in this location as do most software. Some Anti-virus and cleanup utilities will delete files in this location as a normal operation. Here is a screen shot showing the PI default settings on Windows 10 and what I use on another computer. I have not had an issue on either computer but I don't run any automated cleanup software. I also don't leave PI open when I'm not processing as I save projects regularly. My computers are also shut down when not in use.


The multiple entries in the second computer has to do with multi-threaded processing speed. That is talked about in many postings about swap files and benchmarks.


Mike

Offline Lord Beowulf

  • Newcomer
  • Posts: 21
Re: PI keeps losing temporary file
« Reply #6 on: 2018 October 23 20:22:25 »
Well, the temporary files are in the standard Windows temp folder (under User/Appdata), but there should be nothing deleting them if they're still in use.  At a minimum, PI should be ensuring the files are locked while it's using them so that CAN'T happen.  I've never had any other application have a problem like this though, and I regularly leave things running for months.  There's no reason PI should be having this problem other than that there's a bug in PI. 

At any rate, I've gone ahead and moved pointed PI to its own temp folder so we'll see if the problem recurs.

Beo