Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-581

hudson-behavior.js#makeTooltip make a memory leak

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Platform: All, OS: All

      On the main page (which is refreshed every 5s), each build in the build queue is
      render again with a tooltip (using hudson-behavior.js#makeTooltip). This method
      call YUI to create a new tooltip.

      Problems comes from this widget. Each time we make a such widget, a div
      (representing the tooltip) is added in the dom but never removed : DOM document
      becomes bigger and bigger and (when the build queue is big), the browser
      (Firefox or IE) crashes because of used memory.

      A very quick fix consists in removing tooltips. But I think a better way to do
      can be to create a single tooltip div in the page (without YUI) and display it
      under the mouse when needed displaying the right message.

      Sorry to report this issue without any patch, If I find out some time, I'll try
      to attach a patch later.

      Thx.


      Vincent

          [JENKINS-581] hudson-behavior.js#makeTooltip make a memory leak

          doume created issue -
          Kohsuke Kawaguchi made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Andrew Bayer made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Jenkins IRC Bot made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: gui [ 15492 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 130654 ] New: JNJira + In-Review [ 200005 ]

            Unassigned Unassigned
            doume doume
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: