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 236230 - netbeans 7.4 RC freezing when opening a file
Summary: netbeans 7.4 RC freezing when opening a file
Status: RESOLVED DUPLICATE of bug 236095
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 236153 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-21 21:34 UTC by campino
Modified: 2013-12-03 14:44 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump from the frozen process (26.62 KB, text/plain)
2013-09-21 21:56 UTC, campino
Details
VisualVM - Threaddump after trying to open a file (30.34 KB, application/octet-stream)
2013-10-29 23:47 UTC, mwildam
Details
Screenshot of Editor tab status after freeze (6.25 KB, image/png)
2013-10-29 23:48 UTC, mwildam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description campino 2013-09-21 21:34:21 UTC
I am working on a C/C++ project using the 7.4 RC. The project is mixed language, containing lua and C code. I did not install the netbeans lua plugin, so I expect netbeans to open lua files as plain text. This works well normally. 

Occasionally it will not open lua files, but instead freeze. The UI opens a new tab, it has the source and history button, but the area that should display source code is just blank.  

I connected VisualVM to the frozen process and saw that the memory usage is constantly growing. The Monitor panel shows a nice Sawtooth function for the heap usage. CPU usage is around 10% with spikes occasionally. 
I attached a heap dump to the bug report. VisualVM reported a NullPointerException while the heap dump was generated, but I hope it helps nevertheless. 

I installed the netbeans 7.4 RC in the JavaSE version and added the C/C++ plugin later. If there is a lua plugin for netbeans, it is not installed (as far as I know there is non).

I can not explain how to reproduce this bug, because I can not reproduce it. It did happen more than once. 

My platform: 

Linux Fedora 17, kernel 3.9.10-100.fc17.x86_64

java version "1.7.0_25"
OpenJDK Runtime Environment (fedora-2.3.12.1.fc17-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
Comment 1 campino 2013-09-21 21:56:41 UTC
Created attachment 140343 [details]
thread dump from the frozen process

The heap dump is too large to upload it, so here is a thread dump. 

The heap dump is at https://www.dropbox.com/s/pw50dw2vcmkanyx/heapdump-1379798690133.hprof
Comment 2 Petr Cyhelsky 2013-09-23 07:49:47 UTC
there seems to be a deadlock in debugger between "org.openide.text Editor Initialization" and "org.openide.text Document Processing" reassigning to debugger.
Comment 3 campino 2013-10-04 10:49:07 UTC
Just for completeness: I saw the same defect with the Java Editor. So the information that it happened in a C/C++ project/ with lua/plain test files is obsolete. 

Actually a lot of information is obsolete. "The IDE freezes when I try to open a new source file" is all that is left.
Comment 4 Martin Entlicher 2013-10-07 13:28:51 UTC
*** Bug 236153 has been marked as a duplicate of this bug. ***
Comment 5 Martin Entlicher 2013-10-07 14:16:42 UTC
This is hopefully already fixed in post-7.4 builds by issue #236095

*** This bug has been marked as a duplicate of bug 236095 ***
Comment 6 mwildam 2013-10-29 23:46:09 UTC
Don't understand why target milestone is 8.0 for such a core problem (same for referenced bug 236095.

If it should already be fixed with an up-to-date 7.4 then it is not - I am still experiencing the issue.
Comment 7 mwildam 2013-10-29 23:47:53 UTC
Created attachment 141670 [details]
VisualVM - Threaddump after trying to open a file

Opening the file first creates an empty file tab then I switched tabs and then it froze.
Comment 8 mwildam 2013-10-29 23:48:33 UTC
Created attachment 141671 [details]
Screenshot of Editor tab status after freeze
Comment 9 mwildam 2013-12-03 14:44:28 UTC
Thanks to all who worked on this - With the updates I applied yesterday the problem seems to be gone - Thank you! This was a show-stopper for using NetBeans 7.4 (at least for me).

AngularJS Editor [1.4.1 -> 1.4.2] Ant 
  Text API [6.58.1 -> 6.58.2] Bugzilla 
  Mylyn Support Utilities [1.16.1 -> 1.16.2]
CSS Preprocessors 
  CSS Editor [1.57.1 -> 1.57.2] 
  CSS Library [1.65.1 -> 1.67.2]
Cordova Support 
  Android Platform [1.20.1 -> 1.20.2] 
  Java Profiler (JFluid) [1.44.1 -> 1.44.2] 
  Java Profiler (JFluid-UI) [1.33.1 -> 1.33.2] 
  iOS Platform [1.20.1 -> 1.20.2]
Database 
  Database Metadata Model [1.4.1 -> 1.4.2]
GUI Builder 
  Form Editor [1.50.1.4 -> 1.50.2.4] Git [1.11.1.1 -> 1.11.2.1]
Hibernate 
  Editor [1.75.1.5.22.43 -> 1.75.2.5.22.43]
Hudson UI 
  Common Test Runner API [1.37.1 -> 1.37.2]
IDE Platform 
  General Online Help [1.42.1 -> 1.42.2] 
  JavaScript2 ExtJS [1.1.1 -> 1.1.2] 
  Native Execution [1.30.4.1 -> 1.30.5.1] 
  Native Terminal [1.16.1.1 -> 1.16.2.1] 
  Output Window [1.34.1 -> 1.34.3] 
  Refactoring API [1.37.1.1 -> 1.37.3.1] 
  Terminal [1.16.1 -> 1.16.2] 
  Terminal Emulator [1.27.1 -> 1.29.1]
JSF 
  Expression Language [1.39.1 -> 1.39.2] 
  JSF Editor for XHTML [1.41.1 -> 1.41.2]
Java
  JUnit Tests [2.60.1 -> 2.60.2] 
  Java Refactoring [1.48.1.1 -> 1.48.2.1]
Java Debugger
  JPDA Debugger [1.56.1 -> 1.56.2]
Java EE Base
  JPDA Debugger Projects Integration [1.27.1 -> 1.27.2] 
  NEON File Editor Support [1.13.1 -> 1.13.2]
Java Persistence
  EclipseLink (JPA 2.1) [1.25.1 -> 1.27] 
  EclipseLink-ModelGen (JPA 2.1) [1.25.1 -> 1.27] 
  Java Persistence API Support [1.42.1.1 -> 1.44.0.1]
Java Profiler
  Java Profiler (HeapWalker) [1.95.1 -> 1.95.2] 
  Java Profiler (OQL) [2.9.1 -> 2.9.2]
Knockout HTML Editor
  JavaScript2 Editor [0.29.1 -> 0.29.3] 
  Lexer [1.53.1.1 -> 1.55.2.1]
Local History
  Versioning Core [1.17.2.1.42 -> 1.17.3.1.42]
Maven
  Maven Java EE [1.49.1 -> 1.49.2] 
  Maven Projects [2.86.1 -> 2.86.2] 
  Maven Repository Indexing [2.25.1 -> 2.25.2]
Mercurial [1.34.1.42.1 -> 1.34.2.42.1]
RCP Platform
  Auto Update Services [1.42.1 -> 1.42.2] 
  Auto Update UI [1.38.1 -> 1.38.2] 
  Core Network Settings [1.1.1 -> 1.1.2] 
  Keymap Options [1.28.1 -> 1.28.2] 
  Master Filesystem [2.44.1 -> 2.44.3]
Spring Beans 
  Java Source [0.129.1.26.2.24.8 -> 0.129.2.26.2.24.8]
Subversion 
  Project API [1.54.1 -> 1.54.2] 
  Versioning [1.40.1.1 -> 1.40.2.1] 
  Versioning Support Utilities [1.50.1.42.1 -> 1.50.2.42.1]
TestNG 
  Maven Embedder [2.42.1 -> 2.42.2] 
  Maven NetBeans Module Projects [1.47.1 -> 1.47.2]