[OpenJDK 2D-Dev] RFR: 8252100: NumberOverflow in class MemoryCache
Jayathirth D V
jdv at openjdk.java.net
Wed Sep 16 13:49:33 UTC 2020
On Wed, 16 Sep 2020 01:18:00 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
>> If pos is big enough you could still theoretically have overflow, but this is still better.
> You can try to create such images using some separate tools, BTW I have found one here(32768 × 32768):
I tried reading images from https://forums.bohemia.net/forums/topic/202016-high-quality-maps-for-altis-and-stratis/, we
are trying to create destination BufferedImage of huge size and again we will hit:
Exception in thread "main" java.lang.IllegalArgumentException: Invalid scanline stride
where we check scanline with Integer.MAX_VALUE. From the description in JBS i can see that submitter has his own plugin
for TIFF and that is the only reason that he is able to read such a large images. With default plugin we will hit this
issue whenever we try to read large images as it is not supported.
More information about the 2d-dev