New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 859262 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Memory leak during shutting down SurfaceTreeHost

Project Member Reported by osh...@chromium.org, Jun 30 2018

Issue description

Looks like there is some race during shutdown. DeleteWhenLastResourceHasBeenReclaimed
may create a surface as a part of submitting frame, which delays the deletion of the buffer,
which results in this leak.

dcastagna@, is this something you can look into it?

#0 0x7f6540846f1c base::debug::StackTrace::StackTrace()
#1 0x7f653ee55caa viz::Surface::Surface()
#2 0x7f653ee5eeec viz::SurfaceManager::CreateSurface()
#3 0x7f653ee2e460 viz::CompositorFrameSinkSupport::CreateSurface()
#4 0x7f653ee2d931 viz::CompositorFrameSinkSupport::MaybeSubmitCompositorFrame()
#5 0x7f653ee2d21f viz::CompositorFrameSinkSupport::SubmitCompositorFrame()
#6 0x7f6540612e0b aura::LayerTreeFrameSinkLocal::SubmitCompositorFrame()
#7 0x000000520872 exo::LayerTreeFrameSinkHolder::DeleteWhenLastResourceHasBeenReclaimed()
#8 0x000000532be0 exo::SurfaceTreeHost::~SurfaceTreeHost()
#9 0x0000005279ba exo::ShellSurfaceBase::~ShellSurfaceBase()
#10 0x0000004b81ce exo::(anonymous namespace)::TestShellSurfaceWithMovingFocusAccelerator::~TestShellSurfaceWithMovingFocusAccelerator()
#11 0x0000004ec482 exo::(anonymous namespace)::SurfaceTest_SetCropAndBufferTransform_Test::TestBody()
#12 0x000000547572 testing::Test::Run()

This is originally reported in SurfaceTest.SetCropAndBufferTransformon asan bot.

https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/Linux%20Chromium%20OS%20ASan%20LSan%20Tests%20%281%29/28033
https://logs.chromium.org/v/?s=chromium%2Fbuildbucket%2Fcr-buildbucket.appspot.com%2F8942824347206563072%2F%2B%2Fsteps%2Fexo_unittests%2F0%2Flogs%2FSurfaceTest.SetCropAndBufferTransform__x2f_1%2F0



 

Sign in to add a comment