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 233338 - NetBeans freezes on copy paste
Summary: NetBeans freezes on copy paste
Status: RESOLVED DUPLICATE of bug 233557
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P1 normal with 1 vote (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-24 16:32 UTC by richpri
Modified: 2015-04-26 07:55 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Requested thread dump (10.17 KB, text/plain)
2013-07-24 18:03 UTC, richpri
Details
thread dump for second freeze. (18.37 KB, text/plain)
2013-07-24 20:45 UTC, richpri
Details
/etc/java-6-openjdk/logging.properties (2.19 KB, text/plain)
2013-07-25 14:31 UTC, richpri
Details
Another thread dump (12.09 KB, text/plain)
2013-08-01 08:32 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description richpri 2013-07-24 16:32:30 UTC
NetBeans 7.3.1 freezes when I try to paste text copied from a file to an external text editor.  The copy occurs in the NetBeans editor and the paste is attempted in the gedit editor.  Nothing is pasted.  NetBeans is still responsive after the copy but it freezes when the paste is attempted in gedit!

I would be happy to provide whatever debugging information that you wish from me. But you will have to explain to me how to produce it. I am running a basic UBUNTU environment.
Comment 1 Jan Lahoda 2013-07-24 16:43:15 UTC
I guess having a thread dump would be a good start:
http://wiki.netbeans.org/GenerateThreadDump

Thanks.
Comment 2 richpri 2013-07-24 17:34:01 UTC
I will get thread dump ASAP.

Note that new bug 233341 references this bug.
Comment 3 richpri 2013-07-24 18:03:38 UTC
Created attachment 137728 [details]
Requested thread dump
Comment 4 richpri 2013-07-24 20:44:06 UTC
This freeze is more pervasive than I thought at first.  It happened again just after I pasted some text into  a file. IE: Text going in the other direction [from external source to NetBeans editor]. There was some delay after the paste before the freeze and the paste worked. I will attach a thread dump for this freeze.
Comment 5 richpri 2013-07-24 20:45:41 UTC
Created attachment 137735 [details]
thread dump for second freeze.
Comment 6 Svata Dedic 2013-07-25 12:10:47 UTC
In the 2nd threaddump, two (!) AWT event dispatch threads are present ("AWT-EventQueue-4", "AWT-EventQueue-2"), both in their event dispatch loops I am not entirely sure how that might happen.

I've noticed that you use OpenJDK - which version it was ? Please attach the ide.log as well; thanks.
Comment 7 Svata Dedic 2013-07-25 12:12:00 UTC
(log can be found in your $userdir/var/log/ directory)
Comment 8 richpri 2013-07-25 14:31:59 UTC
Created attachment 137807 [details]
/etc/java-6-openjdk/logging.properties

I am running openjdk-6-jre 6b27-1.12.6-1ubuntu0.12.04.2

I could not find an ide.log. Perhaps I do not have logging turned on.
I am not knowedgable in java but I did find the attached file at
/etc/java-6-openjdk/logging.properties
Comment 9 Svata Dedic 2013-07-25 14:35:19 UTC
Display Help | About dialog box. You can find the location of "User Directory" there. There are two main sub-folder is that directory - var (look in var/log for message.log) and config (where all the configuration is kept)
Comment 10 Jan Lahoda 2013-07-25 14:43:31 UTC
FYI:
https://netbeans.org/projects/platform/lists/dev/archive/2013-07/message/274

I would suggest to try running under OpenJDK 7.
Comment 11 richpri 2013-07-25 15:17:43 UTC
I removed OpenJDK 6 and installed OpenJDK 7.

Now NetBeans will not start.  I get no response when I try.

I tried to reinstall NetBeans with netbeans-7.3.1-php-linux.sh
and got "All of available components are already installed".

Do I now have to uninstall and reinstall NetBeans?
If so, then how do I do uninstall?
Comment 12 Milutin Kristofic 2013-07-25 17:44:21 UTC
You can delete netbeans folder in home directory. That is enough for uninstall.
Comment 13 Jan Lahoda 2013-07-25 22:01:36 UTC
(In reply to comment #11)
> I removed OpenJDK 6 and installed OpenJDK 7.
> 
> Now NetBeans will not start.  I get no response when I try.
> 
> I tried to reinstall NetBeans with netbeans-7.3.1-php-linux.sh
> and got "All of available components are already installed".
> 
> Do I now have to uninstall and reinstall NetBeans?

Hm, I guess the problem is that the path to the JDK is hardcoded in the installation directory. Reinstall would help, but fixing the path to the JDK manually is feasible as well:
-go into the netbeans installation directory and open etc/netbeans.conf
-there is line like this:
netbeans_jdkhome="<path-to-jdk>"
fix the path to point to the new JDK location

The launcher prints an error, but only to the stderr.

Sorry for this trouble.

> If so, then how do I do uninstall?
Comment 14 richpri 2013-07-25 22:33:23 UTC
I have successfully reinstalled NetBeans.
So far I have experienced no freezes. :-)

I will let you know if the problem reoccurs.
If you don't hear from me for a few days,
please close this bug report.
Comment 15 richpri 2013-07-25 22:36:26 UTC
Oh. And thanks for your help in this matter!
Comment 16 Svata Dedic 2013-07-26 07:33:47 UTC
OK, closing as wontfix - must be fixed by JDK (or different version of it). Thanks for the help, Lahvaci.

Please reopen the defect (or file another) if happens again with recent version of OpenJDK and/or Oracle JDK 6-7
Comment 17 Roman Svitanic 2013-07-29 08:23:53 UTC
*** Bug 233381 has been marked as a duplicate of this bug. ***
Comment 18 Marian Mirilovic 2013-08-01 08:24:54 UTC
BUG reported against Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/1204906

Tonda, could we escalate this ? NetBeans doesn't work at all after last update of OpenJDK.
Comment 19 Jan Lahoda 2013-08-01 08:32:16 UTC
Created attachment 138105 [details]
Another thread dump

Appears to be trivially reproducible: this thread dump is while trying to start full build of NetBeans minus ergonomics - a dialog appears that some modules cannot be installed because they cannot run on Linux. The dialog cannot be confirmed - the hypothesis is that the events go to the wrong instance of AWT Event Dispatch thread. Thread dump shows two dispatch threads.
Comment 20 Antonin Nebuzelsky 2013-08-01 10:07:32 UTC

*** This bug has been marked as a duplicate of bug 233557 ***
Comment 21 sh.n.n786 2015-04-26 07:55:00 UTC
Hello
I have a same issue and it didn't any logs and dump.