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 267839

Summary: OutOfMemoryError: Java heap space
Product: utilities Reporter: reghat
Component: ImageAssignee: Jan Peska <JPESKA>
Status: NEW ---    
Severity: normal CC: haze-linda
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 204300
Attachments: stacktrace

Description reghat 2016-09-02 16:24:54 UTC
Build: NetBeans IDE Dev (Build 201607010002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Windows 10

User Comments:
GUEST: left Netbeans then came back in and it give me this error. didn't happen while using it.

GUEST: Opened many jpg files. About 180 of them. Not all at the same time.
The procedure: Opened the jpg file, changed the file name depending on the image. Then the next file. If many were open, I closed them all.

GUEST: No idea...

GUEST: There was a constant check for external changes which could not be canceled.

reghat: Problems appeared after have tried to add a big picture (7.90Mo).

GUEST: opening netbeans

GUEST: Loading large JPG image.

GUEST: I have no Problem, but netbeans say: error...

GUEST: I don't know the problem. I closed Netbeans because of the cpu usage of the java process. It gets 80-100% of i7 power.

GUEST: Don't know

GUEST: i forgot

GUEST: idk

GUEST: programing in javascript

GUEST: trying to copy a picture from one folder to another

GUEST: .

GUEST: <Please provide a description of the problem or the steps to reproduce>
<record>
  <date>2014-11-03T10:40:28</date>
  <millis>1415036428405</millis>
  <sequence>236</sequence>
  <logger>org.openide.util.RequestProcessor</logger>
  <level>SEVERE</level>
  <thread>25</thread>
  <param>C:\Users\mhussain4\AppData\Roaming\NetBeans\8.0\var\log\heapdump.hprof</param>
  <exception>
    <message>java.lang.OutOfMemoryError: Java heap space</message>
    <frame>
      <class>java.awt.image.DataBufferByte</class>
      <method>&lt;init&gt;</method>
      <file>${java.home}lib/rt.jar</file>
    </frame>
    <frame>
      <class>java.awt.image.ComponentSampleModel</class>
      <method>createDataBuffer</method>
      <file>${java.home}lib/rt.jar</file>
    </frame>
    <frame>
      <class>java.awt.image.Raster</class>
      <method>createWritableRaster</method>
      <file>${java.home}lib/rt.jar</file>
    </frame>
    <frame>
      <class>javax.imageio.ImageTypeSpecifier</class>
      <method>crea




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.awt.image.DataBufferByte.<init>(DataBufferByte.java:92)
   at java.awt.image.ComponentSampleModel.createDataBuffer(ComponentSampleModel.java:445)
   at java.awt.image.Raster.createWritableRaster(Raster.java:941)
   at javax.imageio.ImageTypeSpecifier.createBufferedImage(ImageTypeSpecifier.java:1074)
   at javax.imageio.ImageReader.getDestination(ImageReader.java:2892)
   at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1071)
Comment 1 reghat 2016-09-02 16:24:57 UTC
Created attachment 161882 [details]
stacktrace