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 197340 - NB Freezes when Editing CSS Files
Summary: NB Freezes when Editing CSS Files
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.0
Hardware: Macintosh Mac OS X
: P2 normal with 2 votes (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-01 20:00 UTC by jlengstorf
Modified: 2011-06-28 20:02 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump at time of freeze (14.96 KB, text/plain)
2011-04-21 17:43 UTC, localstatic
Details
messages.log after freeze (55.65 KB, text/plain)
2011-05-02 22:45 UTC, localstatic
Details
OS X output to send to Apple (275.38 KB, text/plain)
2011-05-07 20:20 UTC, marshallbu
Details
Thread Dump during freeze when messing with .css (15.55 KB, text/plain)
2011-05-09 16:10 UTC, marshallbu
Details
Thread dump at time of freeze (16.79 KB, text/plain)
2011-05-13 21:47 UTC, localstatic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jlengstorf 2011-04-01 20:00:52 UTC
When using NetBeans 7.0 RC 1, it will freeze and require a force quit when editing CSS files — this sometimes happens immediately upon opening the CSS file, and sometimes takes up to 20 minutes, but I have yet to run NB for more than a half hour or so with a CSS file open without a freeze.

I've let it spin for up to 10 minutes before performing a force quit to see if it would resolve itself. No luck.

The issue isn't occurring on NetBeans 6.8 on my machine if that means anything.
Comment 1 Marian Mirilovic 2011-04-05 16:37:31 UTC
Could you please generate thread-dump at time of the freeze, attach it here and reopen this issue ? http://wiki.netbeans.org/GenerateThreadDump 
Thanks in advance.
Comment 2 localstatic 2011-04-21 17:43:06 UTC
Created attachment 107888 [details]
Thread dump at time of freeze
Comment 3 localstatic 2011-04-21 17:44:05 UTC
I'm not the original reporter, but I've been experiencing this as well on 6.9.1, 7.0rc2 and 7.0 The attached thread dump is from 7.0 that I downloaded this morning.
Comment 4 Miloslav Metelka 2011-04-30 09:30:25 UTC
There appears to be no deadlock in the thread dump.
Could you please attach your message.log file http://wiki.netbeans.org/FaqLogMessagesFile ?
Thanks.
Comment 5 localstatic 2011-05-02 22:45:59 UTC
Created attachment 108062 [details]
messages.log after freeze

This isn't from the same time as my previous thread dump, but after I reproduced this behavior today.
Comment 6 Miloslav Metelka 2011-05-03 21:20:06 UTC
There does not seem to be anything really problematic in the log file. Could you please check whether it's a deadlock or CPU at 100% and possibly attach some more thread dumps? Thanks.
Comment 7 marshallbu 2011-05-07 20:20:05 UTC
Created attachment 108166 [details]
OS X output to send to Apple
Comment 8 marshallbu 2011-05-07 20:21:15 UTC
I am having this exact same problem.  Netbeans 7.0 freezes upon opening a .css file, or when the CSS builder windows open while a .css file is open.  I've attached the output I've received from OSX that it wants to send to Apple once I force close it.
Comment 9 Miloslav Metelka 2011-05-08 19:43:03 UTC
marshallbu: Please attach a thread-dump as described http://wiki.netbeans.org/GenerateThreadDump
Is CPU idle or at 100%?
Comment 10 marshallbu 2011-05-09 16:10:07 UTC
Created attachment 108196 [details]
Thread Dump during freeze when messing with .css

My CPU is idle, java currently taking up ~2%, 442MB ram
Comment 11 localstatic 2011-05-13 21:47:41 UTC
Created attachment 108287 [details]
Thread dump at time of freeze

Thread dump taken while Netbeans unresponsive. CPU usage: 2.3%, RAM: 606.3MB
Comment 12 jelavallee 2011-05-19 03:50:49 UTC
All,

Want to add to this... the css-random-lock is killing my productivity.

I just migrated from a 2009 MacBook Pro 15" running a fully updated Snow Leopard and using Netbeans 6.9.1 full-stack with no issues at all for as long as I've had it installed.

Just got a new 2011 MBP 15" i7 model with a fresh, factory install and fully updated Snow Leopard build and installed a fresh copy of the 6.9.1 full-stack on it and ran into this bug within hours of setup.

When the freeze occurs, I'm unable to get any type of JVM process monitoring or stack tracing tool to bind to the running Netbeans process... even when I run Netbeans from the command line.

A Force-Quit or kill needs to be done to end the process.

Here's my java -version dump:
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)

Should I open this in a 6.9.1 ticket or should we track it here?

Also, if there's any other think I can try to get it to give me a clean trace, just let me know.

Happy Hunting,
Etienne
Comment 13 Miloslav Metelka 2011-05-19 09:03:57 UTC
No, it's not necessary to file any other issue since this does not depend on NB version it happens in the same way either in 7.0 or 6.9.1.
The thread dumps do not show any apparent deadlocks or problems so it's likely something wrong in the JVM.
Reassigning to jdkproblems for further evaluation.
Comment 14 Antonin Nebuzelsky 2011-05-23 14:23:54 UTC
Obviously a bug in Apple JDK. 

Please, see

http://developer.apple.com/bugreporter/bugbestpractices.html#Java

and file the problem against Apple.

Closing the bug on our side as wontfix.
Comment 15 jelavallee 2011-05-31 15:23:13 UTC
For anyone looking for a work-around to this issue (who can't wait for an indeterminate amount of time for the OSX jdk to be fixed), I've resolved this by disabling code-folding... haven't had a crash in css, js or xml files since doing so.

I'm a bit annoyed that this issue has been so easily written off as a Mac jdk problem as I never had this happen in NB 6.8's css/js/xml editors and I was using that version of NB all the way up until about 6 weeks ago.  Seems to me that the way it's manifesting could be an issue in both implementation and the jdk that implementation is running on.

Word,
Etienne
Comment 16 marshallbu 2011-05-31 15:53:40 UTC
Well said Etienne, I completely and wholeheartedly agree with your statement.

I'm going to try your workaround to see if I have success.
Comment 17 Marian Mirilovic 2011-06-08 20:07:29 UTC
v/c
Comment 18 marshallbu 2011-06-28 19:56:36 UTC
After using Etienne's work around for the last month, by turning off code folding, haven't had a single crash since.  Guess we'll have to wait on "Apple" to release some magic code folding fix for Netbeans ;-)
Comment 19 localstatic 2011-06-28 20:02:08 UTC
I also tried turning off code folding, but later turned it back on & haven't had NB freeze up since. I have become somewhat reluctant to open CSS files though, so that may not be an indication that it has resolved itself.