Bug 39207 - Cut and paste does not work correctly (on a 2 processor machine?)
Summary: Cut and paste does not work correctly (on a 2 processor machine?)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Veronika Irvine CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 59915 68966 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-22 06:14 EDT by Udo Klinkmüller CLA
Modified: 2008-01-15 18:04 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Udo Klinkmüller CLA 2003-06-22 06:14:31 EDT
I work with Eclipse on different computers without any problems. But only when 
I work on my
    Dell Precision 650 MT Dual Intel XEON 2,4 GHz (512 KB Cache)
which is equipped with two processors and 1 GB memory, the cut and paste 
feature does not correctly work while editing Java source files. The effect 
is, that when I apply CTRL+X resp. SHIFT+DEL on a marked text, the text is 
moved to the clip board but it is NOT removed from the source. To remove the 
text I have always to use DEL in a second step. Sometimes when I press 
SHIFT+DEL very often in a series (about 10 times) then the text is removed how 
expected.

The described effect does only appear in Eclipse an not in other editors like 
TextPad or others.
Comment 1 Dani Megert CLA 2003-07-15 12:22:26 EDT
Works using I20030710 plain drop without changing any key binding configurations.

I suggest to reset your key bindings:
Window > Preferences > Workbench > Keys, click "Restore Defaults"

Please reopen if you then still see the problem using build I20030710 or higher.
Comment 2 Dani Megert CLA 2003-07-15 12:22:53 EDT
added pseudo keyword
Comment 3 Udo Klinkmüller CLA 2003-08-23 14:30:16 EDT
Your suggestion, that I followed, wasn't the road to success. Now I also work 
with WebSphere Application Developer 5.0 which based on Eclipse 2.0.3. Also 
there the cut/copy and paste function does not work on my two processor 
computer. And it is not only an effect in Java files but in all ASCII files. I 
am absolutely sure it is not a problem of the key bindings. The cut/copy and 
paste also doesn't work when I select the Cut- and Paste-function from the 
Edit menu. In other environments than my two processor computer I have 
absolutely no problems.
Comment 4 Dani Megert CLA 2003-08-25 04:37:32 EDT
Moving to SWT for comment.
Comment 5 Dani Megert CLA 2003-08-25 04:37:44 EDT
.
Comment 6 Veronika Irvine CLA 2003-08-27 14:46:16 EDT
Does cut and paste work when using the cut/paste menu items in the context 
menu (right mouse menu)?
Comment 7 Grant Gayed CLA 2003-09-03 17:44:44 EDT
Veronika to track this clipboard issue.  I doubt we have similar hardware to 
try this on though.
Comment 8 George Alexandrov Dimitrov CLA 2004-03-12 04:48:52 EST
We have the same problem it is not working on 1 processor machine with Pentium 
IV with HyperThreading(which makes OS to see 2 processors)
OS: Windows XP 
Cut from menu and cut from right mouse menu is not working too(it works if 
choose it more than one time)
Comment 9 George Alexandrov Dimitrov CLA 2004-03-17 08:12:55 EST
This is the tested version of Eclipse
Version: 2.1.2
Build id: 200311030802
Comment 10 George Alexandrov Dimitrov CLA 2004-03-22 02:42:12 EST
I've download new 2.1.3 version 
Build id: 200403101828
it has the same problem
bug is not fixed in it
Comment 11 Chris Falk CLA 2004-05-26 17:14:49 EDT
Same problem here.  I'm using an IBM ThinkCentre: single CPU with
hyperthreading.   We're using Eclipse in Linux running through VMWare.  All of
my other apps cut&paste just fine, but Eclipse won't do it, no matter what the
perspective editor. 
Comment 12 Chris Falk CLA 2004-05-26 17:17:38 EDT
Addendum to my last comment:  Eclipse 2.1.3 , Build 200403101828
Comment 13 Chris Falk CLA 2004-05-26 17:39:13 EDT
My last report:

Ver.: 2.1.3
Build: 200403101828

I cannot copy and paste within Eclipse.

However, I can copy a selection in eclipse, paste the selection into another
app, then copy the same selection in the other app and paste it back into
eclipse.  Wild stuff.  This is currently the best way I can copy and paste.

Chris
Comment 14 Veronika Irvine CLA 2004-07-05 11:19:19 EDT
*** Bug 68966 has been marked as a duplicate of this bug. ***
Comment 15 Veronika Irvine CLA 2004-07-05 11:20:35 EDT
Please retry with Eclipse 3.0 (released).
Comment 16 Mathias Jacob CLA 2004-07-06 01:55:52 EDT
It's the same problem with version 3.0!
Comment 17 George Alexandrov Dimitrov CLA 2004-07-06 04:15:09 EDT
We discovered that when Reget Deluxe is stopped the problem disappears when 
Reget is started it appears again. But on 1 processor machine no problems with 
Reget.
Comment 18 George Alexandrov Dimitrov CLA 2004-07-06 04:19:05 EDT
But I have no problems with Eclipse 3.0.

Version: 3.0.0
Build id: 200406251208
Comment 19 Veronika Irvine CLA 2004-07-06 08:53:12 EDT
Mathias, do you have any clipboard software running - such as Reget or 
AutoClip or ClipMagic - an application that gives you access to the last N 
items pasted to the Clipboard? If so, what is it?
Comment 20 Mathias Jacob CLA 2004-07-06 08:57:35 EDT
I don't have any clipboard software running, just eclipse and sometimes the 
internet explorer. All I know is that it works fine since I turned off 
Hyperthreading (that's the reason why I think it has something to do with 
it...).
Comment 21 Veronika Irvine CLA 2004-07-06 09:12:42 EDT
Well, I guess I will just have to order a 2 processor machine with hyper 
threading - darn : )
Comment 22 George Alexandrov Dimitrov CLA 2004-07-07 01:43:03 EDT
It's enough to order 1 processor machine with Hyper Threading (the hyper 
threading makes the OS see two processors)
This is my configuration.
Comment 23 Heiko Selber CLA 2004-07-07 10:36:03 EDT
I have quite the same problem without hyperthreading on a Pentium III (WinXP 
SP1) with various Eclipse versions up to and including Version: 3.0.0 Build 
id: 200406251208.

The only difference is that it happens *sometimes* only:

I can work for hours with Ctrl-X (or Edit -> Cut for that matter) working just 
fine, and then suddenly it fails to remove the marked text.

Original behavior is restored only when I exit and restart Eclipse.
Comment 24 Veronika Irvine CLA 2004-07-07 12:23:11 EDT
Heiko, this sounds like a different problem because it does not involve 
hyperthreading.  Please open a different bug report.  Also, when you can not 
use Ctrl-X, can you use the context menu to perform the operation?
Comment 25 Heiko Selber CLA 2004-07-08 05:01:47 EDT
Veronika, I did as requested and filed a new bug (# 69579), even though my 
experience tells me that if the symptoms are identical, the bugs may well be 
identical, too.

I didn't have the opportunity to check with the context menu yet.

Besides, in order to avoid misunderstanding: You wrote "...can not use Ctrl-
X...".

I *can* use it, it only does the same as Ctrl-C. I understand that this is the 
problem of the "2-processor bug", too.
Comment 26 Gilles Scokart CLA 2004-07-09 03:21:42 EDT
I have a similar problem with running on a good old single processor on Windows NT.
I never had any problems with the 2.1 versions, but I have it on 3.0.
I have modified the key bindings in order to use SHIFT+DEL and SHIFT+INS to
allow the cut and past.
I have also a tool collecting cutand paste history (the ones that comes with
Office 2000).
I have indeed sometimes the cut that doesn't remove the text, or sometimes that
remove it, but then the paste fails (nothing is pasted).  If I retry a few times
(sometimes changing also the selection a little bit), it finally works.

I have also notice that I have more often the problem when I select entire
line(s), instead of part of a line.
Comment 27 Veronika Irvine CLA 2004-08-31 15:45:02 EDT
I think this is finally fixed by the fix for bug 70077.

Clsoing this bug report.  Please reopen if problem continues to occur in 
Eclipse 3.0.1 M20040901 or later.
Comment 28 Duong Nguyen CLA 2008-01-15 18:04:01 EST
*** Bug 59915 has been marked as a duplicate of this bug. ***