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 101349 - Slow search for hardcoded fonts
Summary: Slow search for hardcoded fonts
Status: RESOLVED WONTFIX
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 102410
  Show dependency tree
 
Reported: 2007-04-17 13:44 UTC by _ rkubacki
Modified: 2009-01-23 16:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2007-04-17 13:44:35 UTC
Top part of stach trace during UML diagram opening suggest that font processing
can be slow. This usualy happens if the code refers to fonts by names like
'Arial' or 'Helvetica' and those are not configured or the system has to process
all fonts available for given environment. This is often the cse on Linux or
Solaris.

"AWT-EventQueue-1" prio=10 tid=0xb4032800 nid=0x13a2 runnable
[0xb5078000..0xb507b030]
   java.lang.Thread.State: RUNNABLE
        at
sun.java2d.SunGraphicsEnvironment.loadFonts(SunGraphicsEnvironment.java:404)
        - locked <0x950d8580> (a java.lang.String)
        at sun.font.FontManager.findFont2D(FontManager.java:1887)
        at sun.font.FontManager.findFont2D(FontManager.java:1757)
        at java.awt.Font.getFont2D(Font.java:452)
        at java.awt.Font.getFamily(Font.java:1075)
        at java.awt.Font.getFamily_NoClientCode(Font.java:1049)
        at java.awt.Font.getFamily(Font.java:1041)
        at
org.netbeans.modules.uml.ui.controls.doccontrol.DocumentationControl.initialize(DocumentationControl.java:217)
        at
org.netbeans.modules.uml.ui.controls.doccontrol.DocumentationControl.<init>(DocumentationControl.java:141)
        at
org.netbeans.modules.uml.documentation.ui.DocumentationPane.<init>(DocumentationPane.java:46)
        at
org.netbeans.modules.uml.documentation.ui.DocumentationTopComponnet.initializeTopComponent(DocumentationTopComponnet.java:79)
        at
org.netbeans.modules.uml.documentation.ui.DocumentationTopComponnet.<init>(DocumentationTopComponnet.java:67)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
Comment 1 Sergey Petrov 2009-01-23 16:10:58 UTC
in my opinion it's not an issue, because DocumentationControl is html like editor and may depends on <font> tags and
different font configurations including font reference by name.
feel free to reopen if any objections.