[
https://issues.apache.org/jira/browse/NETBEANS-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17188841#comment-17188841
]
Ernie Rael commented on NETBEANS-4696:
--------------------------------------
Here's the deadlock, note that parsing.api.ParserManager.parse is one at a time
A task that's parsing is waiting for projects to finish opening.
Project opener is waiting to parse.
The maven stuff from ProjectOpener looks pretty suspicious, but IDK?????
If it only happens with the html stuff, then maybe the rule is that
a parser isn't supposed to wait for the ProjectOpener.
=== a parsing task
{code}
Some Random Task does parsing, invokes
at org.netbeans.modules.parsing.api.ParserManager.parse
(ParserManager.java:81)
and then does
at org.netbeans.modules.html.editor.api.gsf.HtmlParserResult.root
(HtmlParserResult.java:119)
which ends up doing
at org.netbeans.modules.project.ui.OpenProjectList$LoadOpenProjects.get
(OpenProjectList.java:576)
and this OpenProjectList$LoadOpenProjects.get() wait for opening to complete
{code}
=== "Load Open Projects"
{code}
at org.netbeans.spi.java.project.support.CompilerOptionsQueryMerger
$CompilerOptionsQueryImpl$ResultImpl.lambda$checkProviders$4
(CompilerOptionsQueryMerger.java:184)
goes into some maven specific code
at org.netbeans.modules.maven.queries.UnitTestsCompilerOptionsQueryImpl
$ResultImpl.getArguments
(UnitTestsCompilerOptionsQueryImpl.java:155)
which ends up at
at org.netbeans.modules.maven.queries.UnitTestsCompilerOptionsQueryImpl
$ResultImpl.getModuleName
(UnitTestsCompilerOptionsQueryImpl.java:289)
and then
at org.netbeans.modules.parsing.api.ParserManager.parse
(ParserManager.java:81)
{code}
> 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: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists