Long time user ~ 9yrs? first post.
See screenshots below. About 1% of the time this error shows up. There is a Custom method on the root container of a vision Window, called by an event script on a text box. If the text is changed in the text area the method is called and the changes are written to the table. I cannot understand why this error randomly occurs. What's worse is that it is so rare I cannot reproduce and have to get users to send me screen shots. Originally there was a save button but management pushed to have it save automagically, anytime the text changed.
Thanks for any help or insight.
Property Change of Text Area:
Custom Method in root of Vision Window
Error
I'm pretty sure this is the same as a bug that we're tracking internally (but having no more luck really reproducing).
The gist of it seems to be a weird race condition in Jython's internals, specifically related to how Vision "builds up" an appropriate scripting engine to use to execute the custom method.
If you want the simplest possible option for a workaround... you could try wrapping everything you're doing in that property change event into a function and then using system.util.invokeLater
to actually fire it.
2 Likes
I will give it a try, might be a week or more before I know if it made a difference.
Thanks !
1 Like
For what it's worth, I'm pushing a (probable) fix for this, which will hopefully make it into 8.1.37.
1 Like
Thanks
btw, It looks like the issue has been resolved for now.