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

Issue 612590 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

NativeDesktopMediaListTest.UpdateThumbnail failing on DrMemory

Project Member Reported by jyasskin@chromium.org, May 17 2016

Issue description

Started failing in https://build.chromium.org/p/chromium.memory.fyi/builders/Windows%20Unit%20%28DrMemory%20full%29%20%283%29/builds/10334:

[ RUN      ] NativeDesktopMediaListTest.UpdateThumbnail
unknown file: error: 
Unexpected mock function call - returning directly.
    Function call: OnSourceThumbnailChanged(0FFC2B48, 2)
Google Mock tried the following 1 expectation, but it didn't match:

c:\b\build\slave\drm-cr\build\src\chrome\browser\media\native_desktop_media_list_unittest.cc(484): EXPECT_CALL(observer_, OnSourceThumbnailChanged(model_.get(), 1))...
  Expected arg #1: is equal to 1
           Actual: 2
         Expected: to be called once
           Actual: called once - saturated and active
[  FAILED  ] NativeDesktopMediaListTest.UpdateThumbnail (2329 ms)

I don't immediately see a change that looks likely to have caused this.
 

Comment 1 by gyzhou@chromium.org, May 17 2016

Cc: qiangchen@chromium.org
Project Member

Comment 2 by bugdroid1@chromium.org, May 17 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/fb6927848799886e034269ad61c911059cdefc23

commit fb6927848799886e034269ad61c911059cdefc23
Author: jyasskin <jyasskin@chromium.org>
Date: Tue May 17 23:06:11 2016

Exclude NativeDesktopMediaListTest.UpdateThumbnail, which fails on DrMemory.

BUG= 612590 
TBR=gyzhou@chromium.org,sergeyu@chromium.org

Review-Url: https://codereview.chromium.org/1991473002
Cr-Commit-Position: refs/heads/master@{#394258}

[modify] https://crrev.com/fb6927848799886e034269ad61c911059cdefc23/tools/valgrind/gtest_exclude/unit_tests.gtest-drmemory_win32.txt

Comment 3 by gyzhou@chromium.org, May 20 2016

Labels: -Pri-1 Pri-3
jyasskin@

Would you please give an instruction of how to reproduce this issue in DrMemory buildbot?

Thanks,

George
Try reverting r394258, building the test on Windows for DrMemory (http://www.chromium.org/developers/how-tos/using-drmemory), and running it?
I tried on both DrMemory debug and release build and cannot reproduce the issue. It is not a surprise to see it is hard to reproduce since this bug was reported more than a month after the Unit tests was modified to support aura windows. The issue in the bug may happen occasionally.

From the bug report, I suspect the aura window's thumbnail (OnSourceThumbnailChanged(model_.get(), 2)) is updated though it should not before the native window's thumbnail (OnSourceThumbnailChanged(model_.get(), 1)) update. Fake aura windows are created for unit test.

I am going to only test native window for thumbnail update  to avoid this issue.
Status: Fixed (was: Assigned)

Sign in to add a comment