New issue
Advanced search Search tips

Issue 787955 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Possible memory leaks associated with ShareKit?

Project Member Reported by sdy@chromium.org, Nov 22 2017

Issue description

Chrome Version: 64.0.3275.0 (approximately)
OS: macOS 10.12.6

What steps will reproduce the problem?
(1) Create an Instruments document with a Leaks instrument and attach to a running copy of Chromium.
(2) Navigate a few times, open and close windows, etc.

What is the expected result?
No leaks detected.

What happens instead?
A bunch of small leaks appear which mention ShareKit.

Not sure yet whether this is a buggy SDK or leaks in Chrome, but could be worth checking out. I attached a screenshot and highlighted a few of the suspicious lines.
 
Screen Shot 2017-11-21 at 3.58.53 PM.png
1010 KB View Download

Comment 1 by lgrey@chromium.org, Nov 27 2017

Status: Started (was: Assigned)
Looks like SDK. I'll try to work around it/file a radar.

Comment 2 by lgrey@chromium.org, Nov 27 2017

Filed as Radar 35699592
Project Member

Comment 3 by bugdroid1@chromium.org, Nov 28 2017

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

commit f2d55a253ceb67d8c2218e35a449d7b4abc003df
Author: Leonard Grey <lgrey@chromium.org>
Date: Tue Nov 28 14:57:17 2017

[Mac] Avoid calling |sharingServiceNamed:| in share menu

1) For general efficiency and to avoid the leak mentioned in the linked
bug, compare share services via the previously exposed |name| method.
2) Now that |name| is available, restrict the temporary activity spawned
while sharing to the Reminders service, since that's the only one that
needs it.

Bug:  787955 
Change-Id: I6d2a38f8b1cba3b3a3a4e1edb9c06408ae9f1c41
Reviewed-on: https://chromium-review.googlesource.com/791333
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Commit-Queue: Leonard Grey <lgrey@chromium.org>
Cr-Commit-Position: refs/heads/master@{#519685}
[modify] https://crrev.com/f2d55a253ceb67d8c2218e35a449d7b4abc003df/chrome/browser/ui/cocoa/share_menu_controller.mm

Comment 4 by lgrey@chromium.org, Jan 19 2018

Status: Fixed (was: Started)

Sign in to add a comment