Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256416 - dev-util/netbeans-6.5-r4 : IDE getting completely frozen when opening CSS file in editor
Summary: dev-util/netbeans-6.5-r4 : IDE getting completely frozen when opening CSS fil...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Java team
URL: http://www.netbeans.org/issues/show_b...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-26 14:57 UTC by Ludovic Favre
Modified: 2009-05-03 01:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
thread dump (same as the one on netbeans issue website) (dump.txt,30.02 KB, text/plain)
2009-01-26 14:57 UTC, Ludovic Favre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ludovic Favre 2009-01-26 14:57:09 UTC
As I already filled an issue on netbeans website and it seems to be a build problem :
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.

Reproducible: Always

Steps to Reproduce:
1.Launch netbeans 
2.Open a project
3.Open a css file, or create a new one

Actual Results:  
The IDE get frozen, without responding to anything. The only way to resume work is killing the application and restarting.

Expected Results:  
It should open and syntax highlight the css file in the editor.

I tried to downgrade to java 1.5 : no change.
Installing the binary distribution from netbeans website fix it, it seems to be a problem with the source version.
Comment 1 Ludovic Favre 2009-01-26 14:57:55 UTC
Created attachment 179767 [details]
thread dump (same as the one on netbeans issue website)
Comment 2 Miroslav Šulc gentoo-dev 2009-01-26 16:42:04 UTC
Well, I had the same problem with the upstream build: http://www.netbeans.org/downloads/start.html?platform=linux&lang=en&option=all&version=6.5

so it is not problem of our build but problem of netbeans itself. I got freezes on both empty css files and non-empty css files. Yesterday I forgot it causes the freeze and I accidentally opened some css file and there was no freeze, the css file opened without problems. Since then I do not have the freeze problem.
Comment 3 Robin Bankhead 2009-02-08 15:54:17 UTC
Just to add to the confusion, I was getting this issue with the gentoo install:

[ebuild  N    ] dev-util/netbeans-6.5-r4  USE="-debug -doc" LINGUAS="-de -es -fr -it -ja -pl -pt_BR -ru -sq -tr -zh_CN -zh_TW" NETBEANS_MODULES="apisupport groovy gsf harness ide identity j2ee javamobility nb php soa visualweb webcommon websvccommon xml -cnd -profiler" 285,642 kB

...but not with the upstream download which I just grabbed today. Both were fully updated (via the built-in updater). There are some differences I should mention though:

1) My gentoo install had most modules installed, whereas I chose just the PHP pack for download from netbeans.org.

2) With the gentoo install I'd added the jMaki Ajax Framework plugin (not the j2ee part, just the js); I haven't added this on the upstream install.

I'm quite busy _using_ netbeans ATM so I'm afraid I won't be able to reinstall the gentoo package for tests in the near future, but let me know if there's any other info that might be helpful.
Comment 4 Giorgio Pretto 2009-02-18 19:45:54 UTC
i've got the same problem, i've tried to recompile more than one time, same result.
this is happening to me in 2 different pcs.
Reading the above comment i've tried to recompile without some modules, (even tough the dependencies make me reinsert most of them) same result, the ide still froze.
If  some technical info may be usefull i will post them, but from what i read here the problem is quite widespread..
Comment 5 Giorgio Pretto 2009-02-19 10:42:09 UTC
Just for additional info, since i really need an IDE working i've tried other solution, downloading ONLY THE PHP version of netbeans from the official size and installing it, it works with css
Comment 6 muhsin 2009-04-20 21:29:35 UTC
Same freezing issues with netbeans here....

Comment 7 Gian 2009-05-02 23:00:15 UTC
Same problem here with both 6.5-r4 and 6.7_beta. 
Comment 8 Miroslav Šulc gentoo-dev 2009-05-03 01:58:04 UTC
Fixed in 6.7_beta.

The problem was caused by system flyingsaucer (core-renderer.jar) used with netbeans which caused deadlock on java logging.

I will not fix it in netbeans 6.5 as it will be removed when netbeans 6.7 is out (which should be in June), also netbeans 6.5 will never be stabilized. I suggest to use netbeans 6.7 beta which seems to be stable enough and better than 6.5, also in 6.7 ebuild there are fixed other problems that occur with 6.5.