I have a workflow which works fine when executed in Knime but fails when I run it in the console. It seems to be related to the bar chart nodes. I created a minimal example, which has the same problems.
ERROR KNIME-Worker-3-Bar Chart 3:148 CEFImageGenerator Executing script failed after 10 attempts. The script is: 'return document.getElementById('node-SINGLE').contentWindow.dynamicJSNode.getSVG();'
I tried on two PCs, same error. Any ideas?
I have other flows which run fine in batch mode, but none of them contain bar charts (or any other JavaScript Visualisation Nodes)
Thank you for the suggestion. The results are surprising. When I run the Workflow normally, I am getting a normal PNG output. But when I run it from the console I no longer get the previous error. I am getting a PNG (with the dimensions I set) but just look at it:
Go to Preferences → JavaScript Views → set headless browser to “Bundled Headless Chromium” (version 91 in my case)
I can not explain why the following steps are needed. Looks like KNIME is somehow ignoring my local preferences. But on the other hand it obeys them, because it uses my custom DB drivers.
Export your preferences to a file
Remove everything except the first line, last line, and the line
(you probably want to remove -noexit after you confirmed it works)
There still seems to be some kind of bug, because knime crashes liks this. But the image writer is the very last node on my flow and all images are written correctly before the crash.
Exception in thread "Thread-5" java.lang.IllegalStateException: Executor has been shut down
at org.apache.sshd.common.util.ValidateUtils.createFormattedException(ValidateUtils.java:213)
at org.apache.sshd.common.util.ValidateUtils.throwIllegalStateException(ValidateUtils.java:207)
at org.apache.sshd.common.util.ValidateUtils.checkState(ValidateUtils.java:184)
at org.apache.sshd.common.util.threads.NoCloseExecutor.execute(NoCloseExecutor.java:100)
at java.base/sun.nio.ch.AsynchronousChannelGroupImpl.executeOnPooledThread(Unknown Source)
at java.base/sun.nio.ch.Invoker.invokeIndirectly(Unknown Source)
at java.base/sun.nio.ch.Invoker.invoke(Unknown Source)
at java.base/sun.nio.ch.Invoker.invoke(Unknown Source)
at java.base/sun.nio.ch.WindowsAsynchronousSocketChannelImpl$WriteTask.completed(Unknown Source)
at java.base/sun.nio.ch.Iocp$EventHandlerTask.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)