Author Topic: SubFrameSelector error  (Read 1951 times)

Offline Renan

  • Newcomer
  • Posts: 14
    • View Profile
SubFrameSelector error
« on: 2015 December 09 11:14:15 »
PI 1.08.04.1193, Win 7

When trying to execute script SubFrameSelector it gives the following error:

Processing script file: C:/Program Files/PixInsight/src/scripts/mschuster/SubframeSelector/SubframeSelector.js
*** Error [000]: C:/Program Files/PixInsight/src/scripts/mschuster/SubframeSelector/SubframeSelector.js, line 249: Error: File.extractName(): invalid argument type: String expected.

Before installing this version I could use this script with no problems.

Thanks
Renan

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 6828
    • View Profile
    • http://pixinsight.com/
Re: SubFrameSelector error
« Reply #1 on: 2015 December 09 11:54:58 »
Hi Renan,

I cannot reproduce this problem on any platform. Are you launching an existing Script icon, or running the script directly from the main menu?
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4445
    • View Profile
Re: SubFrameSelector error
« Reply #2 on: 2015 December 09 11:58:06 »
might be interesting to know if the filenames have any non-ascii characters, or characters such as " or ' or other punctuation...

rob

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 6828
    • View Profile
    • http://pixinsight.com/
Re: SubFrameSelector error
« Reply #3 on: 2015 December 09 12:00:58 »
File.extractName() is robust to these issues. The error "invalid argument type: String expected" is telling us that the script is running with invalid or corrupted input data. This does not happen under normal working conditions.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4445
    • View Profile
Re: SubFrameSelector error
« Reply #4 on: 2015 December 09 12:26:47 »
OK, it's just that you know, that's a common problem and sometimes even when you think you've solved it there's some random exception.

rob

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1026
    • View Profile
Re: SubFrameSelector error
« Reply #5 on: 2015 December 09 15:16:57 »
Hi Renan,

You may need to "Reset PixInsight Settings" (or whatever the equivalent is on your OS) and relaunch PI. Very occasionally saved script parameters/settings get corrupted. So far a reset has solved this problem.

Thanks,
Mike

Offline Renan

  • Newcomer
  • Posts: 14
    • View Profile
Re: SubFrameSelector error
« Reply #6 on: 2015 December 10 20:26:06 »
I am running the script directly from the main menu:

Script --> Batch Processing --> SubframeSelector


Should I reinstall PI?

Thanks Juan

Renan

Offline Renan

  • Newcomer
  • Posts: 14
    • View Profile
Re: SubFrameSelector error
« Reply #7 on: 2015 December 10 20:38:21 »
Thank you Rob for your tip.
I did a PI reset and the script is running OK now, no errors.

Thanks Juan

Renan

Offline llpastro

  • PixInsight Addict
  • ***
  • Posts: 196
    • View Profile
    • Sonoran Dark Skies
Re: SubFrameSelector error
« Reply #8 on: 2015 December 11 06:42:23 »
Would someone remind me how to do a PI reset?  Thanks.

Larry
AP 140 Refractor
SBIG ST-10XME
AP Mach 1 Mount
ATS Portable Pier
Tucson, Arizona

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1026
    • View Profile
Re: SubFrameSelector error
« Reply #9 on: 2015 December 11 08:13:29 »
Reset info here.