Author Topic: PixInsight API Error 37  (Read 4169 times)

Offline MikeOates

  • PixInsight Addict
  • ***
  • Posts: 278
PixInsight API Error 37
« on: 2016 January 25 11:10:33 »
I get the following error every time open a file and then click on the AutoStretch button on STF I have had this since upgrading to 1195 but I have just not reported yet. But seeing as noone else is reporting such an error, there must be something wrong with my install. Can you say where the problem may lie?

PixInsight API Error

GetViewPropertyValue(): Low-level API function error
API error code = 37:
Invalid user interface object handle

Right after the message, after I click on OK it performs the STF

It is the same for both new fits files from the camera or already processed images in PI that have been saved and opened again as xisf. Once a file has had a STF (with the error) any further autostretches work ok.

PI 01.08.04.1195 (x64)
Windows 10 Pro

Thanks,

Mike

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PixInsight API Error 37
« Reply #1 on: 2016 January 26 08:25:14 »
Hi Mike,

This cannot be reproduced on any of our testing and working machines. No similar problem has been reported by other users either.

Standard support questions:

- Are you completely sure you're running version 1.8.4.1195?

- Did you uninstall the application and rebooted your machine before installing the new version?

- Are you using any nonstandard modules?

- Does this happen on other machines?
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline MikeOates

  • PixInsight Addict
  • ***
  • Posts: 278
Re: PixInsight API Error 37
« Reply #2 on: 2016 January 27 12:23:06 »
Hi Juan,


- Are you completely sure you're running version 1.8.4.1195?
Yes
- Did you uninstall the application and rebooted your machine before installing the new version?
No, but I have now, still the same. I may have missed out the reboot bit before.
- Are you using any nonstandard modules?
No extra modules or scripts
- Does this happen on other machines?
No Correction, yes the same error on my laptop running Windows 7

Now then this is getting rather weird, I will run through a few scenarios.

Drag and drop a single file into PI, click on Auto STF - get error.
Drag and drop multiple files into PI, click on Auto STF - get error on first one only.
Drag and drop multiple files into PI, bring to focus one of the other files just opened, i.e. not the top one, click on Auto STF - No error for any of the files.

Double click PI desktop (or use file open in PI) single file - click on Auto STF - no error.

Now it gets interesting... ( another way of saying very weird  ??? )
Double click PI desktop (or use file open in PI) two or more files - before it completes the last file open - get error, without using STF and on top (overlayed) on that error box is a message "Please wait, Computing view property: Median". At this point it stays like that until I move the bottom error box out of the way so I can click on OK, then the files completes the load and I can click on STF which works ok.

Here is a screenshot of that last error.

Mike
« Last Edit: 2016 January 27 17:19:06 by MikeOates »

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PixInsight API Error 37
« Reply #3 on: 2016 February 08 03:17:42 »
Mike,

Definitely, I cannot reproduce this problem, and it still hasn't been reported by other users. Extremely weird.

Quote
No Correction, yes the same error on my laptop running Windows 7

Can you identify some property shared by both machines?
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline MikeOates

  • PixInsight Addict
  • ***
  • Posts: 278
Re: PixInsight API Error 37
« Reply #4 on: 2016 February 08 04:22:38 »
Juan,

Thanks for looking into this, I will continue to try and get to the bottom of this, if I do I will post back.

The only property shared by both machines that I can think of is the operator! :-[

Mike

Offline sixburg

  • Member
  • *
  • Posts: 63
Re: PixInsight API Error 37
« Reply #5 on: 2016 February 14 10:13:13 »
I've seen this error for the first time today, but on MAC El Capitan 10.11.3 and the latest PI. 

I occurred while changing geometry of a linear image (rotate 90 degrees clockwise).  The rotation did not happen before the error and the system is now locked. 

Offline sixburg

  • Member
  • *
  • Posts: 63
Re: PixInsight API Error 37
« Reply #6 on: 2016 February 14 10:21:18 »
I meant to add that the real-time preview window started to emerge by itself...

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PixInsight API Error 37
« Reply #7 on: 2016 February 24 01:40:50 »
Hi Mike,

Good news! I've been able to reproduce this problem. It can be reproduced consistently on all platforms when:

- The Statistics tool is open and its track view option is enabled.
- Two or more image files are loaded in a single File > Open operation.
- The images being loaded require a recalculation of statistical properties (so this is more unlikely to happen with XISF files)..

The error happens just after loading the last image in the File > Open set, and it is harmless: just dismiss the API error dialog and everything continues working without problems.

Apparently the bug belongs to the Statistics tool, but it does not. It is a bug in internal core application API routines. It will be fixed in the next version, thank you for detecting it.

Quote
I get the following error every time open a file and then click on the AutoStretch button on STF

Note that this still cannot be reproduced on any of our testing machines. The error is the same, but can only be reproduced with the sequence described above.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline MikeOates

  • PixInsight Addict
  • ***
  • Posts: 278
Re: PixInsight API Error 37
« Reply #8 on: 2016 February 24 15:32:18 »
Juan,

Thank you, that is good news at least it's not me doing something wrong.

You are correct about the Statistics tool being left with track view option enabled. If I disable it, there is no problem.

Mike