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

Ernie Rael commented on NETBEANS-4696:
--------------------------------------

For the problematic
{code:java}
private static String getModuleName(@NonNull final FileObject moduleInfo)
{code}
in UnitTestsCompilerOptionsQueryImpl.java, replaced the rather expensive method 
with the single line
{code:java}
return SourceUtils.parseModuleName(moduleInfo);
{code}
and the debugger shows the same result (in the case I tried)

I couldn't get 
{code:java}
SourceUtils.getModuleName(moduleInfo.getParent().toURL())
{code}
to work. Then I noticed that the javadoc asks for a binary root; not sure what 
that means.

Unless there's an objection, I'll file a pull request with this change tomorrow.

I'll take a look at KOHtmlExtension and try to come up with something.

[~gholmer], [~hink084] I couldn't get a failure, to verify the fix. I added an 
xhtml file and a maven test to get a breakpoint in the troubling method. But no 
hang. If this gets pulled into master, maybe you can check a daily build...

> 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: Blocker
>              Labels: deadlock
>         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

Reply via email to