Author Topic: Image permanently locked  (Read 3416 times)

Offline naavis

  • Member
  • *
  • Posts: 66
Image permanently locked
« on: 2013 August 27 11:34:06 »
Hi!

I managed to permanently lock an image. I applied a mask to an open image. Then I opened DynamicCrop and cropped the image. PixInsight warned me about possibly losing previews and masks. Now the applied mask becomes permanently locked. I can close the DynamicCrop window and the original image, but cannot close the mask. PixInsight just says "One or more views have been locked by an active processing thread. Cannot close locked image."

I'm using PI 1.8 RC7.
« Last Edit: 2013 August 27 23:34:43 by naavis »
Samuli Vuorinen

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Image permanently locked
« Reply #1 on: 2013 August 28 01:22:38 »
Did you see any error messages before this? Can you describe a repeatable sequence of actions that cause this problem? This would really help Juan in finding the problem.
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: Image permanently locked
« Reply #2 on: 2013 August 28 01:39:08 »
Hi,

Bug confirmed. This is a regression in core version 1.8.0 RC7. It happens on all platforms with all tools pertaining to the Geometry category (and I cannot believe it has passed unnoticed until now!).

The bug is relatively easy to fix, but I am currently on (something slightly similar to) "vacation", so the fix will have to wait until the next week.

The workaround is obvious: Before applying any geometrical transformation (DynamicCrop, Resample, Crop, Rotation, etc.), remove any mask.

If you happen to forget the above and get a locked view, the solution is very easy. Enter the following command on PixInsight's console:

close --force <locked-view-id>

where <locked-view-id> is the identifier of the image that has been left locked. The --force argument will close the view unconditionally. There is no harm in doing this since the lock state is actually fake (the view is locked, but no thread depends on it).

Sorry for the inconvenience.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline naavis

  • Member
  • *
  • Posts: 66
Re: Image permanently locked
« Reply #3 on: 2013 August 28 03:50:50 »
Can you describe a repeatable sequence of actions that cause this problem? This would really help Juan in finding the problem.

That is what I tried to do in the first message. The problem was repeatable with all images. Thanks Juan for confirming this!
Samuli Vuorinen