Author Topic: PI 1.8RC3 - Swap storage directories (Windows 7 64)  (Read 4290 times)

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
PI 1.8RC3 - Swap storage directories (Windows 7 64)
« on: 2013 February 11 13:23:22 »
If I add d:/Temp to the swap storage directories (Preferences/Directories and Network), remove the default c:/User... and apply globally,
the selection of d:/Temp as the default is lost on the next restart of PI (and c:/... is used again)

May be there is a trick that I did not yet find, but I think that this setting should permanent.  I have an SSD on D: and regularly forget to restore it as the temp storage. This really makes a difference !

-- bitli


Offline Alejandro Tombolini

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1267
    • Próxima Sur
Re: PI 1.8RC3 - Swap storage directories (Windows 7 64)
« Reply #1 on: 2013 February 11 20:58:07 »
That is something that I still have to re check (and I do not have 1.8RC3 now), but I believe that in Linux happens something similar when adding a second directory, when restart there is only one again.

Saludos. Alejandro.

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
Re: PI 1.8RC3 - Swap storage directories (Windows 7 64)
« Reply #2 on: 2013 February 11 22:48:56 »
I think it was already the case in 1.7.

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
Re: PI 1.8RC3 - Swap storage directories (Windows 7 64)
« Reply #3 on: 2013 March 13 13:34:40 »
Sorry to restart this thread, but the problem still occurs in PI1.8 RC 4 (7/64). Some settings are saved (like capitalized fonts), other are not (like maximum number of processor and swap file).

I tried a workaround by adding this to the startup.scp file, but it seems that PI overwrite the settings AFTER the startup file is executed (the function seems executed and the OK is shown)

Code: [Select]
.js var P = new Preferences; P.Process_maxProcessors = 6; P.ImageWindow_swapDirectories = [ ["D:/Temp"]];P.executeGlobal(); "OK"
Is there any other possible workaround?  Is it possible to write a C module that would be executed at starzup and set the proper preferences ?

-- bitli

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PI 1.8RC3 - Swap storage directories (Windows 7 64)
« Reply #4 on: 2013 March 13 14:17:21 »
Hi bitli,

I can't reproduce this problem. Preferences are saved and remembered across sessions on all platforms (I have just checked this). Are you sure you're applying the Preferences process globally (F6)?
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
Re: PI 1.8RC3 - Swap storage directories (Windows 7 64)
« Reply #5 on: 2013 March 13 22:30:11 »
Yes, I checked against this morning - I did not have the time to make a video.   Anyhow the javascript 'workaround' is doing a global apply and has no effect either.  If nobody else has this problem I will do systematic checks on Linux and Windows, maybe playing with rights.  I first though that may be setting files was write protected or a ghost file as Windows is sometime creating, but other settings seems to work.

Am I supposed to see the setting show in the AppData\Roaming\Pleiades\PixInsight.ini file ?

Illl keep you informed.

-- bitli

PS. BTW the other issues with PJSR FITSKeywords are solved on RC4, thank you very much.

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
Re: PI 1.8RC3 - Swap storage directories (Windows 7 64)
« Reply #6 on: 2013 March 14 14:38:53 »
I checked again running PI as administrator and I have the same problem. Idem on FC 17.  May I have misunderstood how to press apply ... I sent a short screen capture video to Juan.

By the way PI starts up much much faster under FC in the VM than as native under Windows 7.  Go figure.

-- bitli

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
Re: PI 1.8RC3 - Swap storage directories (Windows 7 64) - Solution
« Reply #7 on: 2013 March 16 10:25:35 »
EUREKA
This is one of this behavior of PI that I find somewhat baroque.
If you open Global/Preferences, you MUST manually request Load current settings (button at the bottom left) orLoad current page settings on the settings you want to modify, otherwise you will lose other modifications you may have made on the same page.

Also the Apply button applies the modification of the current page ONLY. If you made modification on multiple pages, you must apply them on each page individually, otherwise the modification will be silently ignored.

So finally it is not a bug, just a trap  :)
-- bitli


Offline Alejandro Tombolini

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1267
    • Próxima Sur
Re: PI 1.8RC3 - Swap storage directories (Windows 7 64)
« Reply #8 on: 2013 March 16 11:20:34 »
Hi bitly, even when I think I saw some similar to what you described in previous versions, it does not happens now in RC4 in Linux. I can apply Global or F6 in any time and the setting are saved, and remain there even after restart PI.
Saludos, Alejandro.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PI 1.8RC3 - Swap storage directories (Windows 7 64) - Solution
« Reply #9 on: 2013 March 18 03:09:12 »
Quote
This is one of this behavior of PI that I find somewhat baroque.

This is just how PixInsight is and works. The Preferences process isn't different from the rest of PI processes: it is completely independent on the data objects it acts on. This means that if you open the Preferences interface from Process Explorer (also from the Process main menu item, which is deprecated), what you'll see is just the Preferences instance currently loaded in the interface, which has nothing to do with the state of the Preferences object in the PI Core application. This is a side effect of the isolation between processes and data that characterizes PixInsight.

You can click the Load current settings and Load current page settings buttons to copy the corresponding data from the global preferences object to the instance in the Preferences interface. However, the Edit > Global Preferences main menu item is a convenience shortcut to load the current preferences object in the Preferences interface, and is the recommended way to modify your preferences.

Quote
Also the Apply button applies the modification of the current page ONLY.

Nope. It applies the whole Preferences instance. Otherwise we'd have a bug, but I can't see it on any platform.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/