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 211668 - unable to create new native thread
Summary: unable to create new native thread
Status: RESOLVED WONTFIX
Alias: None
Product: updatecenters
Classification: Unclassified
Component: Pluginportal (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: ent38
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-24 21:33 UTC by javydreamercsw
Modified: 2013-02-27 16:30 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Snapshot (105.96 KB, application/x-netbeans-profiler)
2012-04-24 21:33 UTC, javydreamercsw
Details
OOME on build 201204270400 (179.38 KB, application/octet-stream)
2012-04-27 15:08 UTC, javydreamercsw
Details
Capture (15.90 KB, application/octet-stream)
2012-05-01 19:17 UTC, javydreamercsw
Details
Application Snapshot (5.25 KB, application/octet-stream)
2012-05-08 16:13 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2012-04-24 21:33:26 UTC
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.
Comment 1 javydreamercsw 2012-04-24 21:33:50 UTC
Created attachment 118715 [details]
Snapshot
Comment 2 Marian Mirilovic 2012-04-25 10:15:55 UTC
Reassign to performance for further evaluation ... feel free to reassign.
Comment 3 javydreamercsw 2012-04-27 15:08:48 UTC
Created attachment 118882 [details]
OOME on  build 201204270400

Hopefully this log helps.
Comment 4 Tomas Hurka 2012-04-27 16:14:30 UTC
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.
Comment 5 javydreamercsw 2012-04-27 19:15:17 UTC
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
Comment 6 Jiri Kovalsky 2012-05-01 18:55:13 UTC
Jonathan, can you please take a look at this report? It seems like a problem in your plugin. Thanks a lot!
Comment 7 Jiri Kovalsky 2012-05-01 19:03:59 UTC
If not yours, please reassign for further evaluation to versioncontrol/Subversion. Thanks.
Comment 8 javydreamercsw 2012-05-01 19:17:45 UTC
Created attachment 118927 [details]
Capture
Comment 9 ent38 2012-05-02 14:11:02 UTC
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.
Comment 10 ent38 2012-05-02 14:15:26 UTC
Added the original plugin author (mikk@netbeans.org) in the CC List.
Comment 11 ent38 2012-05-08 13:40:20 UTC
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.
Comment 12 javydreamercsw 2012-05-08 16:01:09 UTC
- 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.
Comment 13 javydreamercsw 2012-05-08 16:13:58 UTC
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.
Comment 14 ent38 2012-05-21 16:07:06 UTC
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.
Comment 15 javydreamercsw 2012-05-21 18:24:29 UTC
Right now is not freezing but memory consumption highly increases when coverage is enabled.
Comment 16 ent38 2012-06-19 19:03:11 UTC
Since it doesn't make the IDE crahsing on latest Beta and Dev builds, I've set the priority to P4 / Enhancement.
Comment 17 ent38 2013-02-27 16:30:09 UTC
I'm working on another plugin based on JaCoCo. So, I won't be able to fix this bug case. 
Closing then.