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 207755 - Copy & Past stops working sporadically
Summary: Copy & Past stops working sporadically
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-25 20:48 UTC by myfear
Modified: 2012-11-08 18:22 UTC (History)
5 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 myfear 2012-01-25 20:48:51 UTC
This is a sporadic issue which I wasn't able to reproduce. Nevertheless it happens to me more than once a day working with latest 7.1.

I'm doing some coding work and copy and past stuff from my editor (notepad or notepad++ on windows) to a Java Class in NetBeans.

In some point of time during the day this simply doesn't work anymore. It seems as if the clipboard in NetBeans isn't updated anymore. It still has the last (!) content, I copied (NetBeans internally!) and refuses to past any external stuff into the any editor view.
Only IDE restart solves this.

Product Version: NetBeans IDE 7.1 (Build 201112071828)
Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
Comment 1 arungupta 2012-01-25 22:44:18 UTC
Adding to CC list.

I've typically seen this when copying from an HTML or formatted editor. Copy/pasting from a text editor has always worked on my Mac.
Comment 2 Petr Somol 2012-01-26 09:02:42 UTC
Mila, please evaluate. Thanks.
Comment 3 Miloslav Metelka 2012-06-07 13:18:17 UTC
Is this still reproducible even in NB 7.2 Beta? Thanks.
Comment 4 Miloslav Metelka 2012-06-13 18:49:02 UTC
Please reopen if the problem would persist.
Comment 5 webcane 2012-06-18 17:55:38 UTC
(In reply to comment #3)
> Is this still reproducible even in NB 7.2 Beta? Thanks.

Yes, it is stil happening. (NB 7.2)
Comment 6 Vladimir Riha 2012-09-05 12:45:55 UTC
I would say that now "Copy & Paste starts working sporadically" as I have this problem quite often:

- copied text to clipboard from external software is often impossible to paste in IDE 
- copied text from IDE cannot be pasted into external software


If you Ctrl+C/X in IDE and then paste in IDE, it works fine. But clipboard interaction between NetBeans and other software is really 50:50. Restarting IDE sometimes helps.


Milo, can I give you some extra logging?



  Product Version         = NetBeans IDE Dev (Build 201209050001) (#3645cb9e4f5d)
  Operating System        = Linux version 3.2.0-29-generic-pae running on i386
  Java; VM; Vendor        = 1.7.0_06; Java HotSpot(TM) Client VM 23.2-b09; Oracle Corporation
Comment 7 lagergren 2012-09-06 05:49:01 UTC
Running 7u4 and 7.2 beta triggers it in less than 10 minutes work every time for me. Running 7u6 or above - nothing, ever.
Comment 8 hildeberto 2012-09-06 06:47:08 UTC
I constantly have this problem on Windows, even copying from Notepad. It doesn't have to be a rich text to cause the problem. I didn't have the chance to check on other platforms because I simply didn't need to perform copy & paste there ... so far.

It also start working suddenly. I have no idea how to reproduce that. Maybe, if you do what I was doing, it may happen: I was doing a re-factory in hundreds of classes, normalizing the use of Logger. So I left a Notepad window opened with the following text:

private static final Logger LOGGER = Logger.getLogger([].class.getName());

LOGGER.log(Level.

Then I was copying and pasting those lines to the code every time I noticed something different.

If you do something insanely repetitive like this you may find the issue.
Comment 9 mienamoo 2012-09-12 06:33:03 UTC
I am also experiencing this more frequently recently. My current version is build 201209110001 running on Windows 7 64-bit with JDK 7u5 64-bit.
Comment 10 mienamoo 2012-09-12 06:38:09 UTC
Also have a look at Bug 205697.
Comment 11 mienamoo 2012-09-17 07:31:42 UTC
I just noticed this exception in my NetBeans Platform application, when I wasn't even doing anything related to the clipboard. Maybe this will shed some light on the issue in the IDE...

java.lang.OutOfMemoryError: OutOfMemoryError
	at sun.awt.windows.WClipboard.getClipboardData(Native Method)
	at sun.awt.datatransfer.ClipboardTransferable.fetchOneFlavor(ClipboardTransferable.java:118)
	at sun.awt.datatransfer.ClipboardTransferable.<init>(ClipboardTransferable.java:97)
	at sun.awt.datatransfer.SunClipboard.getContents(SunClipboard.java:147)
	at org.netbeans.NbClipboard.run(NbClipboard.java:315)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1452)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2032)
Comment 12 Milutin Kristofic 2012-11-08 18:22:05 UTC
Copy Paste issue was fixed in Bug #218447.