[ 
https://issues.apache.org/jira/browse/NETBEANS-5304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17275878#comment-17275878
 ] 

Matthias Bläsing commented on NETBEANS-5304:
--------------------------------------------

I can reproduce this with OpenJDK 8 + 11 on Ubuntu Linux:

{{Java: 1.8.0_262; OpenJDK 64-Bit Server VM 25.262-b10}}
{{Runtime: OpenJDK Runtime Environment 1.8.0_262-b10}}
 
{{openjdk version "11.0.9.1" 2020-11-04}}
{{OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.10)}}
{{OpenJDK 64-Bit Server VM (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.10, mixed mode, 
sharing)}}
I attached an profiler snapshot from the problem and it seems, that hiding the 
popup uses massive resources. I don't understand why the rendering of the whole 
file seems fine, but hiding the rendering has such huge impact. In the 
profiler, only one method stands out:

{{javax.swing.PopupFactory$MediumWeightPopup.hide ()}}

>From my POV we see an issue in the JDK here, but that won't help (or only help 
>in the very long run). I'll try to see why the problem happens and what we can 
>do to work around that.

 

> NB Freezes when Editing CSS Files
> ---------------------------------
>
>                 Key: NETBEANS-5304
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5304
>             Project: NetBeans
>          Issue Type: Bug
>          Components: web - CSS Editor
>    Affects Versions: 12.2
>         Environment: NB 12.2, Windows 10, 16 GB RAM. CPU utilization of 
> Netbeans 25% on a 4-core system, I assume NB causes 100% utilization on the 
> core it runs on.
>            Reporter: Krzysztof Trybowski
>            Priority: Major
>         Attachments: CSS.nps, nb_frozen.png
>
>
> While editing CSS files, NetBeans tends to freeze. This always happens when 
> popup help appears. For example I start typing "background". But then a popup 
> appears, showing help for "backface-visibility" which is completely 
> irrelevant, and NB hangs for about 20 minutes.
> You never know when it would happen. It happens in a minority of cases, but 
> it still means it happens at least once a day.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to