Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 423044

Summary: Accessing the clipboard contents after copying from text causes lag
Product: [Eclipse Project] Platform Reporter: Jonathan Jekeli <jon.jekeli>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, ericwill, jon.jekeli
Version: 3.8Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Demonstrates issue none

Description Jonathan Jekeli CLA 2013-12-03 10:40:07 EST
Created attachment 237961 [details]
Demonstrates issue

If i use the default copy in an SWT.Text widget (highlight some text, right-click, select "copy"; which oddly enough does not seem to use the Text.copy() method), then subsequent attempts to access the clipboard via java.awt.Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null) cause extreme lag (approx 3-4 seconds).  The lag appears to occur on the getContents(null) call itself, not on any of the other calls.

This is occurring on CentOS 6.3, but has been demonstrated on other versions of CentOS as well. I have attached a zip file with a simple RCP project that demonstrates this issue.
Comment 1 Eric Williams CLA 2018-05-11 14:08:58 EDT
CentOS 6 is no longer supported, is the issue still reproducible? I tried to download the RCP application, but the zip folder was empty.
Comment 2 Eric Williams CLA 2018-05-30 10:44:20 EDT
Closing this ticket now. Please re-open this ticket if the issue is reproducible on 4.8 with GTK3.22.