[jira] [Comment Edited] (NETBEANS-5550) IDE UI-freeze By Ctrl+F

2021-07-09 Thread AO Industries, Inc. (Jira)


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

[jira] [Comment Edited] (NETBEANS-5550) IDE UI-freeze By Ctrl+F

2021-06-03 Thread Dan Armstrong (Jira)


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

Dan Armstrong edited comment on NETBEANS-5550 at 6/3/21, 5:09 PM:
--

For what it's worth:

Debian Linux 10.9, 64-bit
 OpenJDK 11.0.11

Edit: I also get this issue on multiple file types, including pom.xml and 
*.java files.


was (Author: dan_armstrong):
For what it's worth:

Debian Linux 10.9, 64-bit
OpenJDK 11.0.11

I've been editoring *.xml files more than usual lately, so perhaps that is 
related - not sure though.  I'll follow-up if I see the same problem on other 
file types.

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