← 输入框|github.com|刷新
Skip to content
This repository was archived by the owner on Jan 30, 2019. It is now read-only.
This repository was archived by the owner on Jan 30, 2019. It is now read-only.

Increadible memory leaks #20

Open
Open

Description

@glassfishrobot

If you show your help pages using

new CSH.DisplayHelpAfterTracking
(
helpBroker.getHelpSet(),
"javax.help.SecondaryWindow",
"Popup"
)

Whenever you close the help window the JHelp instance and all its components
subtree stays in memory - do it few times and you get OutOfMemory exception.

1. BasicFavoritesNavigatorUI hooks itself as HelpSetListener to HelpSet
and never releases the hook

2. JHelp is hookes to HelpSet as HelpSetListener and never releases the hook

3. The StyledDocument inside BasicContentViewerUI.JHEditorPane seems to be
hanging on Styles from the defaultStyles inside HTMLEditorKit.

4. JHelpPrintHandler and its handlers is one big memory leak, somebody here
does not understand how to use WeakHashMap - ONLY THE KEYS are hold via
weak references not the values and if the value has a strong reference to
the key then we have a memory leak

The same problem may happen with javax.help.MainWindow, the only savior there is
the fact that the MainWindow is singleton and it is not recreated on every help
display action.

Environment

Operating System: All
Platform: All

Affected Versions

[current]

Activity

  1. glassfishrobot commented on Oct 2, 2007

    @glassfishrobot
    ContributorAuthor

    Reported by vtec

  2. glassfishrobot commented on Oct 2, 2007

    @glassfishrobot
    ContributorAuthor

    Was assigned to javahelp-issues

  3. glassfishrobot commented on Apr 26, 2017

    @glassfishrobot
    ContributorAuthor

    This issue was imported from java.net JIRA JAVAHELP-20

  4. added this to the milestone 1 milestone on Apr 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions