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 80996 - web report ends with OutOfMemory for BluePrints RE project
Summary: web report ends with OutOfMemory for BluePrints RE project
Status: RESOLVED WORKSFORME
Alias: None
Product: uml
Classification: Unclassified
Component: Reporting (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: George Vasick
URL:
Keywords:
: 81414 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-24 15:43 UTC by Sergey Petrov
Modified: 2007-09-11 19:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
required for uml by re (510.19 KB, application/octet-stream)
2006-07-25 09:42 UTC, Sergey Petrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2006-07-24 15:43:04 UTC
reproducible with coke 060719

original:
The class diagram created from the selected RE elements does not have a link
from the web report.

Repro steps:
- unzip the attached BluePrints java project
- create a uml project by reverse engineering the unzip BluePrints java project
- expand all packages under the "opc" package from com/sun/j2ee/blueprints packages
- select all elements under the opc including the opc package
- create a class diagram from all selected elements under opc
- generate a web report for the UML RE project
- select com/sun/j2ee/blueprints to see the opc class diagram created in the
previous steps
Result: there's no link for the class diagram
//comments:
Yes, I can reproduce the issue after I've expanded all the sub packages under
opc package. The web report is generated but the diagram is not. Doing some
debugging, I found that the tool can not generate the html file for the diagram
because of OutOfMemory. The followings are the debugging messages thrown on a
cmd window:
.....

//in latest build:
I got exception dialog with:\
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 sun.awt.Win32GraphicsConfig.createAcceleratedImage(Win32GraphicsConfig.java:313)
	at sun.awt.windows.WComponentPeer.createImage(WComponentPeer.java:557)
	at java.awt.Component.createImage(Component.java:3176)
	at java.awt.Component.createImage(Component.java:3173)
	at java.awt.Component.createImage(Component.java:3173)
	at java.awt.Component.createImage(Component.java:3173)
	at java.awt.Component.createImage(Component.java:3173)
	at java.awt.Component.createImage(Component.java:3173)
	at java.awt.Component.createImage(Component.java:3173)
	at java.awt.Component.createImage(Component.java:3173)
	at java.awt.Component.createImage(Component.java:3173)
	at java.awt.Component.createImage(Component.java:3173)
	at java.awt.Component.createImage(Component.java:3173)
	at java.awt.Component.createImage(Component.java:3173)
	at java.awt.Component.createImage(Component.java:3173)
	at java.awt.Component.createImage(Component.java:3173)
	at java.awt.Component.createImage(Component.java:3173)
	at java.awt.Component.createImage(Component.java:3173)
	at java.awt.Component.createImage(Component.java:3173)
	at com.tomsawyer.editor.TSEGraphImageEncoder.getBufferedGraphImage(DashoA9*..)
	at com.tomsawyer.editor.TSEGraphImageEncoder.writeJPEGFormat(DashoA9*..)
	at
org.netbeans.modules.uml.ui.products.ad.viewfactory.ETEGraphImageEncoder.save(ETEGraphImageEncoder.java:71)
	at
org.netbeans.modules.uml.ui.controls.drawingarea.GetHelper.saveAsGraphic2(GetHelper.java:152)
	at
org.netbeans.modules.uml.ui.swing.drawingarea.ADDrawingAreaControl.saveAsGraphic2(ADDrawingAreaControl.java:7697)
	at
org.netbeans.modules.uml.ui.controls.drawingarea.UIDiagram.saveAsGraphic2(UIDiagram.java:187)
	at
org.netbeans.modules.uml.reporting.dataobjects.DiagramData.toReport(DiagramData.java:538)
	at
org.netbeans.modules.uml.reporting.ReportTask.generateReport(ReportTask.java:155)
	at org.netbeans.modules.uml.reporting.ReportTask.run(ReportTask.java:127)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
Comment 1 Sergey Petrov 2006-07-25 09:42:30 UTC
Created attachment 32169 [details]
required for uml by re
Comment 2 Yang Su 2006-08-12 00:43:41 UTC
Did you try to increase the heap size? The way the image is buffered seems to
take too much memory, for big diagrams, exporting image itself results in OOM,
we need to work with Tomsawyer team.
Comment 3 Yang Su 2006-08-14 20:06:25 UTC
*** Issue 81414 has been marked as a duplicate of this issue. ***
Comment 4 Viktor Lapitski 2007-02-15 09:04:30 UTC
please see 91942 for a description of how much memory is needed for a specific
image size and what is the current practical de-facto limit on the image size.
Comment 5 Peter Lam 2007-03-20 23:17:19 UTC
low use case not currently impacting our installed user base.
Comment 6 George Vasick 2007-07-13 00:33:09 UTC
Try feeding a tiled image to the encoder one tile at a time.  The PNG encodder will accept tiled input.  Need to check
on JDK encoder.
Comment 7 Craig Conover 2007-09-11 19:31:54 UTC
I just ran this test (RE'ed the attached project, CDFS the opc package's elements - all of them, and Gen'ed Report) with
with -J-Xmx256m as the max memory setting. It worked fine, no OOME, and it ran in just over 2 minutes:

generating report for BluePrints-Model to C:\Documents and Settings\IBM USER\My
Documents\NetBeansProjects\BluePrints-Model\report
generating summary files
processed 5,498 elements 1 diagrams
Report Successful (total time: 2 minutes 16 seconds)

Perhaps this is no longer an issue. QE, please retest to see if the problem still exists.