Author Topic: ImageIntegration lags before starting  (Read 5013 times)

Offline EorEquis

  • Member
  • *
  • Posts: 63
ImageIntegration lags before starting
« on: 2015 February 02 07:15:59 »
For the last, oh, 2 weeks or so, I've noticed that ImageIntegration takes an increasingly longer time to "get started".  Upon clicking the Global Apply button, PI freezes, goes to "Not Responding", and is hung for quite some time before finally the Process Console appears, and integration begins.

At first, the delay could be measured in single digit seconds.  This morning, the delay was 42 seconds to begin integrating 18 frames and their .DRZ files.

I've changed no settings, nor made any changes to my calibration processes or files.

  • It happens consistently, every time I run ImageIntegration
  • It happens regardless of whether drizzle files are included
  • Once the process begins, it runs normally and quickly
  • No other process is affected.  All other processes start executing normally and in a timely manner.
  • The number of frames being integrated does not change the delay.  Right after waiting 42 seconds to begin integrating 18 frames, I attempted to integrate a different 32 frames.  The delay was 41s.

I'm not looking for an instant fix (though if anyone has one, that'd be awesome *heh* ) but rather some ideas as to where to start looking to troubleshoot.

Thanks in advance.

**EDIT**

Sorry, I should have been more thorough about system/software details.

Win7 64 bit, Intel Core i5-3570K, 16GB RAM
120gb SSD Swap Drive
PI 1.08.03.1123 Ripley (x64)
« Last Edit: 2015 February 02 07:21:04 by EorEquis »

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: ImageIntegration lags before starting
« Reply #1 on: 2015 February 02 07:21:10 »
Which OS? How much RAM? Did you restart PI in between? Did you try to reboot? How much memory does the PI process consume? Is memory consumption increasing with each ImageIntegration run? Are you using the BPP script?

Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline EorEquis

  • Member
  • *
  • Posts: 63
Re: ImageIntegration lags before starting
« Reply #2 on: 2015 February 02 08:34:24 »
Hi Georg!  Thanks for trying to assist.

Which OS? How much RAM?

I added this to the OP, apparently right about the same time you were asking.  Sorry for leaving that off. :)

Quote
Did you restart PI in between? Did you try to reboot?

Yes, this has happened over several weeks, many restarts of PI and several reboots of the machine.

Quote
How much memory does the PI process consume?

~ 100MB when it first launches.

Adding 18 1391x1039 FIT frames and their associated DRZ files to ImageIntegration brings it up to ~ 140MB

Clicking "Apply Global" leaves it unchanged, until processing starts, at which point it climbs slowly to a max of ~ 240MB, and then releases back to ~140MB when integration processing is complete.  There was a very brief (less than 1 second) spike to ~600mb as the integrated image was being rendered on the screen.

Quote
Is memory consumption increasing with each ImageIntegration run?

No.  Repeated integrations of the same 18+18 files resulted in the same memory usage. 

Perhaps of significance, if PI is not restarted, reintegrating the same files does not produce the delay.  If PI is restarted, or if other files are selected, then the delay returns.

Asking ImageIntegration to process any new set of frames, with or without drizzle files included, results in the delay to begin processing.  This is true regardless of whether PI is restarted in between or not.

Quote
Are you using the BPP script?

Yes, but only for calibration.  Registration and Integration are launched manually as separate processes.

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: ImageIntegration lags before starting
« Reply #3 on: 2015 February 02 08:39:46 »
Are the images on the SSD?
What type of SSD are you using? Samsung 840 EVO?
How much space is left on the SSD?
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline EorEquis

  • Member
  • *
  • Posts: 63
Re: ImageIntegration lags before starting
« Reply #4 on: 2015 February 02 09:06:37 »
Are the images on the SSD?
Quote

No.  In some cases, the images are on an internal drive, in other a USB3 external drive.  Issue is the same regardless of location, and there is no other issue opening/using files from either location in any other PI process or other application.

Quote
What type of SSD are you using? Samsung 840 EVO?

Toshiba THNSNH128GCST 128gb (not 120, sorry)

Quote
How much space is left on the SSD?

Unless PI is running, it is empty.  Being set as PI's swap drive is its only function.

Offline EorEquis

  • Member
  • *
  • Posts: 63
Re: ImageIntegration lags before starting
« Reply #5 on: 2015 February 02 09:30:36 »
Here is a video that shows the behaviour.

http://spaceonly.net/holding/videos/II_issue.wmv

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: ImageIntegration lags before starting
« Reply #6 on: 2015 February 02 09:55:31 »
could this be due to the image noise analysis cache becoming either too huge or corrupt?

you might try turning off "use file cache" and/or "evaluate noise" in ImageIntegration and see if anything changes.

rob

Offline EorEquis

  • Member
  • *
  • Posts: 63
Re: ImageIntegration lags before starting
« Reply #7 on: 2015 February 02 10:37:16 »
could this be due to the image noise analysis cache becoming either too huge or corrupt?

you might try turning off "use file cache" and/or "evaluate noise" in ImageIntegration and see if anything changes.

rob

Tried each/both, no change to the behaviour.  Also tried enabling/disabling pixel rejection and changing weights from All=1 to FITs keyword to Noise Evaluation...again, no change to behaviour.

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: ImageIntegration lags before starting
« Reply #8 on: 2015 February 02 13:06:49 »
bummer. i have seem slowness when the noise cache gets huge, so i had hoped it was the same problem.

at any rate this is where some kind of profiler would come in handy. this is actually built in to OSX, but on windows i don't know how you'd go about figuring out what routine PI is spending most of it's time in.

rob

Offline EorEquis

  • Member
  • *
  • Posts: 63
Re: ImageIntegration lags before starting
« Reply #9 on: 2015 February 02 15:10:17 »
Much obliged for the insights and noodling, Rob! :)

Offline EorEquis

  • Member
  • *
  • Posts: 63
Re: ImageIntegration lags before starting
« Reply #10 on: 2015 February 02 15:33:17 »
Wound up running the Reset PixInsight Settings app, which solved the problem.  now to go put everything back the way I had it.   :-\

Offline MortenBalling

  • Member
  • *
  • Posts: 74
Re: ImageIntegration lags before starting
« Reply #11 on: 2015 February 02 15:43:16 »
It sounds like the cache. Have you tried clearing memory cache?

Be aware that normally cache is your friend, and that even though PI waits for a while, when you hit global, once things start going, cache really speed up the process!

Br

Morten