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 157413 - CSS editing : IDE getting frozen while opening css file
Summary: CSS editing : IDE getting frozen while opening css file
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: webl (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker with 2 votes (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-25 22:13 UTC by bluespear
Modified: 2010-06-07 12:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (30.02 KB, text/plain)
2009-01-25 22:16 UTC, bluespear
Details
message.log (33.95 KB, text/plain)
2009-01-25 22:17 UTC, bluespear
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bluespear 2009-01-25 22:13:45 UTC
The problem is that the IDE get completely frozen once a css file is opened : both already existing CSS and newly
created CSS file cause the IDE the freeze. The only solution I have to resume working on my project is killing the IDE
and restarting it.
Once a CSS file has been selected, the navigator panel view seems to correctly display the CSS file structure. The
freeze occurs when trying to display the content of the file in the editor by opening it : no or only few parts of the
CSS file seems to get syntax coloring : comments and sometimes random parts of the CSS. My CSS aren't malformated since
even editor-generated and empty css file cause the hang to happen.

Here is maybe something related in message.log (last line) :

Compiler: HotSpot 64-Bit Server Compiler
Heap memory usage: initial 32.0MB maximum 357.4MB
Non heap memory usage: initial 34.4MB maximum 248.0MB
Garbage collector: PS Scavenge (Collections=11 Total time spent=0s)
Garbage collector: PS MarkSweep (Collections=1 Total time spent=0s)
Classes: loaded=5854 total loaded=5854 unloaded 0
INFO [org.netbeans.core.ui.warmup.DiagnosticTask]: Total memory 2'109'620'224
ATTENTION [global]: Error in source for css properties model for property: z-index

Information about my system :
  Product Version         = NetBeans IDE 6.5 (Build 090125)                               
  Operating System        = Linux version 2.6.28-gentoo running on amd64                  
  Java; VM; Vendor        = 1.6.0_12-ea; Java HotSpot(TM) 64-Bit Server VM 11.2-b01; Sun Microsystems Inc.
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_12-ea-b02                               
  Java Home               = /opt/sun-jdk-1.6.0.12_beta2/jre                                               
  System Locale; Encoding = fr_CH (nb); UTF-8     
  Installation            = /usr/share/netbeans-6.5/nb6.5                                                 
                            /usr/share/netbeans-6.5/ide10                                                 
                            /usr/share/netbeans-6.5/java2                                                 
                            /usr/share/netbeans-6.5/xml2                                                  
                            /usr/share/netbeans-6.5/webcommon1                                            
                            /usr/share/netbeans-6.5/websvccommon1                                         
                            /usr/share/netbeans-6.5/enterprise5                                           
                            /usr/share/netbeans-6.5/gsf1                                                             
                            /usr/share/netbeans-6.5/php1                                                             
                            /usr/share/netbeans-6.5/visualweb2                                                       
                            /usr/share/netbeans-6.5/harness                                                          
                            /usr/share/netbeans-6.5/groovy1                                                          
                            /usr/share/netbeans-6.5/platform9     

Note that I tried with beta3 version and also sun-jdk-1.5.0.17, the problem remain the same.
Comment 1 bluespear 2009-01-25 22:16:51 UTC
Created attachment 76211 [details]
Thread dump
Comment 2 bluespear 2009-01-25 22:17:52 UTC
Created attachment 76212 [details]
message.log
Comment 3 bluespear 2009-01-26 14:50:28 UTC
After installing the IDE from the website (built version), the problem is gone. Seems like there is a problem with
gentoo ebuild or from source build.
Since I don't know if netbeans ppl can do something for it, I will try to ask gentoo ebuild maintainer.
Comment 4 fordfrog 2009-01-26 16:46:08 UTC
I had the freeze problem with netbeans build from http://www.netbeans.org/issues/show_bug.cgi?id=157413

so it does not seem to be problem of gentoo ebuild. Each time I tried to open empty css file or css file with some
content, netbeans freezed. Yesterday I forgot netbeans freezes and opened a css file, without any freeze. Since that the
freeze did not occur again. I have no idea what the cause could be.
Comment 5 Marek Fukala 2010-06-07 12:31:19 UTC
The issue has already been fixed, the CssPreview panel is not created and intialized in AWT.