Author Topic: PI won't load more than one instance  (Read 7485 times)

Offline Geoff

  • PixInsight Padawan
  • ****
  • Posts: 908
PI won't load more than one instance
« on: 2014 January 23 01:45:17 »
I installed the latest version of PixInsight (1.8.1) and now I can't load more than one instance of PixInsight. I am running 64 bit Windows 7.  Clicking PixInsight on the start menu does nothing. The command line instruction $ PixInsight -n gives the error message "Command not found: PixInsight". 
Geoff
Don't panic! (Douglas Adams)
Astrobin page at http://www.astrobin.com/users/Geoff/
Webpage (under construction) http://geoffsastro.smugmug.com/

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: PI won't load more than one instance
« Reply #1 on: 2014 January 23 02:26:32 »
You probably need to specify the path to the PI executable.
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PI won't load more than one instance
« Reply #2 on: 2014 January 23 07:07:34 »
On Windows, enter the following command from the Process Console window to execute a new instance:

!!"$PXI_BINDIR/PixInsight" -n

On UNIX/Linux and Mac OS X, remove the double quotes.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: PI won't load more than one instance
« Reply #3 on: 2014 January 23 07:11:31 »
It be very useful that the Windows installer would add a new entry in the menu that launched and additional instance. I have made one by hand ("PixInsight.exe -n") and it works well.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PI won't load more than one instance
« Reply #4 on: 2014 January 23 07:15:02 »
Actually, I've been considering adding a File > Run New Instance main menu command in the next version.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: PI won't load more than one instance
« Reply #5 on: 2014 January 23 07:30:58 »
I was thinking in the "Start menu" of Windows instead of inside the application. I have sometimes to open a new instance of PI while it runs a long process (like the calibration of several tens of images).

Offline Geoff

  • PixInsight Padawan
  • ****
  • Posts: 908
Re: PI won't load more than one instance
« Reply #6 on: 2014 January 23 14:39:37 »
On Windows, enter the following command from the Process Console window to execute a new instance:

!!"$PXI_BINDIR/PixInsight" -n

On UNIX/Linux and Mac OS X, remove the double quotes.
Thanks Juan.  That works.  But what I don't understand is that in previous versions of PixInsight I could go to the start menu and click on the PixInsight entry pinned to the start menu and a new instance would be generated, but this no longer works with version 1.8.1.  Just curious for the reason for the change in behaviour.
Geoff
Don't panic! (Douglas Adams)
Astrobin page at http://www.astrobin.com/users/Geoff/
Webpage (under construction) http://geoffsastro.smugmug.com/

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: PI won't load more than one instance
« Reply #7 on: 2014 January 24 00:58:57 »
Geoff,

the reason is that many people were confused by the fact that different instances use different sets of settings. For instance, Global Settings are not shared between instances. This lead to all kinds of confusion about lost updates etc.

Juan,

I still wonder why you did not prefer to use one set of profiles for all instances. That's what most other applications do.

Anyway: On Windows you should add a new entry in the Start menue. An entry inside the main PixInsight menu is not so useful because you cannot use it to launch a new instance while the current one is busy.
Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
Re: PI won't load more than one instance
« Reply #8 on: 2014 January 24 05:44:22 »
Geoff,
An even more annoying problem was that on Window, if you restarted PI quickly (a few seconds) after shutting it down, it was creating a "second" instance (although the first one was not visible anymore). This behavior, combined with the separate settings for the second instance, was very confusing.

Some people think that it was due to Virus or malware.  But in fact it happened quite systematically if you had very large workspace/ many files / may be large swap file?. Even on system with light or no antivirus (and unlikely to be infected).  I think that the main thread was still present and detected, maybe while windows was releasing memory (possibly clearing temporary space or doing whatever it feels was needed).  I have no definitive explanation, but it was simpler to ask Juan to change PI than Bill to change W7  ;)

As for the settings, the sharing may not be easy due to the way PI write them (who win in case of multiple write?).  You do not want to implement a database with locking, consistency checks, ...Maybe an option to open the settings read-only so a new instance can use the main settings? But I think that Juan has a lot of more important things to do and the current situation is adequate for me.

-- bitli

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: PI won't load more than one instance
« Reply #9 on: 2014 January 24 05:56:22 »
But I think that Juan has a lot of more important things to do and the current situation is adequate for me.
I agree with you. If there was an easy way for launching an additional instance the current behavior would be enough for me.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PI won't load more than one instance
« Reply #10 on: 2014 January 25 17:22:00 »
Since build 1083, which we have just released, the Windows installer adds an option to launch a new application instance. Thank you for the suggestion.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline mads0100

  • PixInsight Addict
  • ***
  • Posts: 116
Re: PI won't load more than one instance
« Reply #11 on: 2016 March 24 11:14:36 »
How can you do this on OS X?  Do I need to be in the PI folder?


Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PI won't load more than one instance
« Reply #12 on: 2016 April 05 03:53:06 »
Just enter the following command from the Process Console window:

!!$PXI_COREDIR/PixInsight -n

This will run a new instance of the PixInsight Core application as an independent process (known as a daemon on UNIX/Linux).
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Philippe B.

  • PixInsight Old Hand
  • ****
  • Posts: 399
    • CIEL AUSTRAL
Re: PI won't load more than one instance
« Reply #13 on: 2017 October 18 04:10:49 »
Hello
I'm back on this subject because I cannot launch several instances of Pixinsight 1.8.5 under Linux Ubuntu 16.04
When I launch  !!$PXI_COREDIR/PixInsight -n  in console, another session of Pixinsight launch but immediately with "FATAL ERROR : Segmentation violation", then close the 2nd instance.
On OSX, it works fine (under High Sierra )

any idea ?
« Last Edit: 2017 October 18 04:23:11 by Philippe B. »

Offline Philippe B.

  • PixInsight Old Hand
  • ****
  • Posts: 399
    • CIEL AUSTRAL
Re: PI won't load more than one instance
« Reply #14 on: 2017 October 27 00:23:55 »
Hello
No idea on this issue under Ubuntu 16.04 ? Or anything to test ?
Thank you !