This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 268846 - File properties - big image OOm
Summary: File properties - big image OOm
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: Dev
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-04 22:08 UTC by amobilia
Modified: 2016-11-04 22:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
picture providing the OOm (309.31 KB, image/png)
2016-11-04 22:08 UTC, amobilia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description amobilia 2016-11-04 22:08:44 UTC
Created attachment 162787 [details]
picture providing the OOm

Hello,

Check the attached image properties in netbeans. (10 000 x 10 000 px empty image)
It will result an OOm
-----
java.lang.OutOfMemoryError: Java heap space
	at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75)
	at java.awt.image.Raster.createPackedRaster(Raster.java:467)
	at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
	at sun.awt.image.ImageRepresentation.createBufferedImage(ImageRepresentation.java:253)
	at sun.awt.image.ImageRepresentation.setPixels(ImageRepresentation.java:559)
	at sun.awt.image.ImageDecoder.setPixels(ImageDecoder.java:138)
	at sun.awt.image.PNGImageDecoder.sendPixels(PNGImageDecoder.java:549)
	at sun.awt.image.PNGImageDecoder.produceImage(PNGImageDecoder.java:470)
	at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:269)
	at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:205)
	at sun.awt.image.ImageFetcher.run(ImageFetcher.java:169)
-----

Maybe add a fixed image size limit above which netbeans doesn't search to made a thumbnails of the image ?
Or - better - check the available memory space before to load the pics (need at least 4 (channels) * width * height bits)





Product Version: NetBeans IDE Dev (Build 201611040002)
Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13
Runtime: Java(TM) SE Runtime Environment 1.8.0_101-b13
System: Windows 10 version 10.0 running on amd64; Cp1252; fr_FR (nb)
User directory: C:\Users\Anael\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Anael\AppData\Local\NetBeans\Cache\dev