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 153143 - 6.5rc2 IDE crashing
Summary: 6.5rc2 IDE crashing
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-13 13:47 UTC by john_hadstate
Modified: 2009-02-19 20:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description john_hadstate 2008-11-13 13:47:08 UTC
CentOS 4.4 (eqv. Redhat Linux ES 4 Update 4)

Sun JDK 1.6.0_07

Netbeans 6.5rc2

Executing "netbeans" from bash command line

Developing C application, pre-existing Makefile.

When crash occurs, stdout/stderr reports (partial):

/opt/netbeans-6.5rc2/bin/../platform9/lib/nbexec: line 493: 16933 Killed
    "/opt/jdk1.6.0_07/bin/java" -Djdk.home="/opt/jdk1.6.0_07" -classpath ...

Crash seems to be associated with running application rather than editing source code.  However, IDE crashes whether 
application is run under IDE, or run under another shell outside of IDE.  When IDE crashes, application continues to 
run and produces correct results.

When IDE crashes, there is a very long pause during which entire system appears to "lock up".  After IDE window 
disappears, system responds normally.

Unfortunately, the system I'm developing on is not connected to Internet and I will not be able to transfer any data 
(by any means) from the development system.
Comment 1 Peter Pis 2008-11-13 14:18:47 UTC
*** Issue 153144 has been marked as a duplicate of this issue. ***
Comment 2 john_hadstate 2008-11-13 17:36:30 UTC
Subsequent testing under Linux revealed that this crash is associated with running out of memory.  During a period 
when this crash seemed highly repeatable, I noticed that the Gnome memory monitor showed very high levels of memory 
usage.  Re-booting the system and re-running Netbeans yielded normal operation of the IDE and the application.  

The application in question is multi-threaded and dynamically allocates about 40 Mb of RAM, which it is very careful 
to release.  Running my application under valgrind and purify (outside the IDE) showed no evidence of memory leaks in 
the application.

I can't be sure what on my system consumed and leaked >2 Gb of RAM, but I now know that the 6.5rc2 IDE doesn't like to 
run out of memory while it's running an application.  Prior to uncovering this issue, I had been actively doing C 
development using 6.5rc2 for about 2 days without incident.  I do normally logoff at the end of the day, but I don't 
normally re-boot my system.  

I will continue to monitor memory usage to see if I can glean any more information about this problem.  The 
workaround, re-booting whenever the memory usage gets too high, seems pretty unsatisfactory.  Nevertheless, the 
Netbeans IDE might not be responsible for the memory leak.
Comment 3 Peter Pis 2008-11-18 08:47:23 UTC
Please attach messages.log.

Reassigning to cnd for further evaluation.
Comment 4 Vladimir Voskresensky 2008-11-18 09:02:54 UTC
What is the size of developed C application?
What are the numbers of memory usage on NB toolbar?
You can increase amount of memory given for NB in ${nb_dist}/etc/netbeans.conf file "-J-Xmx1G"
You can help us if provide memory dump (specify -J-XX:+HeapDumpOnOutOfMemoryError to generate dump as described at
http://wiki.netbeans.org/DevFaqMemoryLeaks) and attach to IZ
Comment 5 Alexander Simon 2008-12-25 10:28:19 UTC
no user response
Reopen bug if bug is still repeatable and
- use released NB 6.5
- do not use not final jdk
- provide message log.