I have a BufferedImage
object, created from ByteArrayInputStream
with (ImageIO/read)
function.
Now I want to paint some lines on this image, so at the beginning I create Graphics2d
object like this:
(defn g2d (.createGraphics image))
And here strange thing happens, because my function freezes here in this step. It never returns, never throws an Exception
nothing. I run this program on server:
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~18.04.1-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
How could I find a cause of this freeze? I also checked if this Java version is headless like this:
(java.awt.GraphicsEnvironment/isHeadless)
But that method returned false
.