matthiasblaesing commented on issue #6862:
URL: https://github.com/apache/netbeans/issues/6862#issuecomment-1897599425
This looks is the blocker to the trace you identified:
```
"GitRefresh" #98 daemon prio=1 os_prio=-2 cpu=6553171.88ms elapsed=8350.86s
tid=0x0000000032d4d000 nid=0x16d8 runnable [0x00000000341ae000]
java.lang.Thread.State: RUNNABLE
at java.io.WinNTFileSystem.checkAccess([email protected]/Native Method)
at java.io.File.canRead([email protected]/File.java:780)
at
org.netbeans.modules.gradle.spi.GradleFiles.searchPathUp(GradleFiles.java:164)
at
org.netbeans.modules.gradle.spi.GradleFiles.searchBuildScripts(GradleFiles.java:129)
at
org.netbeans.modules.gradle.spi.GradleFiles.<init>(GradleFiles.java:104)
at
org.netbeans.modules.gradle.spi.GradleFiles.<init>(GradleFiles.java:91)
at
org.netbeans.modules.gradle.NbGradleProjectFactory.isProjectCheck(NbGradleProjectFactory.java:74)
at
org.netbeans.modules.gradle.NbGradleProjectFactory.isProject(NbGradleProjectFactory.java:56)
at
org.netbeans.modules.gradle.NbGradleProjectFactory.loadProject(NbGradleProjectFactory.java:95)
at
org.netbeans.modules.projectapi.nb.NbProjectManager.createProject(NbProjectManager.java:376)
at
org.netbeans.modules.projectapi.nb.NbProjectManager.access$300(NbProjectManager.java:69)
at
org.netbeans.modules.projectapi.nb.NbProjectManager$2.run(NbProjectManager.java:289)
at
org.netbeans.modules.projectapi.nb.NbProjectManager$2.run(NbProjectManager.java:218)
at
org.netbeans.modules.openide.util.DefaultMutexImplementation.readAccess(DefaultMutexImplementation.java:188)
at org.openide.util.Mutex.readAccess(Mutex.java:232)
```
I would check a few minutes apart, if these two threads stay in the trace.
If that is the case, you could try to run your IDE with debugging enabled for
example on linux I can run:
```
~/bin/netbeans-20/bin/netbeans
-J-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1044
```
And then I can run a second instance of Netbeans and connect on port 1044
using JPDA. You could then inspect the stack of the `GitRefresh` thread and see
on which file it blocks.
What is more I notice, that you seem to run on JDK 11.0.13. Looking at the
tables (https://www.java.com/releases/matrix/) that is more that two years old.
I would advice to test with the most recent release of JDK 17 (I use Amazon
Corretto on Windows) or even 21 (though that was new when NB20 was released, so
it might be rough).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
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