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.
Product Version = NetBeans IDE Dev (Build 201204240400) Operating System = Windows 7 version 6.1 running on x86 Java; VM; Vendor = 1.7.0_03 Runtime = Java HotSpot(TM) Client VM 22.1-b02 In the last two daily builds I've seen the IDE freezing on me. When I check the task manager I've seen it above one GB of RAM usage. See attached snapshot taken near freezing.
Created attachment 118715 [details] Snapshot
Reassign to performance for further evaluation ... feel free to reassign.
Created attachment 118882 [details] OOME on build 201204270400 Hopefully this log helps.
the messages.log shows: java.lang.OutOfMemoryError: unable to create new native thread so it is not a out-of-memory case, but something in the IDE is creating a lot new threads. According to messages.log the there is a problem with subversion - 'Previous operation has not finished; run 'cleanup' if it was interrupted ' What is com.vladium.emma module? Can you, please, take a thread dump, when the 'java.lang.OutOfMemoryError: unable to create new native thread' happens. Thanks.
Emma is a library for code coverage. Both instances have occurred during Junit test runs. Plug-in: http://plugins.netbeans.org/plugin/38945/unit-tests-code-coverage-plugin-updated-for-netbeans-7-0
Jonathan, can you please take a look at this report? It seems like a problem in your plugin. Thanks a lot!
If not yours, please reassign for further evaluation to versioncontrol/Subversion. Thanks.
Created attachment 118927 [details] Capture
I'll revert my modifications (deprecated code), leaving only the corrections about libraries dependencies (to make it compatible with NB7). I've packaged a version (for NetBeans 7.1.2) at : - http://netbeanscolors.org/files/tmp/com-vladium-emma.nbm - http://netbeanscolors.org/files/tmp/org-netbeans-modules-coverage.nbm This is probably an EMMA error. EMMA is not compatible with Java7 bytecode, but the plugin is supposed to work when the project compiler is JDK6. I've never checked the case where NetBeans is run with JDK7. PS : I will not have (stable) Internet connection until Saturday. I make a report on my return.
Added the original plugin author (mikk@netbeans.org) in the CC List.
I encounter some difficulties to reproduce the crash on stable versions of NetBeans (7.0.1 and 7.1.2). I'll try with NetBeans 7.2 BETA when it'll be released. javydreamercsw, could you provide additional informations : - does your IDE freeze when you test a project (with Code Coverage enabled) only ? Does it happens on idle ? - the JDK version used to compile and test your project Thx in advance.
- does your IDE freeze when you test a project (with Code Coverage enabled) only ? Yes Does it happens on idle ? No, during testing. - the JDK version used to compile and test your project JDK 7 u3 I'm working again on that project and I'll report any other instances. I'm working on JDK 7 u4 now with the latest 7.2 daily build (201205070400) and no issues yet.
Created attachment 119170 [details] Application Snapshot The IDE froze. Test were not running but were recently ran. Only one project open with Cobertura enabled. I was doing normal coding on the IDE.
This is very strange. EMMA (and the Unit Test Code Coverage Plugin) is designed to work with Java5 and Java6 bytecode only : with Java 7 bytecode, the test cases will fail and throw a java.lang.ClassFormatError exception. What is the "Source/Binary format" of your Java project ? There are two ways to use EMMA with a JDK7 project : 1/ first scenario : - enable project's Coverage Collection - compile the project with JDK5 or JDK6 Source/Binary format - set the project Source/Binary format to JDK7 (but do NOT clean or recompile it) - run the Junit tests : EMMA will work correctly because you still run the tests with Java6 bytecode 2/ second scenario : - enable project's Coverage Collection - set the project Source/Binary format to JDK5 or JDK6 and compile it - run the Junit tests : EMMA will work too I'm not able to run Code Coverage with Java7 bytecode : it always throws a ClassFormatError exception. Does your IDE still freeze ? I'm running tests with NetBeans IDE 7.2 Build 20120518-41d3eb3428ac (compiled from the http://hg.netbeans.org/releases/ sources, with the release72_beta_base tag), and have no problems. Thx.
Right now is not freezing but memory consumption highly increases when coverage is enabled.
Since it doesn't make the IDE crahsing on latest Beta and Dev builds, I've set the priority to P4 / Enhancement.
I'm working on another plugin based on JaCoCo. So, I won't be able to fix this bug case. Closing then.