Author Topic: [ Solved ] V1.8.5 - BPP will not load  (Read 1434 times)

Offline RobD

  • Newcomer
  • Posts: 20
[ Solved ] V1.8.5 - BPP will not load
« on: 2017 August 05 08:30:37 »
I have opened a project saved in V1.5.4 - all OK
Selected the BPP script -  Script Panel opens OK.
When I 'Apply Global' I get the following Error.


Processing script file: C:/Program Files/PixInsight/src/scripts/BatchPreprocessing/BatchPreprocessing.js
*** Error: Source code MD5 checksum mismatch: Expected 51c2b99d376c9c5728abc4bf00c2d228, got f3717d0fff8a292c9e232b636cab226d
581.574 ms

Have I missed something in the upgrade?

Thanks Rob
« Last Edit: 2017 August 07 09:08:06 by RobD »

Offline RickS

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1298
Re: V1.8.5 - BPP will not load
« Reply #1 on: 2017 August 05 17:44:23 »
Delete the checksum in the Script dialog (click on the the "x" icon to the right of the value) and Apply Global will stop complaining.  I have seen this happen when BPP is updated and you try to open a script instance made with a previous version - it is unrelated to updating the PI core.

Cheers,
Rick.

Offline RobD

  • Newcomer
  • Posts: 20
Re: V1.8.5 - BPP will not load
« Reply #2 on: 2017 August 06 01:19:02 »
Thanks Rick, I will give it a go.
Rob

Offline RobD

  • Newcomer
  • Posts: 20
Re: V1.8.5 - BPP will not load
« Reply #3 on: 2017 August 06 04:31:20 »
Sorted, Thanks Rick.

Rob.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: V1.8.5 - BPP will not load
« Reply #4 on: 2017 August 07 04:11:10 »
Please note that this is normal behavior, and it exists to protect you. When you execute a script from an existing Script instance or icon, the fully preprocessed source code to execute is first verified to match a cryptographic checksum (MD5 in current PixInsight versions). This guarantees that the code you are about to execute is exactly the same code that was executed when the icon was created or last updated. If the checksums mismatch, execution is forbidden by default. To execute a modified script from an icon, you have to clear the MD5 checksum manually (or, in other words, you have to assume all the responsibility for what will happen when you execute the modified code). Obviously, this happens when a new version of a script is released.

Scripts, because of the fact that they have to expose their source code necessarily, are good potential vectors to inject malicious code through scriptable applications. A script can be altered to use the PixInsight platform as a vehicle to distribute viruses, Trojans and other beasts, or even to damage the host machine irreparably. Bear in mind that the PixInsight JavaScript Runtime is very powerful, giving access to a lot of hardware and software resources, even more than many compiled languages. You can expect more security resources implemented to protect scripts in PixInsight during the 1.8.5 cycle.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/