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

hudson-behavior.js#makeTooltip make a memory leak

XMLWordPrintable

    • 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

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

              Created:
              Updated:
              Resolved: