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 126074 - Crash in build process
Summary: Crash in build process
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P2 blocker (vote)
Assignee: t_h
URL:
Keywords: API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2008-01-28 11:19 UTC by Sergey Petrov
Modified: 2008-12-22 10:55 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
jvm log (14.59 KB, text/plain)
2008-01-28 11:19 UTC, Sergey Petrov
Details
ide log (51.22 KB, text/plain)
2008-01-28 11:21 UTC, Sergey Petrov
Details
previous time crash jvm log (14.33 KB, text/plain)
2008-01-28 11:21 UTC, Sergey Petrov
Details
current netbeans.conf (1.44 KB, text/plain)
2008-05-19 20:56 UTC, Sergey Petrov
Details
have two crashes with this log (11.71 KB, text/plain)
2008-05-19 20:59 UTC, Sergey Petrov
Details
and one more with another log (12.56 KB, text/plain)
2008-05-19 21:00 UTC, Sergey Petrov
Details
remove automatic control of CMS (2.37 KB, text/plain)
2008-06-09 13:38 UTC, t_h
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2008-01-28 11:19:04 UTC
sometimes (not quite often now) ide crashes on build process, see attached jvm crash logs and ide log
I consider this issue a valid ide isue even if caused by jvm problem because our product should use only stable features
of platform and use workarounds if it's appropriate rather then crash and argue it's not or problem
Comment 1 Sergey Petrov 2008-01-28 11:19:43 UTC
Created attachment 55639 [details]
jvm log
Comment 2 Sergey Petrov 2008-01-28 11:21:09 UTC
Created attachment 55640 [details]
ide log
Comment 3 Sergey Petrov 2008-01-28 11:21:41 UTC
Created attachment 55641 [details]
previous time crash jvm log
Comment 4 Sergey Petrov 2008-01-28 11:22:16 UTC
see also part of discussion in http://www.netbeans.org/issues/show_bug.cgi?id=122524
Comment 5 Lukas Hasik 2008-01-28 11:30:37 UTC
reassigning
Comment 6 Milan Kubec 2008-01-28 13:26:46 UTC
From JVM err log file I understand that the problem is in hotspot compilation which failed. There's nothing we could do
about it in netbeans. I will try look into bugster whether it's already filed. 
Comment 7 Milan Kubec 2008-02-04 15:08:12 UTC
I've filed issue against hotspot. Bugster #6658756.
Comment 8 Sergey Petrov 2008-05-19 10:33:08 UTC
want to rise the question again because getting crashes in 6.1 release quite often, for example today 2 times.as a
sample what if java will crash on 'a+1' operation but will not crash on '1+a' should we just say, it's a java issue, so
we will not fix it and have collapsing time to time ide or change all our usage of 'a+1' to '1+a' and have a good ide?
In my opinion netbeans team should try to find a workaround. since the crash isn't 100% reproducible it may be some
locks, threading, timeouts etc conditions we can try to avoid.
according to http://wiki.netbeans.org/WorkingWithNetBeansSources we still have to use java 5, but according to java 5
page it will not be supported soon, so required fix may not be implemented in nearest future or ever.
Comment 9 Jesse Glick 2008-05-19 20:49:24 UTC
Bugster says: "Reports of similar failures using netbeans indicate that the problem can be worked around by using a
garbage collector other than UseConcMarkSweepGC."

so please remove

-XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled

from your netbeans.conf. Reporter did you add these args yourself or did the IDE come that way? Were you using the
installer? If so, please reassign to the 'installer' component. Certainly not a problem in ant/project, anyway.
Comment 10 Sergey Petrov 2008-05-19 20:56:51 UTC
Created attachment 61582 [details]
current netbeans.conf
Comment 11 Sergey Petrov 2008-05-19 20:59:58 UTC
Created attachment 61583 [details]
have two crashes with this log
Comment 12 Sergey Petrov 2008-05-19 21:00:28 UTC
Created attachment 61584 [details]
and one more with another log
Comment 13 Sergey Petrov 2008-05-19 21:05:09 UTC
it appears I had 3 crashes today, 
2 of one kind (let it be first kind) and one of annother(second), 3 days ago I had second kind of crashes.

I also have crashes in open project explorer from time to time but don't see jvm logs for it, may be second kind is for
this case even it show compiler thread.
Comment 14 Sergey Petrov 2008-05-26 12:44:05 UTC
post on java.sun.com may be related even it's three years old:
http://forum.java.sun.com/thread.jspa?threadID=681771&messageID=3973312
Comment 15 Milan Kubec 2008-06-03 10:31:23 UTC
I've checked the logs and both of them show that the VM was launched with following parameters:

'-XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled'

Please try to run the VM without these parameters to see if it helps.

Otherwise the issue for JDK was accepted as valid, which means that the problem is really not in NetBeans IDE and would be probably impossible to 
workaround. Closing the issue as WONTFIX.

Comment 16 Sergey Petrov 2008-06-03 10:49:19 UTC
sorry, need to reopen again to get response for unresolved issue.
as I said before I have no these options in netbeans.conf, so may it be an issue with netbeans luncher which turn on
these options and the issue should be moved appropriate category or new one filed?
see attached netbeans.conf
Comment 17 Sergey Petrov 2008-06-03 10:51:43 UTC
about "try without these parameters" netbeans.conf have commented lines with these parameters and statement I can turn
it on, it's not a statement about switching off, may it be another issue? for example these options are turned on by
default and in real the only option is to have them or switch off  somehow.
Comment 18 Milan Kubec 2008-06-03 11:08:13 UTC
Tomasi, please take a look at the launcher. There seems to be a problem with arguments that are passed to VM - these parameters seems to be in contrary 
with netbeans.conf file. Thanks.
Comment 19 t_h 2008-06-09 13:37:45 UTC
UseConcMarkSweepGC is enabled if there is more than 1480MB of memory (which corresponds to 256MB max heap). This
behavior was introduced in #17062ace7081 and only on Windows (probably by mistake?). This cannot be overridden by conf
file which is rather unfortunate. Moreover, it is enabled even if user specify explicitly max heap size. So, I suggest
to disable this "automatic control" of UseConcMarkSweepGC and control it only via conf file as users expect.
Comment 20 t_h 2008-06-09 13:38:51 UTC
Created attachment 62559 [details]
remove automatic control of CMS
Comment 21 Sergey Petrov 2008-06-09 18:02:23 UTC
will it address both kind of crashes? (build and open project, see two kind of attachments)
Comment 22 t_h 2008-06-10 09:57:06 UTC
This will allow you to choose if you want to use ConcMarkSweepGC via conf file. So it will address all issues which were
caused by CMS.