Author Topic: MosaicPlanner - FontControl is not define  (Read 3049 times)

Offline Herbert_W

  • PixInsight Addict
  • ***
  • Posts: 204
    • Skypixels - Astrophotography by Herbert Walter
MosaicPlanner - FontControl is not define
« on: 2016 April 04 13:07:19 »
Hi,

I need your help.

Mosaic Planner produce an error message:

run --execute-mode=auto "C:/Program Files/PixInsight/src/scripts/AdP/MosaicPlanner.js"

Processing script file: C:/Program Files/PixInsight/src/scripts/AdP/MosaicPlanner.js

Downloading Vizier data:
http://cdsarc.u-strasbg.fr/viz-bin/asu-tsv?-source=I/305/out&-c=43.629415 60.363851&-c.r=1.455720&-c.u=deg&-out.form=|&-out.max=200000&-out=GSC2.3&-out=RAJ2000&-out=DEJ2000&-out=Class&-out=Fmag&-out=jmag&-out=Vmag&-out=Nmag&-out=Umag&-out=Bmag&Vmag=<7
2924 bytes transferred in 0.98 s @ 2.90 KB/s
fov:1.455720 actual:1.170257
Catalog GSC size: 3 objects inside the image

Applying STF to 'Aux':

HistogramTransformation: Processing view: Aux
Processing gray channel:
Histogram transformation: done
56.352 ms
ReferenceError: FontControl is not define



View hours before - no problem.

win7 64bit - PI newest release and updated.

Has anyone else see this?

Best regards!

Herbert, Austria

Offline Herbert_W

  • PixInsight Addict
  • ***
  • Posts: 204
    • Skypixels - Astrophotography by Herbert Walter
Re: MosaicPlanner - FontControl is not define
« Reply #1 on: 2016 April 04 21:15:41 »
Hi, 

one way to solve this problem is to open and close 'AnnotateImage' before - then MosaicPlanner works fine.

Strange!!

Best regards!
Herbert, Austria

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: MosaicPlanner - FontControl is not define
« Reply #2 on: 2016 April 04 22:23:15 »
The global namespace is somewhat shared across PJSR script executions. AnnotateImage defines FontControl by including CommonUIControls.js, and so FontControl is then available to subsequent executions of MosaicPlanner. The fix is to modify MosaicPlanner to include CommonUIControls.js explicitly.

Thanks,
Mike

Offline Herbert_W

  • PixInsight Addict
  • ***
  • Posts: 204
    • Skypixels - Astrophotography by Herbert Walter
Re: MosaicPlanner - FontControl is not define
« Reply #3 on: 2016 April 04 23:03:34 »
how can I do that?

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: MosaicPlanner - FontControl is not define
« Reply #4 on: 2016 April 05 06:23:23 »
I'll fix it as soon as possible. Meanwhile you can use the workaround of AnnotateImage. Sorry :-[ :-[

Offline Herbert_W

  • PixInsight Addict
  • ***
  • Posts: 204
    • Skypixels - Astrophotography by Herbert Walter
Re: MosaicPlanner - FontControl is not define
« Reply #5 on: 2016 April 05 08:27:55 »
Hi Andres,

no problem and no hurry - I was only interested, how to do it.

Thank you for the script - its really helpful.

Best regards!

Herbert, Austria


Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: MosaicPlanner - FontControl is not define
« Reply #6 on: 2016 April 05 12:30:06 »
I have just created a pull request in GitHub with the fix for this problem.