Author Topic: Stopping PI leaves a second process active  (Read 3634 times)

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Stopping PI leaves a second process active
« on: 2010 June 05 09:31:52 »
Hi,

I am running a ProcessContainer on a number of images using an ImageContainer. When I close PI using the red cross icon on the top left, the GUI terminates. Looking at the task manager I see that a PI process continues to run. Platform is Win7-x64.

Georg
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: Stopping PI leaves a second process active
« Reply #1 on: 2010 June 06 11:11:56 »
Do you close PI's main window while ImageContainer is running? In such case, the bug is in the fact that you shouldn't be able to close the main window while a process is running. If I can confirm this then we have another critical error.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Stopping PI leaves a second process active
« Reply #2 on: 2010 June 06 11:47:44 »
Juan,

yes, I am closing PI while the Image Container is running. I get a message about locked views, but I can proceed anyway.

Georg
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: Stopping PI leaves a second process active
« Reply #3 on: 2010 June 10 01:37:25 »
Quote
I get a message about locked views, but I can proceed anyway.

That message is telling you that you're about to terminate the application in an unsafe way. While this is coherent with the way PixInsight has been designed (modularly), the bug is in the thread that remains live after terminating the core application.

That thread is the watchdog thread that controls execution of multiple instances of PixInsight (and in a near future, communication and data sharing between running instances). The watchdog should die when its mother core application terminates; I'll try to fix this problem as soon as possible.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/