Author Topic: RC1 and scripts errors under OSX  (Read 3929 times)

Offline Philippe B.

  • PixInsight Old Hand
  • ****
  • Posts: 399
    • CIEL AUSTRAL
RC1 and scripts errors under OSX
« on: 2012 December 24 00:48:56 »
Hi
Several scripts got errors on this new version

For example, SUBFRAME SELECTOR included in the RC1 got this error :

run --execute-mode=auto "/Applications/PixInsight.app/Contents/src/scripts/SubframeSelector/SubframeSelector.0.5.js"Processing script file: /Applications/PixInsight.app/Contents/src/scripts/SubframeSelector/SubframeSelector.0.5.js*** Error [000]: /Applications/PixInsight.app/Contents/src/scripts/SubframeSelector/SubframeSelectorSectionBar.0.5.js, line 76: Error: Control.Set(): invalid argument type: unsigned integer value expected.


also AIP-SHO scripts shows errors (I ran an old version with success, but not 1.0.6
run --execute-mode=auto "/Applications/PixInsight.app/Contents/src/scripts/SHO-AIP.js"Processing script file: /Applications/PixInsight.app/Contents/src/scripts/SHO-AIP.js*** Error [000]: /Applications/PixInsight.app/Contents/src/scripts/SHO-AIP.js, line 64: Error: Control.Set(): invalid argument type: unsigned integer value expected.

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: RC1 and scripts errors under OSX
« Reply #1 on: 2012 December 24 07:39:15 »
Hi Philippe,

Thank you for the SubframeSelector bug report. I will look in to it.

Mike

Offline Philippe B.

  • PixInsight Old Hand
  • ****
  • Posts: 399
    • CIEL AUSTRAL
Re: RC1 and scripts errors under OSX
« Reply #2 on: 2012 December 24 08:34:25 »
Hi Mike
this error just appear  1 time
Now I can use SubframeSlector without problem
cheers

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: RC1 and scripts errors under OSX
« Reply #3 on: 2012 December 24 09:42:21 »
Hi Philippe,

Thank you.

Juan FYI: The code in question is your style sheet support for PJSR section bars. Line 76 contains the call Color.rgbColorToHexString(fgColor) that failed. Apparently this call does not support DataType_UInt32 or the support is intermittent due to an unknown problem.

Thanks,
Mike

From the function SectionBar(parent) implementation:

#ifgteq __PI_BUILD__ 854
   var bgColor =
      Settings.readGlobal("InterfaceWindow/SectionBarColor", DataType_UInt32);
   var fgColor =
      Settings.readGlobal("InterfaceWindow/SectionBarTextColor", DataType_UInt32);
#else
   // PJSR access to global settings is broken in PI 1.7
   var bgColor = Color.rgbaColor(192, 192, 168, 255);
   var fgColor = Color.rgbaColor(0, 0, 255, 255);
#endif

   var contractIcon = new Bitmap(":/images/icons/contract_v.png");
   var expandIcon = new Bitmap(":/images/icons/expand_v.png");

   this.backgroundColor = bgColor;
   this.focusStyle = FocusStyle_NoFocus;

   this.label = new Label(this);
   with (this.label) {
      textAlignment = TextAlign_Left | TextAlign_VertCenter;
      styleSheet =
         "QLabel {" +
            "color: " + Color.rgbColorToHexString(fgColor) + "; " +
            "background: " + Color.rgbColorToHexString(bgColor) + ";" +
         "}" +
         "QLabel:disabled { " +
            "color: gray;" +
         "}";
   }

Offline Philippe B.

  • PixInsight Old Hand
  • ****
  • Posts: 399
    • CIEL AUSTRAL
Re: RC1 and scripts errors under OSX
« Reply #4 on: 2012 December 25 01:38:16 »
Mike 

an example with same image with same version 0.5 of the script

PI 1.7

StarAlignment: Processing view: light_1x1__10C_1200_0018_cal_1x_target
light_1x1__10C_1200_0018_cal_1x_target:
2487 stars found.
1.802 s

DynamicPSF:  Global context
1 view(s)

2487 star(s)
2337 PSF fittings
1.459 s

7.672s

PI 1.8 (original script code without your modiifcation)

StarAlignment: Processing view: light_1x1__10C_1200_0018_cal_1x_target
light_1x1__10C_1200_0018_cal_1x_target:

3601 stars found.

2.518 s

** Warning: excessive number of detected stars

DynamicPSF
: Global context
1 view(s)

10000 star(s)

9571 PSF fittings

3.436 s

14.118 s

An idea ?
« Last Edit: 2012 December 25 01:45:05 by Philippe B. »

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: RC1 and scripts errors under OSX
« Reply #5 on: 2012 December 25 08:12:36 »
Hi Philippe,

Thank you for your bug report. I apologize for the problems. I will investigate.

Mike