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 155000 - java.lang.OutOfMemoryError: Java heap space
Summary: java.lang.OutOfMemoryError: Java heap space
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Reporting (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@uml
URL: http://statistics.netbeans.org/except...
Keywords: PERFORMANCE
: 139337 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-09 09:56 UTC by Marian Mirilovic
Modified: 2018-03-11 03:14 UTC (History)
20 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 2581


Attachments
stacktrace (2.29 KB, text/plain)
2009-12-15 03:00 UTC, onmomo
Details
stacktrace (2.30 KB, text/plain)
2013-09-18 17:48 UTC, aquaglia
Details
stacktrace (2.19 KB, text/plain)
2014-01-22 07:24 UTC, williambacchi
Details
stacktrace (2.19 KB, text/plain)
2014-01-22 07:33 UTC, williambacchi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2008-12-09 09:56:54 UTC
92 duplicates so far ...

Build: NetBeans IDE Dev (Build 200708300000)
VM: Java HotSpot(TM) Client VM, 1.6.0-b105
OS: Linux, 2.6.20-16-generic, i386
User comments: 
STACKTRACE: (first 10 lines)
java.lang.OutOfMemoryError: Java heap space
        at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:41)
        at java.awt.image.Raster.createPackedRaster(Raster.java:458)
        at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1015)
        at java.awt.image.BufferedImage.<init>(BufferedImage.java:312)
        at org.netbeans.modules.uml.ui.products.ad.viewfactory.ETEGraphImageEncoder.write(ETEGraphImageEncoder.java:210)
        at
org.netbeans.modules.uml.ui.swing.drawingarea.ADDrawingAreaControl$SunSaveAsImageDialog.onOK(ADDrawingAreaControl.java:8952)
        at com.tomsawyer.editor.export.TSESaveAsImageDialog.actionPerformed(TSESaveAsImageDialog.java:625)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
Comment 1 Sergey Petrov 2008-12-09 12:29:48 UTC
most seems to be from one issue, not enouth memory for diagram export, will try to find what can be done in 7.0
Comment 2 Sergey Petrov 2008-12-24 11:03:54 UTC
Can anybody provide any sample project?
Comment 3 Sergey Petrov 2008-12-24 11:04:46 UTC
Also available physical memory and if modified java memory options.
Comment 4 Sergey Petrov 2008-12-24 11:06:29 UTC
As a workaround it may be possible either to increase netbeans memory settings or try to export image with smaller
resolution, max possible is dependent on available memory for netbeans.
Comment 5 Sergey Petrov 2009-01-27 11:55:16 UTC
*** Issue 139337 has been marked as a duplicate of this issue. ***
Comment 6 Sergey Petrov 2009-02-16 10:35:14 UTC
may miss 7.0 target as it may require not standard images handling, also as mentioned above try to increase memory
available for netbeans, also scaling down big diagrams may help.

If anybody have a problem with small diagram please attach your project and provide you system memory information, also
message.log may help. thanks.

Also from 92 duplicates there a lot of duplicates for another modules (not uml), it seems exceptions need to be separated. 
Comment 7 onmomo 2009-12-15 03:00:18 UTC
Created attachment 92592 [details]
stacktrace

Got this exception after building two very simple maven projects (without any dependencies) at the same time.
Comment 8 aquaglia 2013-09-18 17:48:05 UTC
Created attachment 140224 [details]
stacktrace

Profiling java application
Comment 9 Sergey Petrov 2013-09-18 18:03:50 UTC
I suppose the issue may bacame a collector for ooms and as uml is unmainteined, it may be a problem
Comment 10 williambacchi 2014-01-22 07:24:52 UTC
Created attachment 144230 [details]
stacktrace

?
Comment 11 williambacchi 2014-01-22 07:33:52 UTC
Created attachment 144231 [details]
stacktrace

?
Comment 12 williambacchi 2014-01-22 07:59:13 UTC
(In reply to williambacchi from comment #11)
> Created attachment 144231 [details]
> stacktrace
> 
> ?

I was debugging a java application. I set a conditional breakpoint. If I remove the conditional breakpoint no error occurs.