Skip to main content
michaell59139882
Participating Frequently
August 8, 2018
Question

Memory Leak starting in Flash Player 25 ActiveX and higher (still exists in 30)

  • August 8, 2018
  • 1 reply
  • 1631 views

We're seeing a memory leak starting in Flash Player 25 ActiveX and continuing through the latest (Flash Player 30 ActiveX).  Flash Player 24 ActiveX had no such issue.  We created a test .html to show it.  It simply loops through playing two different shockwave files.  Details can be found in Tracker

    This topic has been closed for replies.

    1 reply

    jeromiec83223024
    Inspiring
    August 9, 2018

    Thanks for the report.  I'll escalate it to the team for investigation.

    I have a couple recommendations for workarounds, instead of swapping out the element in the DOM:

    • Write a simple shim loader, which loads each of the target SWFs as children, and do the rotation in ActionScript.  You should only have to load each SWF once, at which point you can just add and remove them from the stage.
    • Load each SWF into a DIV and then swap the visibility of those DIVs to do the rotation in JavaScript
    • Instead of swapping out the <object> elements in the DOM in-place, remove the element and add a new one.  If the problem is that you're accumulating a number of orphaned Flash Player processes, removing them from the DOM might ensure that they're getting a signal from the browser to exit.
    michaell59139882
    Participating Frequently
    August 13, 2018

    We currently do option #2 in our real application ("Load each SWF into a DIV and then swap the visibility of those DIVs to do the rotation in JavaScript").  We revised the test application to use that method and still shows memory leak.  I attached a new test program to bug report.

    jeromiec83223024
    Inspiring
    August 13, 2018

    Thanks, we've got someone looking at it.