Potential layout test leak in AudioContext uninitializing phase |
||
Issue descriptionFrom CL: https://chromium-review.googlesource.com/c/chromium/src/+/1115516 Without DidClose() method in AudioContext::Uninitialize(), the dom-exceptions.html layout test leaks. Investigate why.
,
Oct 16
Thanks for looking into this! > the dom-exceptions.html layout test leaks How did you know about the leakage? Was it found via Blink leak detector?
,
Oct 16
> How did you know about the leakage? Was it found via Blink leak detector? The --enable-leak-detection flag for run_web_tests.py provided the context needed. The actual source of the leak was found by grepping for the AudioContextState enum. Since the leak was only reproducing when context_state_ was not kClosed, there were only a few places that actually checked that raw value that could possibly leak nodes. I've posted a CL to check for the uninitialized state instead (https://chromium-review.googlesource.com/c/chromium/src/+/1284697). Thanks!
,
Oct 16
Thanks! I made some comments on the CL. We can continue to discuss there.
,
Nov 1
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/56d152ff60b364132d7caf2f456c0d06bf2cfe6f commit 56d152ff60b364132d7caf2f456c0d06bf2cfe6f Author: Andrew Comminos <acomminos@fb.com> Date: Thu Nov 01 17:39:33 2018 Avoid adding orphaned nodes to a task handler on a closed audio context. If a BaseAudioContext is uninitialized, its render thread will no longer clear associated orphaned render nodes (as it is stopped). Instead of checking whether or not the context has reported itself as being closed (which is independent of the initialization state), simply check the initialization state itself. R=hongchan@chromium.org Bug: 858834 Change-Id: I5b088d17122b0c86270ff8ca75b13ab1487a2131 Reviewed-on: https://chromium-review.googlesource.com/c/1284697 Commit-Queue: Andrew Comminos <acomminos@fb.com> Reviewed-by: Hongchan Choi <hongchan@chromium.org> Cr-Commit-Position: refs/heads/master@{#604630} [modify] https://crrev.com/56d152ff60b364132d7caf2f456c0d06bf2cfe6f/third_party/blink/renderer/modules/webaudio/audio_node.cc
,
Nov 1
Closing, audio handler orphaning logic now corrected. |
||
►
Sign in to add a comment |
||
Comment 1 by acomminos@fb.com
, Oct 16Status: Started (was: Available)