Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ImageIO fails reading random PNG file during tests #9228
After updating from Grails
Let's check in the console:
So this looks fine - until I try reading it from a test case:
You can find an SSCCE here.
Oh, this is odd. Very odd. I tried to reproduce it on another machine and it passes for me as well. I wonder what might be influencing the test then? I am experiencing it in two separate projects, whereas it does not occur in the console or in plain Java. I think we can close this, but if you happen to have the slightest idea what I might want to try to fix this, I am more than open for suggestions ;)
Oh well, after updating Java, clearing the gradle cache and bumping the Grails version to
It seems like having several meetings and not touching things for an hour or two resolved it, after having had this issue for a couple of weeks. I'll have to add this to my standard tool belt, directly after "restarting" , "clean build", "reinstalling" and "try the same, but shuffle the steps".