[
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 "W", 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 "", 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 "".
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=0x7f4240134000 nid=0xf280 runnable [0x7f4246f6f000]}}
{{ 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 <0x000603d28a88> (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 <0x0006069b9ac0> (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 "W", 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 "", 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 "".
> 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
>