This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 225056 - Double pasting and double delete on Mac OSX
Summary: Double pasting and double delete on Mac OSX
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.2.1
Hardware: Macintosh (x86) Mac OS X
: P1 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
: 225591 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-01-18 11:42 UTC by lschnoller
Modified: 2014-01-21 16:32 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lschnoller 2013-01-18 11:42:25 UTC
I'm using an external keyboard and at some point netbeans starts failing and everytime i press the delete key it deletes twice and when i cut/copy paste it pastes twice also. This error happens after some time of using the IDE and it is all of a suden, i can't figure out what is triggering the error. If i close netbeans and reopen, then it works correctly again for a while. 

It is almost unbearable to program like this. Please let me know if i can provide any further details on this so that it can be fixed.  

Thanks!

Lucas
Comment 1 Jiri Prox 2013-01-18 12:47:38 UTC
*** Bug 224544 has been marked as a duplicate of this bug. ***
Comment 2 lschnoller 2013-01-18 12:54:19 UTC
(In reply to comment #0)
> I'm using an external keyboard and at some point netbeans starts failing and
> everytime i press the delete key it deletes twice and when i cut/copy paste it
> pastes twice also. This error happens after some time of using the IDE and it
> is all of a suden, i can't figure out what is triggering the error. If i close
> netbeans and reopen, then it works correctly again for a while. 
> 
> It is almost unbearable to program like this. Please let me know if i can
> provide any further details on this so that it can be fixed.  
> 
> Thanks!
> 
> Lucas

I have just seen someone else to have the same problem in OSX and he doesn't mention an external keyborad. Maybe the external keyboard has nothing to do with this bug.
Comment 3 lschnoller 2013-01-18 18:44:41 UTC
it is a fact: THE EXTERNAL KEYBOARD HAS NOTHING TO DO WITH THIS BUG. I finally disconnected the keyboard and used it for a while until the same error happened. It is probably an error in the mac version only.
Comment 4 Miloslav Metelka 2013-01-21 13:36:16 UTC
This is dup of issue 208651 very likely. It was entered as JDK problem 7147817 and made a dup of issue http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7142565

*** This bug has been marked as a duplicate of bug 208651 ***
Comment 5 Marian Mirilovic 2013-01-21 13:48:57 UTC
(In reply to comment #0)
> It is almost unbearable to program like this. Please let me know if i can
> provide any further details on this so that it can be fixed.  

What is the JDK version/update you are able to reproduce this bug on ?
Comment 6 lschnoller 2013-01-21 14:34:18 UTC
(In reply to comment #5)
> (In reply to comment #0)
> > It is almost unbearable to program like this. Please let me know if i can
> > provide any further details on this so that it can be fixed.  
> 
> What is the JDK version/update you are able to reproduce this bug on ?

The JDK ver is 1.7.0_04. According to what i have read in JDK bug description it doesn't seem to be the same thing. I have problems with the delete and copy/paste keys, not with the arrow keys and it only happens after a while of using netbeans.
Comment 7 lschnoller 2013-01-21 14:36:10 UTC
According to what i have read in JDK bug description it doesn't seem to be the same thing. I have problems with the delete and copy/paste keys, not with the arrow keys and it only happens after a while of using netbeans.

(In reply to comment #5)
> (In reply to comment #0)
> > It is almost unbearable to program like this. Please let me know if i can
> > provide any further details on this so that it can be fixed.  
> 
> What is the JDK version/update you are able to reproduce this bug on ?

The JDK ver is 1.7.0_04. According to what i have read in JDK bug description it doesn't seem to be the same thing. I have problems with the delete and copy/paste keys, not with the arrow keys and it only happens after a while of using netbeans.
(In reply to comment #4)
> This is dup of issue 208651 very likely. It was entered as JDK problem 7147817
> and made a dup of issue
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7142565
> 
> *** This bug has been marked as a duplicate of bug 208651 ***
Comment 8 Milutin Kristofic 2013-01-21 15:24:31 UTC
Can you reproduce this bug on a newer jdk?
Comment 9 Tomas Danek 2013-01-21 15:44:27 UTC
This was happening to me some time ago as well, but I haven't seen this for a while using new JDKs.

Please try JDK7u11: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Comment 10 gunny 2013-01-21 16:14:20 UTC
The double delete keeps happening. 

My original report. 
--------------------------------------------------

The delete key deletes 2 characters after a while on osx. 

This happens on..
osx 10.7 and 10.8 

With these combinations. 
netbeans 7.2.1 - with jdk 1.7.0_7 or 1.7.0_10
netbeans 7.1.2 - with jdk 1.7.0_7 or 1.7.0_10

I have found no combination of osx, jdk, and 
netbeans that works without this bug.

You have a bug like this marked resolved. 
It is not resolved. 

I use netbeans to work on a java project 
for a while and then this happens.

I do use svn when this happens if you are 
having trouble recreating this bug.

workstation #1: imac with standard keyboard.
workstation #2: mini mac with standard keyboard. 

This happens on both workstations.
Comment 11 Tomas Danek 2013-01-22 14:46:05 UTC
most likely very same problem as #224544.
lschnoller, can you please try to reproduce on your mac using JDK7u11 (see comment 9) and reopen if you are still able to reproduce? 
Thanks in advance.
Comment 12 Milutin Kristofic 2013-01-22 15:17:19 UTC
I added logs to editor actions. http://hg.netbeans.org/jet-main/rev/89c3ea3ec65f

If problems prevails, please run dev netbeans with log: ./netbeans -J-Dorg.netbeans.editor.BaseKit.level=400 

and attach logs. It is printing stacktrace. I expect to have 2 stacktraces when problem occurs.
Comment 13 lschnoller 2013-01-22 15:39:43 UTC
Ok guys i really appreciate the support. I'll update to JDK7u11 but i doubt it makes a different since Gunny has the same problem with u10. 

About adding the log, i'd love to but not sure how to go about it, i'm really new and running configs and stuff, could you please guide me a bit further? The questions is how do i run dev netbeans with log and once it ran, where do i read the log from? 

Thanks!

(In reply to comment #12)
> I added logs to editor actions.
> http://hg.netbeans.org/jet-main/rev/89c3ea3ec65f
> 
> If problems prevails, please run dev netbeans with log: ./netbeans
> -J-Dorg.netbeans.editor.BaseKit.level=400 
> 
> and attach logs. It is printing stacktrace. I expect to have 2 stacktraces when
> problem occurs.
Comment 14 Quality Engineering 2013-01-23 02:49:15 UTC
Integrated into 'main-golden', will be available in build *201301230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/89c3ea3ec65f
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #225056 - Double pasting and double delete on Mac OSX - logging
Comment 15 Tomas Danek 2013-01-23 09:18:28 UTC
You can run NetBeans from terminal, using something like:
/Applications/NetBeans/NetBeans\ 7.2.1.app/Contents/Resources/NetBeans/bin/netbeans  -J-Dorg.netbeans.editor.BaseKit.level=400 

(of course this example will run 7.2.1 where advanced logging is not present, you need download Dev build mentioned in comment 14 or any later Dev build. Just replace "NetBeans\ 7.2.1.app" with installed Dev build app folder name)

Log will be printed into terminal, other option is to invoke from menu View | IDE log directly from running IDE.
Hope that helps.


(In reply to comment #13)
> Ok guys i really appreciate the support. I'll update to JDK7u11 but i doubt it
> makes a different since Gunny has the same problem with u10. 
> 
> About adding the log, i'd love to but not sure how to go about it, i'm really
> new and running configs and stuff, could you please guide me a bit further? The
> questions is how do i run dev netbeans with log and once it ran, where do i
> read the log from? 
> 
> Thanks!
> 
> (In reply to comment #12)
> > I added logs to editor actions.
> > http://hg.netbeans.org/jet-main/rev/89c3ea3ec65f
> > 
> > If problems prevails, please run dev netbeans with log: ./netbeans
> > -J-Dorg.netbeans.editor.BaseKit.level=400 
> > 
> > and attach logs. It is printing stacktrace. I expect to have 2 stacktraces when
> > problem occurs.
Comment 16 lschnoller 2013-01-29 14:58:03 UTC
Hi Guys! 

Just updating to JDK7u11 made the trick. I used it for several days now and never got the problem again, what a relief!!!

Thanks so much for the help. Cheers!
Comment 17 Tomas Danek 2013-01-29 15:09:14 UTC
Glad to hear! (Putting back to WORKSFORME state, since there was no actual fix on our side).
(In reply to comment #16)
> Hi Guys! 
> 
> Just updating to JDK7u11 made the trick. I used it for several days now and
> never got the problem again, what a relief!!!
> 
> Thanks so much for the help. Cheers!
Comment 18 gunny 2013-01-29 15:26:13 UTC
Trying 1.7.0_11 today.  Will let you know if it continues.
Comment 19 Milutin Kristofic 2013-02-04 12:53:14 UTC
*** Bug 225591 has been marked as a duplicate of this bug. ***
Comment 20 netb4t4 2013-02-19 02:10:14 UTC
This is the only 'recent' thread I can find on this double DELETE issue.  I have encountered the same problem with the DELETE key, but only when the focus is a JTree instance (no problem with text fields).  My setup is slightly different (God forbid, I use a different IDE), but I just installed Java build 1.7.0_13-B20. This didn't happen on the 1.6 build.  I can't find a bug report on the Oracle site, and hoped that somebody here knows what it might be so I can follow the status (It seems as if all of your Bug numbers are NetBeans specific, so I can't search by the bug #s here).

Thanks for the help.

Mark
Comment 21 austinhaws 2013-03-04 19:30:01 UTC
This happens to me to:

Product Version: NetBeans IDE 7.3 (Build 201302132200)
Java: 1.7.0_15; Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_15-b03
System: Mac OS X version 10.8.2 running on x86_64; US-ASCII; en_US (nb)


It happened in netbeans 7.2 and earlier but i saw somewhere that the java version was the culprit. Updated java and it still happens. Haven't been able to track down what causes it to happen but after netbeans has been running for a while pressing cmd+w closes two tabs at once, pressing delete deletes two characters, pressing the build keystroke starts two builds. It's quite troublesome. Restarting netbeans always fixes it for a while.
Comment 22 yaronguez 2013-10-16 00:12:19 UTC
I just started experiencing the same problem on 7.3.1 on a Mac.  It makes working extremely difficult.  Every time I press the delete key on my keyboard (internal or external) it deletes two characters.  Pressing undo removes only one.  Any suggestions?
Comment 23 yaronguez 2013-10-16 00:58:37 UTC
UPDATE: I thought I was running the latest version of Java but turns out I wasn't.  Ran the updater, re-launched, and the problem is fixed.
Comment 24 eumust 2013-10-18 05:27:22 UTC
I still has the bug with NB 7.4 and JDK 7u40 and 7u45


Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Mac OS X version 10.8.5 running on x86_64; UTF-8; en_US (nb)
Comment 25 Antonin Nebuzelsky 2013-10-23 14:59:36 UTC
Stando, please reevaluate.
Comment 26 Stanislav Aubrecht 2013-10-23 15:04:29 UTC
(In reply to eumust from comment #24)
> I still has the bug with NB 7.4 and JDK 7u40 and 7u45
> 
Are you using external keyboard?
Comment 27 Stanislav Aubrecht 2013-10-23 15:15:17 UTC
Works fine for me in

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Mac OS X version 10.9 running on x86_64; UTF-8; en_US (nb)

(using laptop's built-in keyboard)
Comment 28 Stanislav Aubrecht 2013-10-24 09:05:09 UTC
(In reply to eumust from comment #24)
> I still has the bug with NB 7.4 and JDK 7u40 and 7u45
> 
> 
> Product Version: NetBeans IDE 7.4 (Build 201310111528)
> Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
> Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
> System: Mac OS X version 10.8.5 running on x86_64; UTF-8; en_US (nb)

Please run NetBeans with -J-Dorg.netbeans.editor.BaseKit.level=400 command line switch, attach terminal output and your IDE log and then reopen, thanks.
Comment 29 eumust 2013-10-28 08:55:05 UTC
(In reply to Stanislav Aubrecht from comment #26)
> (In reply to eumust from comment #24)
> > I still has the bug with NB 7.4 and JDK 7u40 and 7u45
> > 
> Are you using external keyboard?

Yes
Comment 30 loganbarnett 2014-01-21 16:31:22 UTC
I've also been getting this issue.
OSX 10.9.1
Java 1.7.0_15
Netbeans 7.4 (Build 201310111528) Patch 2

I'm also using an external keyboard. When it starts up again I'll try the onboard keyboard and see if there's any differences.