mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-12 13:40:19 +07:00
[images] IJPL-175323 IDE crashes with OOM when displaying GIF from plug-in description
(cherry picked from commit ada4ffdc95dc3ab976ba63d4199bed26333fe59a) IJ-CR-153425 GitOrigin-RevId: 73efc8b511ee31d9671d149405a2a508e7c65917
This commit is contained in:
committed by
intellij-monorepo-bot
parent
cdb7c2307f
commit
3f7d5dc47b
@@ -28,15 +28,18 @@ public class CommonsImagingImageReaderSpi extends ImageReaderSpi {
|
||||
vendorName = "JetBrains, s.r.o.";
|
||||
version = "1.0";
|
||||
|
||||
// todo standard GIF/BMP formats can be optionally skipped as well
|
||||
// JPEG is skipped due to Exception: cannot read or write JPEG images. (JpegImageParser.java:92)
|
||||
// tiff reader seems to be broken
|
||||
// PNG reader has bugs with well-compressed PNG images, use standard one instead
|
||||
// GIF has OOM issues IJPL-175323
|
||||
// Skip BMP as a precaution
|
||||
myFormats = new ArrayList<>(Arrays.asList(ImageFormats.values()));
|
||||
myFormats.removeAll(Arrays.asList(ImageFormats.UNKNOWN,
|
||||
ImageFormats.JPEG,
|
||||
ImageFormats.TIFF,
|
||||
ImageFormats.PNG));
|
||||
ImageFormats.JPEG,
|
||||
ImageFormats.TIFF,
|
||||
ImageFormats.GIF,
|
||||
ImageFormats.BMP,
|
||||
ImageFormats.PNG));
|
||||
|
||||
names = new String[myFormats.size() * 2];
|
||||
suffixes = new String[myFormats.size()];
|
||||
|
||||
Reference in New Issue
Block a user