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.
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
Created attachment 55639 [details] jvm log
Created attachment 55640 [details] ide log
Created attachment 55641 [details] previous time crash jvm log
see also part of discussion in http://www.netbeans.org/issues/show_bug.cgi?id=122524
reassigning
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.
I've filed issue against hotspot. Bugster #6658756.
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.
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.
Created attachment 61582 [details] current netbeans.conf
Created attachment 61583 [details] have two crashes with this log
Created attachment 61584 [details] and one more with another log
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.
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
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.
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
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.
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.
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.
Created attachment 62559 [details] remove automatic control of CMS
will it address both kind of crashes? (build and open project, see two kind of attachments)
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.
Fixed: http://hg.netbeans.org/core-main/rev/055826baee46