-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileUtil is not defined error on Yamcs Studio v1.0.4 (and v1.1.0) #62
Comments
This appears to be some voodoo related to the Nashorn JavaScript engine in combination with threads started from scripts (the logic in UpdateImageJ.js starts a java thread). A magic workaround is to make sure that FileUtil is used already once before this thread is started: So for example on top of UpdateImageJ.js change:
into
And all should work fine again. We can keep this open a bit longer though, because I'd like to find out what exactly is causing this. I'm guessing it's somewhere deep inside Nashorn. Hopefully the workaround works for you too. |
Awesome, will try, thanks! |
We can confirm that it works with that additional line of code! Questions:
|
The problem is not actually specific to FileUtil. You can reproduce the same with for example ConsoleUtil (in your script this just happens to be used already before the thread is started, so there is no problem) To your questions:
|
The latest releases of Yamcs Studio have an issue with "FileUtil is not defined" in Javascript, which is a utility function from "Packages.org.csstudio.opibuilder.scriptUtil".
This breaks the Javascript that we use to download and visualize image files from an HTTP server for FSL high rate data.
Attached is a screenshot of the error.
![hgiknfkeiejkmebl_cropped](https://user-images.githubusercontent.com/3263433/46481868-96c15380-c7f4-11e8-95d6-988abd5f2796.png)
The text was updated successfully, but these errors were encountered: