Author Topic: Trying to save a project - getting a swap file error  (Read 3274 times)

Offline Philip de Louraille

  • PixInsight Addict
  • ***
  • Posts: 289
Trying to save a project - getting a swap file error
« on: 2014 August 10 11:59:19 »
I save a project on a USB drive so I can carry it between two work locations.
I modified the project just now and trying to save, or save as... and getting an error.
It looks like PI is referring to a swap file which may be on the other computer?
But I loaded and ran the project a few times today, made one mod to it and wanted to save it.
Philip de Louraille

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Trying to save a project - getting a swap file error
« Reply #1 on: 2014 September 11 04:35:28 »
Hi Philip,

The only way I can figure out for this to happen is if your operating system has removed the swap files before you write the projects, as part of an automatic cleanup of the /tmp directory. This is indeed very odd on Linux (should never happen as far as I know). Try setting PixInsight's swap directory to a different location; for example to a directory under your $HOME directory. Use EDIT > Global Preferences > Directories and Network > Swap Storage Directories, remove the default /tmp directory, add a different one, and execute the tool globally (F6).
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Jason Tackett

  • Newcomer
  • Posts: 44
    • Astrobin Page
Re: Trying to save a project - getting a swap file error
« Reply #2 on: 2014 September 11 07:32:02 »
Once upon a time I walked away from my computer for a few hours while working on an image with PixInsight. When I returned I received swap file errors because my Norton antivirus - recently reinstalled at the time - was set up to automatically delete temp files while the computer is idle. The swap file directory was apparently under it's perview, so I had to tell Norton to not mess with my PI swap file directory.

Not sure if this is involved with your issue, but thought I would share.

Jason

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Trying to save a project - getting a swap file error
« Reply #3 on: 2014 September 11 09:23:09 »
hi philip, as juan says sometimes OSX cleans out the /tmp directory, since it's hidden from 'normal' users and could end up filling up your disk with no way to delete the files (power users excepted of course)

the command apple uses should be looking for files that were not accessed in the last 3 days. i guess if you read the project in > 3 days ago and that xspm file was never touched, then it may have been deleted.

check this link: http://superuser.com/questions/187071/in-mac-os-x-how-often-is-tmp-deleted

bottom line is that in /etc/defaults/periodic.conf, i've modified the line:

Code: [Select]
daily_clean_tmps_ignore=".X*-lock .X11-unix .ICE-unix .font-unix .XIM-unix"
to
Code: [Select]
daily_clean_tmps_ignore=".X*-lock .X11-unix .ICE-unix .font-unix .XIM-unix ~PI64~*"

Offline Philip de Louraille

  • PixInsight Addict
  • ***
  • Posts: 289
Re: Trying to save a project - getting a swap file error
« Reply #4 on: 2014 September 11 21:15:20 »
Thanks everyone! I modified the /etc/defaults/periodic.conf file as indicated.

Many thanks!
Philip de Louraille