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.
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)
Created attachment 32169 [details] required for uml by re
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.
*** Issue 81414 has been marked as a duplicate of this issue. ***
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.
low use case not currently impacting our installed user base.
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.
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.