See #1732 for the test case image/code. The used image is attached here:  I can repro it on Linux/Intel.