Open huumn opened 6 years ago
Similar to your other issue. Does your real version actually use the disk ops?
Thanks. Yes it does. No buffer reuse is occurring so I don't see the opportunity for a race. I've even run the code with -race and nothing is detected.
Hi @huumn I think this might be fixed by https://github.com/discordapp/lilliput/commit/2c953373c8dc5f9b97455d7d244bd5950e67a950
When I
Transform
a jpeg (resize to a thumbnail) sometimes (5% or so of the time) the resulting image is a mostly grey output image ... often entirely grey. 95% of the time the same image succeeds in being resized.There's usually an error code spit out to the logs when this happens:
Corrupt JPEG data: 31283 extraneous bytes before marker 0xc4
however no error is returned fromTransform
Here's the relevant code. Am I doing anything that I shouldn't be?