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 237301 - NetBeans 7.4 is freezing a lot
Summary: NetBeans 7.4 is freezing a lot
Status: VERIFIED DUPLICATE of bug 236095
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.4
Hardware: All All
: P1 normal with 6 votes (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 237894 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-18 09:18 UTC by puce
Modified: 2015-10-18 12:23 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot when trying to open a source file (166.19 KB, image/png)
2013-10-30 16:38 UTC, pjsalomonsen
Details
Thread dump (25.40 KB, text/plain)
2013-10-30 16:39 UTC, pjsalomonsen
Details
Thread dump on reopening Netbeans after freeze on opening file (21.59 KB, text/plain)
2013-10-30 16:45 UTC, pjsalomonsen
Details
Thread dump on Git diff - causes full freeze (must be killed with -9) (26.25 KB, text/plain)
2013-10-30 16:48 UTC, pjsalomonsen
Details
Screenshot of git diff (frozen) (64.28 KB, image/png)
2013-10-30 16:48 UTC, pjsalomonsen
Details
Thread Dump after canceling the preferences window on NB7.4p2 (15.32 KB, text/plain)
2014-01-05 15:20 UTC, slavikme
Details

Note You need to log in before you can comment on or make changes to this bug.
Description puce 2013-10-18 09:18:05 UTC
NetBeans 7.4 is freezing a lot and I have to kill the process.

As I'm currently evaluating NetBeans for our current project, this becomes a major blocker -> P1

Project size: > 100 Maven projects
Dev environment:
NetBeans is running on a virtual desktop.

Guest:
Windows 7 Enterprise N (Service Pack 1)
Comment 1 puce 2013-10-18 09:22:23 UTC
Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.7.0; IBM J9 VM 2.6
Runtime: Java(TM) SE Runtime Environment pwa6470sr2-20120901_01 (SR2)
System: Windows 7 version 6.1 running on amd64; Cp1252; de_CH (nb)
Comment 2 Marian Mirilovic 2013-10-20 09:54:31 UTC
1. please try JDK from oracle and let us know
2. if you are facing freezes, we need at least thread-dump generated at the time of freeze http://wiki.netbeans.org/GenerateThreadDump
3. provide information from points above and reopen, thanks in advance
Comment 3 pjsalomonsen 2013-10-30 09:29:32 UTC
I'm using Mac OSX Mavericks. Oracle JDK 1.7.0_45. NetBeans 7.4. Trying to show a GIT diff, but Netbeans freezes - and won't respond to kill signal (have to use -9). 

Another freeze happening quite often (haven't been able to determine the pattern yet) when opening source files. The source file title displays in the tabbed pane, but the content pane remains grey and nothing happens. In this case responds to kill signal. It seems to help clearing the netbeans cache but doesn't take long before it happens again.
Comment 4 Marian Mirilovic 2013-10-30 11:52:40 UTC
please provide thread-dump at the time of freeze and reopen 
> if you are facing freezes, we need at least thread-dump generated at the time of freeze http://wiki.netbeans.org/GenerateThreadDump
Comment 5 pjsalomonsen 2013-10-30 16:38:08 UTC
Created attachment 141708 [details]
Screenshot when trying to open a source file
Comment 6 pjsalomonsen 2013-10-30 16:39:24 UTC
Created attachment 141709 [details]
Thread dump
Comment 7 pjsalomonsen 2013-10-30 16:45:01 UTC
Created attachment 141711 [details]
Thread dump on reopening Netbeans after freeze on opening file
Comment 8 pjsalomonsen 2013-10-30 16:48:11 UTC
Created attachment 141712 [details]
Thread dump on Git diff - causes full freeze (must be killed with -9)
Comment 9 pjsalomonsen 2013-10-30 16:48:59 UTC
Created attachment 141713 [details]
Screenshot of git diff (frozen)
Comment 10 DonWills 2013-10-30 21:09:58 UTC
I have had three or four hard freezes with 7.4, OSX Mavericks using jdk1.7.0_45.  Spinning blue ball.  No response at all.  Force Quit kills it.  Starts back up fine.  I can't recall any pattern as to exactly what was the last command before the freeze, but I don't think it's the same in each case.  I have a vague recollection that it was when I clicked the Apply button on a preferences dialog or something similar.

Details.  Small projects, Java and C.  No version control or anything special - just editing, compiling, debugging.  I'm considering moving from Eclipse to NetBeans and this could be a deal killer if it continues.
Comment 11 funkyfly 2013-10-31 08:53:34 UTC
It's freezing for me a lot too. I updated JVM to the Oracle's 1.7.0_45, but it didn't help.

System Info: 
  Product Version         = NetBeans IDE 7.4 (Build 201310111528) (#6523d6792981)
  Operating System        = Linux version 3.11.0-12-generic running on amd64
  Java; VM; Vendor        = 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.7.0_45-b18
  Java Home               = /usr/lib/jvm/jdk1.7.0_45/jre
  System Locale; Encoding = en_US (nb); UTF-8

Here is the full system info:
https://gist.github.com/vladas/7246319
Comment 12 funkyfly 2013-10-31 08:54:51 UTC
(In reply to funkyfly from comment #11)
> It's freezing for me a lot too. I updated JVM to the Oracle's 1.7.0_45, but
> it didn't help.
> 
> System Info: 
>   Product Version         = NetBeans IDE 7.4 (Build 201310111528)
> (#6523d6792981)
>   Operating System        = Linux version 3.11.0-12-generic running on amd64
>   Java; VM; Vendor        = 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM
> 24.45-b08; Oracle Corporation
>   Runtime                 = Java(TM) SE Runtime Environment 1.7.0_45-b18
>   Java Home               = /usr/lib/jvm/jdk1.7.0_45/jre
>   System Locale; Encoding = en_US (nb); UTF-8
> 
> Here is the full system info:
> https://gist.github.com/vladas/7246319

So I switched back to 7.3, because it was unbearable.
Comment 13 Miloslav Metelka 2013-10-31 21:53:10 UTC
Martine, could it possibly be resolved by not acquiring the LineTranslations$BreakpointLineUpdater monitor?
Comment 14 Martin Entlicher 2013-11-01 09:45:14 UTC
This is already fixed in 8.0 dev builds. See issue #236095.
We should make a patch available for 7.4.

*** This bug has been marked as a duplicate of bug 236095 ***
Comment 15 Martin Entlicher 2013-11-01 10:52:29 UTC
As a workaround, until the patch is ready, it should help to eliminate all unnecessary breakpoints. Reducing the number of breakpoints will reduce the chance of this issue.
Comment 16 Miloslav Metelka 2013-11-04 16:38:34 UTC
*** Bug 237894 has been marked as a duplicate of this bug. ***
Comment 17 chakie 2013-11-15 12:56:36 UTC
On OSX I see this every 10 minutes or so. 7.4 as well as 7.3.1 just stop responding and start beach balling. Nothing gets saved either and I've lost a few hours of work today. Switching to another IDE for now at least.

OSX Mavericks
Java 1.7u45 (or similar, the one with the retina fixes).
NetBeans 7.3.1 and 7.4
Comment 18 pjsalomonsen 2013-11-15 12:59:57 UTC
As said earlier - delete all breakpoints that you're not using. I can confirm that this works. Hopefully next version will handle many breakpoints again - but most probably you have many breakpoints that you're not using anyway. No need to switch IDE :-)
Comment 19 Martin Entlicher 2013-11-15 13:08:17 UTC
A fix to this problem is already a part of an upcoming patch of 7.4.
See issue #236095.
Comment 20 nickrouty 2013-11-18 15:23:04 UTC
I am experiencing this same issue with 7.4 on Mavericks, retina display. Is there a way to integrate this patch manually before a general release? I don't have any breakpoints set. Any help would be appreciated as it renders netbeans useless.
Comment 21 Martin Entlicher 2013-11-18 15:36:57 UTC
When you don't have any breakpoints set, it's likely that it's a different problem. Can you please attach a full thread dump so that we're sure?

According to http://wiki.netbeans.org/NetBeansPatchesProcess the patch should be available the day after tomorrow.
Comment 22 pjsalomonsen 2013-11-18 19:59:04 UTC
Try deleting (or moving - if you don't want to loose your settings) the Library/Application Support/NetBeans/7.4 folder, and don't choose to import from previous NetBeans versions when starting up.

This is what I did - (I didn't delete breakpoints, I deleted all of my settings). I did this before the breakpoints were mentioned here - so I thought deleting breakpoints was enough when I wrote the last post. I haven't had any problems (using Mavericks OSX, latest JDK) since I deleted my settings.
Comment 23 matkordell 2013-11-19 19:18:17 UTC
I tried the solution provided by pjsalomonsen@netbeans.org with no luck.

I'm running OS X Mavericks with all patches, Java 7u45, NetBeans 7.3.1 and 7.4.

Experiencing hangs at complete random when clicking, copy/past, completing pretty much any task in the application.  Happens every 5-10 minutes upon an action within the app.

Don't have time for this.  Changing IDEs for the time being.
Comment 24 Martin Entlicher 2013-11-19 21:02:51 UTC
matkordell, please at least do not create chaos in our bugtracking system, O.K.?

*** This bug has been marked as a duplicate of bug 236095 ***
Comment 25 netbiolab12 2013-12-16 08:14:14 UTC
Confirm same bug:

Product Version: NetBeans IDE 7.4 (Build 201310111528)
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
System: Ubuntu 13.10 64 bit running on amd64
Comment 26 Jiri Kovalsky 2013-12-16 08:27:43 UTC
Please do not reopen this bug. It is already fixed in NetBeans 7.4 Patch 1. You use only NetBeans 7.4.

*** This bug has been marked as a duplicate of bug 236095 ***
Comment 27 slavikme 2013-12-30 12:59:36 UTC
Same problem here.
I've experienced this problem on NetBeans 7.3.1, 7.4, 7.4 Patch 1, 7.4 Patch 2.
The IDE still hangup randomly each time, cannot find particular pattern.
It happens every 10-15 minutes, extremely annoying!
I'm working with the IDE along this bug already for 3 months or so. Still not giving up on NetBeans. But please, fix it ASAP. I will provide whatever you need to help fixing this problem.

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 2
Java: 1.7.0_40-ea; Java HotSpot(TM) 64-Bit Server VM 24.0-b48
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-ea-b29
System: Mac OS X version 10.9.1 running on x86_64; UTF-8; en_US (nb)
User directory: /Users/XXX/Library/Application Support/NetBeans/7.4
Cache directory: /Users/XXX/Library/Caches/NetBeans/7.4

Thanks.
Comment 28 slavikme 2013-12-30 13:06:35 UTC
Another thing I noticed, is that when the IDE is hanging up, it looks like he is still running on the background, I can see the Performance Graph is still running and the cursor is blinking, but the mouse becomes a spinning icon and I cannot do anything except Force Quitting the IDE.
Comment 29 xtech86 2013-12-30 14:32:23 UTC
I am having this constantly on Mac OSX 10.9.1.

Just hangs with a spinning icon. It's driving me crazy! 

Using mainly for HTML/CSS/PHP with GIT.
Comment 30 xtech86 2013-12-30 14:50:19 UTC
I'm trying the latest Dev release now, I will let you know how it goes.
Comment 31 xtech86 2013-12-30 15:04:15 UTC
Update, just saved some settings then it instantly froze.Dev revision has not fixed it.

Thanks
Tony
Comment 32 Jiri Kovalsky 2013-12-30 19:48:32 UTC
Then your problem is another issue. Please file it as a separate bug and attach full thread dump. Thanks.
Comment 33 slavikme 2014-01-02 15:16:33 UTC
For me, mostly it happens in Preferences window, and when I search something in project's files.
But it doesn't happens all the time, sometimes it freezes and sometimes it doesn't.

Don't know if it helps.
Comment 34 slavikme 2014-01-02 15:18:22 UTC
I just tested it in the latest dev version, and it still freezes.
Comment 35 slavikme 2014-01-02 15:22:03 UTC
Jiri Kovalsky,
Why do you think it's a different issue?
For me it looks like the same issue that was never fixed. I checked it on all versions since 7.3.1 and it's still freezes on each version!
Comment 36 Martin Entlicher 2014-01-02 15:59:15 UTC
Please provide a thread dump or a profiling snapshot.
http://wiki.netbeans.org/GenerateThreadDump
http://wiki.netbeans.org/FaqProfileMeNow
Only then we can decide if this is a separate issue or if this is just a same problem, that was not fully fixed. Please provide this as a separate bug report, since it's likely that this is a different issue. A large application such as NetBeans can have problems with performance/deadlocks/UI slownesses on many different places. Even when they manifest in a very similar way, their cause can be very different.
Comment 37 Martin Entlicher 2014-01-03 15:05:50 UTC

*** This bug has been marked as a duplicate of bug 236095 ***
Comment 38 Jiri Kovalsky 2014-01-03 15:12:31 UTC
Correct.
Comment 39 slavikme 2014-01-05 15:20:19 UTC
Created attachment 143607 [details]
Thread Dump after canceling the preferences window on NB7.4p2

Thread dump of NetBeans 7.4 Patch 2, after canceling the Preferences windows.
Comment 40 Martin Entlicher 2014-01-05 16:49:33 UTC
I've asked you to report this as a separate bug.
I've done that: https://netbeans.org/bugzilla/show_bug.cgi?id=240004
Comment 41 slavikme 2014-01-05 16:52:20 UTC
Sorry. Thank you Martin.
Comment 42 flaviolacer 2014-04-02 15:20:04 UTC
Same problem. Fixed deleting the file netbeans.import on Contents/Resources/NetBeans/etc.

Hope it helps.

OS: OSX Mavericks

(In reply to slavikme from comment #27)
> Same problem here.
> I've experienced this problem on NetBeans 7.3.1, 7.4, 7.4 Patch 1, 7.4 Patch
> 2.
> The IDE still hangup randomly each time, cannot find particular pattern.
> It happens every 10-15 minutes, extremely annoying!
> I'm working with the IDE along this bug already for 3 months or so. Still
> not giving up on NetBeans. But please, fix it ASAP. I will provide whatever
> you need to help fixing this problem.
> 
> Product Version: NetBeans IDE 7.4 (Build 201310111528)
> Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 2
> Java: 1.7.0_40-ea; Java HotSpot(TM) 64-Bit Server VM 24.0-b48
> Runtime: Java(TM) SE Runtime Environment 1.7.0_40-ea-b29
> System: Mac OS X version 10.9.1 running on x86_64; UTF-8; en_US (nb)
> User directory: /Users/XXX/Library/Application Support/NetBeans/7.4
> Cache directory: /Users/XXX/Library/Caches/NetBeans/7.4
> 
> Thanks.
Comment 43 mortezania 2015-10-18 12:23:34 UTC
I use from netbeans 8.02 for me netbeans hanging problem solved just with renaming "component" folder name of netbeans in following path ...AppData\Roaming\NetBeans\8.0.2\config\Windows2Local