New issue
Advanced search Search tips

Issue 778340 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner:
Closed: Oct 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Clipboard not working at certain times

Project Member Reported by pxia@google.com, Oct 25 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36

Steps to reproduce the problem:
Not sure

What is the expected behavior?
Copy/Paste text within Chrome or from/to another app.

What went wrong?
- Nothing can be copied: text, either in the address bar or on the webpage, does not go to the system clipboard (according to Alfred clipboard tool), and cannot be pasted anywhere either within Chrome or to another app. (Both keyboard shortcut and 'Edit > Copy' in Menu bar.)
- Nothing can be pasted: text copied from another app cannot be pasted anywhere in Chrome, including address bar and text fields/boxs on the webpage. (Both keyboard shortcut and 'Edit > Paste' in Menu bar.)
- The 'Edit > Paste' menu bar item sometimes grays out when it shouldn't. When it's not grayed out, clicking it once would paste nothing and cause it to gray out again.
- Meanwhile clipboard is working fine in other apps.
- Re-launching Chrome does *not* fix the issue.
- Re-signin my mac does fix the issue.

Did this work before? Yes 

Chrome version: 62.0.3202.62  Channel: stable
OS Version: OS X 10.12.6
Flash Version:
 

Comment 1 by lgrey@chromium.org, Oct 25 2017

Components: UI>Browser
Thanks for filing this!

First thing I'm curious about:
Does this happen with a clean profile?

Comment 2 by lgrey@chromium.org, Oct 25 2017

Owner: lgrey@chromium.org
Status: Assigned (was: Unconfirmed)
The pasteboard service has a finite buffer, that it shards to consumers. This is persisted across restarts. Once it becomes full, it's no longer possible to make new pasteboard buffers, which causes most use cases within Chrome to break.

This can be fixed by killing the pboard process. 
See https://codereview.chromium.org/1852433004/ and  https://bugs.chromium.org/p/chromium/issues/detail?id=467296

What's more interesting is *why* the pboard buffer is full. check the system log e.g. /var/log/system.log [and other logs in that directory, there's a 24h rotation] for something along hte lines of "Can't allocate a new block for a pasteboard. Creation of a new Pasteboard will fail.". Find hte first occurrence. Chances are, something is leaking pboard buffers, and whatever is leaking them will also encounter the error first.
Labels: Needs-Triage-M62 Hotlist-Google

Comment 5 by pxia@google.com, Oct 25 2017

Didn't see that exact message... this is from my system.log

$ grep -i paste system.log
Oct 25 09:58:36 pxia-macbookpro com.apple.xpc.launchd[1] (com.apple.coreservices.UASharedPasteboardProgressUI): Unknown key for Boolean: DrainMessagesAfterFailedInit
Oct 25 09:58:45 pxia-macbookpro com.apple.xpc.launchd[1] (com.apple.coreservices.UASharedPasteboardProgressUI): Unknown key for Boolean: DrainMessagesAfterFailedInit

Comment 6 by lgrey@chromium.org, Oct 26 2017

Did you have a chance to try with a clean profile? If I'm reading  Issue 467296  right, it seems like it would kill copy/paste system-wide.

Comment 7 by pxia@google.com, Oct 26 2017

What's a clean profile? (but probably not)

Comment 8 by lgrey@chromium.org, Oct 26 2017

Profile switcher in top right corner > Manage people > Add person

Or launch Chrome from the command line with --user-data-dir=/tmp

Comment 9 by pxia@google.com, Oct 27 2017

No, the problem went away after I re-sign in mac, and I haven't found a way to reproduce it.

However, given restarting does not fix the problem, I would guess switching profile would not, too.

Comment 10 by lgrey@chromium.org, Oct 30 2017

Status: WontFix (was: Assigned)
One possibility is signing-in again coincided with an update to 62.0.3202.75

I'll close this for now since we can't really do much to diagnose, but please reopen if the problem recurs.

Sign in to add a comment