[ https://issues.apache.org/jira/browse/NETBEANS-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17187404#comment-17187404 ]
Ernie Rael commented on NETBEANS-4696: -------------------------------------- All three thread dumps have this signature. "Load Open Projects" is parking waiting for "XXX". And some other task is trying to get html results and in trying to get these results does "OpenProjectList$LoadOpenProjects.get()". Some possibilities are that * your not suppose to get the open projects while there being opened, your supposed to wait * your not supposed to hold the synchronizer when you call into openProjects.get() My guess is the second {code} "Load Open Projects" #59 daemon prio=1 os_prio=0 cpu=684.74ms elapsed=136.09s tid=0x00007f833c932000 nid=0x5831 waiting on condition [0x00007f82c1bf4000] java.lang.Thread.State: WAITING (parking) at jdk.internal.misc.Unsafe.park(java.base@11.0.8/Native Method) - parking to wait for <0x000000070ab1db30> (a java.util.concurrent.locks.ReentrantLock$FairSync) {code} And some other task (the specific task varies) is getting parsing results of an html file. The stack of this task always ends with {code} "Editor Parsing Loop (12.1-cade25887c5450e4595fa59e616daee4d2520ee0)" #16 daemon prio=1 os_prio=0 cpu=504.56ms elapsed=145.75s tid=0x00007f83d87a8000 nid=0x57f3 in Object.wait() [0x00007f838991d000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(java.base@11.0.8/Native Method) - waiting on <no object reference available> at java.lang.Object.wait(java.base@11.0.8/Object.java:328) at org.openide.util.Task.waitFinished(Task.java:110) - waiting to re-lock in wait() <0x00000007072bf790> (a org.openide.util.RequestProcessor$Task) at org.openide.util.RequestProcessor$Task.waitFinished(RequestProcessor.java:1672) at org.netbeans.modules.project.ui.OpenProjectList$LoadOpenProjects.get(OpenProjectList.java:576) at org.netbeans.modules.project.ui.OpenProjectList$LoadOpenProjects.get(OpenProjectList.java:320) at org.netbeans.modules.javascript2.knockout.index.KnockoutIndex.get(KnockoutIndex.java:60) - locked <0x0000000714b00000> (a java.util.WeakHashMap) at org.netbeans.modules.html.knockout.KOHtmlExtension.isTagCustomKnockoutElement(KOHtmlExtension.java:395) at org.netbeans.modules.html.knockout.KOHtmlExtension.isCustomTag(KOHtmlExtension.java:302) at org.netbeans.modules.html.editor.gsf.HtmlGSFParser$1.isCustomTag(HtmlGSFParser.java:109) at org.netbeans.modules.html.editor.gsf.HtmlGSFParser$AggregatedUndeclaredContentResolver.isCustomTag(HtmlGSFParser.java:153) at org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzerResult$ElementContentFilter.shouldBeFiltered(SyntaxAnalyzerResult.java:752) at org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzerResult$ElementContentFilter.getMasks(SyntaxAnalyzerResult.java:720) at org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzerResult.getMaskedAreas(SyntaxAnalyzerResult.java:492) - locked <0x0000000714b00350> (a org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzerResult) at org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzerResult.doParseHtml(SyntaxAnalyzerResult.java:259) at org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzerResult.parseHtml(SyntaxAnalyzerResult.java:185) - locked <0x0000000714b00350> (a org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzerResult) at org.netbeans.modules.html.editor.api.gsf.HtmlParserResult.root(HtmlParserResult.java:119) {code} and this task always has {code} Locked ownable synchronizers: - <0x000000070ab1db30> (a java.util.concurrent.locks.ReentrantLock$FairSync) {code} where this "Locked ownable" thing is the same as what the "Load Open Projects" task is waiting for. > NetBeans 12.1-beta1 sometimes hangs on open > ------------------------------------------- > > Key: NETBEANS-4696 > URL: https://issues.apache.org/jira/browse/NETBEANS-4696 > Project: NetBeans > Issue Type: Bug > Components: ide - Performance > Affects Versions: 12.1 > Environment: Linux (Debian "Buster") > OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10) > Reporter: Glenn Holmer > Priority: Major > Attachments: 12.1-vc1-thread-dump-orac.txt, > nb12.1-beta1-thread-dump.png, nb12.1-beta1-thread-dump.txt, > netbeans-12.1-thread-dump.txt > > > NetBeans sometimes hangs on startup; the symptom is a stalled "Opening > Projects" progress bar. I haven't been able to find a repro case, but I'm > attaching a thread dump (from VisualVM) and screen shot. -- 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