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 238409 - OutOfMemoryError: unable to create new native thread
Summary: OutOfMemoryError: unable to create new native thread
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-15 08:33 UTC by adithyank
Modified: 2015-06-25 13:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 205287


Attachments
stacktrace (1.50 KB, text/plain)
2013-11-15 08:33 UTC, adithyank
Details
thread dump1 : thread dump taken when the IDE was in the frozen condition (22.05 KB, text/plain)
2013-11-15 09:44 UTC, adithyank
Details
thread dump2 : thread dump taken when the IDE was in the frozen condition (22.99 KB, text/plain)
2013-11-15 09:44 UTC, adithyank
Details
screenshot showing the memory values taken when the IDE was in frozen condition. (65.02 KB, image/png)
2013-11-15 09:45 UTC, adithyank
Details
netbeans.conf: changes done in the file was done only today (2.97 KB, application/octet-stream)
2013-11-15 09:46 UTC, adithyank
Details
messages.log of frozen nb ide session (51.06 KB, text/x-log)
2013-11-15 09:58 UTC, adithyank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description adithyank 2013-11-15 08:33:51 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) Client VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43
OS: Linux

User Comments:
adithyank: I Opened a java source file by clicking it in File > Open Recent File




Stacktrace: 
java.lang.OutOfMemoryError: unable to create new native thread
   at java.lang.Thread.start0(Thread.java:0)
   at java.lang.Thread.start(Thread.java:693)
   at org.netbeans.core.windows.FloatingWindowTransparencyManager.start(FloatingWindowTransparencyManager.java:85)
   at org.netbeans.core.windows.WindowManagerImpl$3.run(WindowManagerImpl.java:1486)
   at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1563)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
Comment 1 adithyank 2013-11-15 08:33:52 UTC
Created attachment 142215 [details]
stacktrace
Comment 2 Stanislav Aubrecht 2013-11-15 08:43:13 UTC
How much RAM does your computer has?
Comment 3 adithyank 2013-11-15 09:40:39 UTC
My laptop has 4 GB.

I did not create this issue manually. The following is what happened.

When I was working in the IDE, I Opened a java source file by clicking it in File > Open Recent File. The NDE has frozen. I could not click any thing.

So, I killed the IDE using kill command. The next time, when I started the IDE, a pop came and said that NB did not shutdown properly during last time and asked me to report the issue. I clicked Ok to submit the issue.
Comment 4 adithyank 2013-11-15 09:43:21 UTC
Before I restarted and submitted the issue, I sent a mail to netcat@netbeans.org mail id with the following contents and attachments. Attaching the same files here also.

-----------------------------

Today this issue happened to me again.

IDE completely hanged. Not able to click any thing.

When
----

While trying to open a java source file "MapServerUtils.java"

Build details
-------------

OS : CentOS 6.4
L&F : GTK

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Linux version 2.6.32-358.23.2.el6.i686 running on i386; UTF-8; en_US (nb)
User directory: /root/.netbeans/7.4
Cache directory: /root/.cache/netbeans/7.4

Attachments.
------------

1. td1.txt, td2.txt - two Thread dumps
2. NB IDE Screenshot
3. IDE Log of this session
4. netbeans.conf. Changes from the default netbeans.conf were done only today. Just an input
----------------------------
Comment 5 adithyank 2013-11-15 09:44:21 UTC
Created attachment 142221 [details]
thread dump1 : thread dump taken when the IDE was in the frozen condition
Comment 6 adithyank 2013-11-15 09:44:45 UTC
Created attachment 142222 [details]
thread dump2 : thread dump taken when the IDE was in the frozen condition
Comment 7 adithyank 2013-11-15 09:45:49 UTC
Created attachment 142223 [details]
screenshot showing the memory values taken when the IDE was in frozen condition.
Comment 8 adithyank 2013-11-15 09:46:48 UTC
Created attachment 142224 [details]
netbeans.conf: changes done in the file was done only today
Comment 9 adithyank 2013-11-15 09:58:58 UTC
Created attachment 142225 [details]
messages.log of frozen nb ide session
Comment 10 Stanislav Aubrecht 2013-12-06 14:14:32 UTC
Looks like a deadlock between org.openide.text.DocumentOpenClose.waitForCloseFinish(DocumentOpenClose.java:312)
and
org.openide.text.DocumentOpenClose.open(DocumentOpenClose.java:256)

Please evaluate, thanks.
Comment 11 Tomas Hurka 2015-06-25 13:25:13 UTC
"OutOfMemoryError: unable to create new native thread" does not create heap dump so there is not enough information to diagnose and fix this issue. Dev. builds contain workaround so that heap dump is created (issue #252183). Closing this issue as wontfix for now.