Myself and colleagues have noticed "ghost", seemingly blank scripts which are created when you use the panel script editor to delete any event triggered script rather than doing it in the complex script editor for that specific script. The ghost script appears as two blank lines of code in the script editor which cannot be easily cleared. The remnants of the script and can seen and cleared by editing the .xml file, and also by adding a placeholder script in the panel script editor and deleting that placeholder script in the event script editor. If the ghost script is not removed and the script is triggered to run in the HMI runtime it can cause crashing. I noticed the bug first in version 3.14 patch 6 but have since been able to replicate the issue in 3.14 patch 10 and version 3.15; as well as on both a SIMATIC Field PG and a SIMATIC Nanobox PC.
Others I have spoken to do not have this issue unless they leave a space or a CRLF in the script. I repeat this si not the case for myself a completely blank script still causes the error. I have no issues with removing this script once it's created but my issue is with varying behavior between script editors. We will be ensuring that there are no instances of this in our project going forward so there's no problem there. Please find attached screenshots detailing the process. https://www.winccoa.com/fileadmin/image ... reens.docx
Ghost blank scripts causing crashing in runtime
- stsmith94
- Posts:2
- Joined: Tue May 09, 2017 8:10 am
Ghost blank scripts causing crashing in runtime
- Attachments
-
- GhostScriptBugScreens.docx
- (830.06 KiB) Downloaded 132 times
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Ghost blank scripts causing crashing in runtime
yep, a known problem, which I have recently fixed for 3.16.
Thanks for your description.
Thanks for your description.
- stsmith94
- Posts:2
- Joined: Tue May 09, 2017 8:10 am
Re: Ghost blank scripts causing crashing in runtime
Thank you for your response. Good to know I'm not going crazy. 
- RudiKreiner
- Posts:198
- Joined: Mon May 16, 2011 2:10 pm
Re: Ghost blank scripts causing crashing in runtime
If this problem is causing crashes, shouldn't there be patches made for those previous versions that are affected too?
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Ghost blank scripts causing crashing in runtime
I do not know about any crashes due to empty scripts.
If someone can reproduce a crash with any panel, please tell us and send the panel
If someone can reproduce a crash with any panel, please tell us and send the panel
- RudiKreiner
- Posts:198
- Joined: Mon May 16, 2011 2:10 pm
Re: Ghost blank scripts causing crashing in runtime
I haven't experienced any such crashes either, but in Samuel's initial post to this issue he mentioned just that happening, so @Samuel : can you provide an example panel to reproduce the crash?
- schneebergera
- Posts:89
- Joined: Sun Apr 03, 2016 5:52 pm
Re: Ghost blank scripts causing crashing in runtime
Hi,
until now I also couldn't reproduce any crashes (3.15. P003).
as far the following error occurs in the panel (xml),
...
]]>
...
do the following via "complex script editor" on the event.
1. add default.
main()
{
}
2. open again and delete whole content.
--> "ghost script" will disappear.
regards,
Andreas
until now I also couldn't reproduce any crashes (3.15. P003).
as far the following error occurs in the panel (xml),
...
]]>
...
do the following via "complex script editor" on the event.
1. add default.
main()
{
}
2. open again and delete whole content.
--> "ghost script" will disappear.
regards,
Andreas