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

AO Industries, Inc. edited comment on NETBEANS-5550 at 7/9/21, 7:32 AM:
------------------------------------------------------------------------

We have discovered a short and reliable way to reproduce this problem.

1) Download and open this file in NetBeans: [^NETBEANS-5550.txt]

2) Double-click to select "WWWWWWWWWWWWWWWWWWWWWWWWW", then Ctrl-F.
     This should have all the W's in the "Find:" text box, wider than the text 
box, all characters selected, with cursor in right-most position.

3) Double-click to select "IIIIIIII", then Ctrl-F.
     The "Find:" text box is not populated and the editor tab stops responding.

Note, it is required that the number of selected "W" in the "Find:" field be 
wider than the visible area.  Selecting a subset of "W" in the "Find" box, with 
all visible (or selecting none at all), will not lock-up the tab when replaced 
with "IIIIIIII".

 

Other observations: once the tab freezes, the CPU is pegged at 100%.

 

Watching the thread pegged at 100% via "strace" only gives "futex", "mprotect", 
and an occasional "gettid".

 

Issuing "kill -QUIT ..." on the NetBeans process, the thread with the highest 
"cpu" time has this stack trace:

 

{{"AWT-EventQueue-0" #22 prio=6 os_prio=0 cpu=410927.92ms elapsed=545.92s 
tid=0x00007f4240134000 nid=0xf280 runnable [0x00007f4246f6f000]}}
{{ java.lang.Thread.State: RUNNABLE}}
{{ at java.util.WeakHashMap.getTable(java.base@11.0.11/WeakHashMap.java:350)}}
{{ at java.util.WeakHashMap.get(java.base@11.0.11/WeakHashMap.java:398)}}
{{ at org.openide.util.NbBundle.getBundleFast(NbBundle.java:453)}}
{{ - locked <0x0000000603d28a88> (a java.util.WeakHashMap)}}
{{ at org.openide.util.NbBundle.getBundle(NbBundle.java:421)}}
{{ at org.openide.util.NbBundle.getBundle(NbBundle.java:374)}}
{{ at org.openide.util.NbBundle.getMessage(NbBundle.java:617)}}
{{ at 
org.netbeans.core.NotifyExcPanel$ExceptionFlasher.getDetailsPanel(NotifyExcPanel.java:691)}}
{{ at 
org.netbeans.core.NotifyExcPanel$ExceptionFlasher.notify(NotifyExcPanel.java:630)}}
{{ - locked <0x00000006069b9ac0> (a java.lang.Class for 
org.netbeans.core.NotifyExcPanel$ExceptionFlasher)}}
{{ at 
org.netbeans.core.NotifyExcPanel$ExceptionFlasher.access$500(NotifyExcPanel.java:616)}}
{{ at org.netbeans.core.NotifyExcPanel$2.run(NotifyExcPanel.java:340)}}
{{ at 
java.awt.event.InvocationEvent.dispatch(java.desktop@11.0.11/InvocationEvent.java:313)}}
{{ at 
java.awt.EventQueue.dispatchEventImpl(java.desktop@11.0.11/EventQueue.java:770)}}
{{ at java.awt.EventQueue$4.run(java.desktop@11.0.11/EventQueue.java:721)}}
{{ at java.awt.EventQueue$4.run(java.desktop@11.0.11/EventQueue.java:715)}}
{{ at java.security.AccessController.doPrivileged(java.base@11.0.11/Native 
Method)}}
{{ at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(java.base@11.0.11/ProtectionDomain.java:85)}}
{{ at 
java.awt.EventQueue.dispatchEvent(java.desktop@11.0.11/EventQueue.java:740)}}
{{ at 
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)}}
{{ at 
java.awt.EventDispatchThread.pumpOneEventForFilters(java.desktop@11.0.11/EventDispatchThread.java:203)}}
{{ at 
java.awt.EventDispatchThread.pumpEventsForFilter(java.desktop@11.0.11/EventDispatchThread.java:124)}}
{{ at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(java.desktop@11.0.11/EventDispatchThread.java:113)}}
{{ at 
java.awt.EventDispatchThread.pumpEvents(java.desktop@11.0.11/EventDispatchThread.java:109)}}
{{ at 
java.awt.EventDispatchThread.pumpEvents(java.desktop@11.0.11/EventDispatchThread.java:101)}}
{{ at 
java.awt.EventDispatchThread.run(java.desktop@11.0.11/EventDispatchThread.java:90)}}


was (Author: aoindustries):
We have discovered a short and reliable way to reproduce this problem.

1) Download and open this file in NetBeans: [^NETBEANS-5550.txt]


2) Double-click to select "WWWWWWWWWWWWWWWWWWWWWWWWW", then Ctrl-F.
    This should have all the W's in the "Find:" text box, wider than the text 
box, all characters selected, with cursor in right-most position.

3) Double-click to select "IIIIIIII", then Ctrl-F.
    The "Find:" text box is not populated and the editor tab stops responding.


Note, it is required that the number of selected "W" in the "Find:" field be 
wider than the visible area.  Selecting a subset of "W" in the "Find" box, with 
all visible (or selecting none at all), will not lock-up the tab when replaced 
with "IIIIIIII".

> IDE UI-freeze By Ctrl+F
> -----------------------
>
>                 Key: NETBEANS-5550
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5550
>             Project: NetBeans
>          Issue Type: Bug
>          Components: cnd - Editor
>    Affects Versions: 12.0
>         Environment: Win 7 x86_64, JDK 1.8_261, 14, and 15.0.2
>            Reporter: dev
>            Priority: Critical
>         Attachments: NETBEANS-5550.txt
>
>
> Randomly(not sure yet), but sometimes when I press `Ctrl+F` to start find for 
> something(mostly javascript files), UI goes down(UI-Freeze). After a short 
> time, whole black screen.
>  
> The IDE does not goes into heavy process mode, so I guess the uI thread gets 
> blocked by some interminable process by the backend.
>  
> The only way is about end-task by the task manager, hopefully peaceful 
> shutdown works, but needs time.
>  
> Error happens more often when I mistakenly press `Ctrl+V`, before `Ctrl+F`.
>  
> I'm on Windows 7 X86_64, java 8, 14, and 15. Error seems has no explicitly 
> associated to a specific JDK. Error exist with all jdks I've tried have the 
> same issue.
>  
> I have been working with NetBeans since V6, till now. Only this 12.0 LTS 
> version I can have this issue.



--
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