apache / apache/netbeans

Netbeans freeze on startup with a project using subversion

Open
#7,771 3 comments 0 reactions 0 assignees View on GitHub
kind:bug needs:triage subversion
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 22

### What happened

Netbeans freeze on startup with a project using subversion.
If i disable the network, everything goes well.

svn version: 1.14.3 (r1914484)
The svn server is on the same local network.

Logs:
```
INFO [org.netbeans.modules.subversion.client.SvnClientFactory]: running on javahl
WARNING [org.netbeans.TopSecurityManager]: use of system property netbeans.home has been obsoleted in favor of InstalledFileLocator/Places at org.netbeans.modules.java.j2seplatform.platformdefinition.Util.removeNBArtifacts(Util.java:341)
INFO [org.netbeans.modules.subversion]: Finished indexing svn cache with 26 entries. Elapsed time: 2 ms.
INFO [org.netbeans.ui.metrics.cdi]: Opened Project "org.netbeans.modules.maven.NbMavenProjectImpl" with existing beans.xml file.
INFO [org.netbeans.ui.metrics.cdi]: Opened Project "org.netbeans.modules.maven.NbMavenProjectImpl" with existing beans.xml file.
INFO [org.netbeans.ui.metrics.maven]: USG_PROJECT_OPEN_MAVEN_EE
INFO [org.netbeans.ui.maven.project]: A Maven project was opened. Appending the project's packaging type.
INFO [org.netbeans.ui.metrics.maven]: USG_PROJECT_OPEN_MAVEN
INFO [org.netbeans.ui.metrics.projects]: USG_PROJECT_OPEN
INFO [org.netbeans.ui.metrics.vcs]: USG_VCS_CLIENT
INFO [org.apache.lucene.store.MemorySegmentIndexInputProvider]: Using MemorySegmentIndexInput with Java 21 or later; to disable start with -Dorg.apache.lucene.store.MMapDirectory.enableMemorySegments=false
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 0 ms.
Diagnostic information
Input arguments:
-Djdk.home=/Users/dan/Library/Java/JavaVirtualMachines/zulu-21.jdk/Contents/Home
-Dnetbeans.default_userdir_root=/Users/dan/Library/Application Support/NetBeans
-Dnetbeans.dirs=/Applications/Apache NetBeans.app/Contents/Resources/netbeans/nb:/Applications/Apache NetBeans.app/Contents/Resources/netbeans/ergonomics:/Applications/Apache NetBeans.app/Contents/Resources/netbeans/ide:/Applications/Apache NetBeans.app/Contents/Resources/netbeans/extide:/Applications/Apache NetBeans.app/Contents/Resources/netbeans/java:/Applications/Apache NetBeans.app/Contents/Resources/netbeans/apisupport:/Applications/Apache NetBeans.app/Contents/Resources/netbeans/webcommon:/Applications/Apache NetBeans.app/Contents/Resources/netbeans/websvccommon:/Applications/Apache NetBeans.app/Contents/Resources/netbeans/enterprise:/Applications/Apache NetBeans.app/Contents/Resources/netbeans/mobility:/Applications/Apache NetBeans.app/Contents/Resources/netbeans/profiler:/Applications/Apache NetBeans.app/Contents/Resources/netbeans/identity:/Applications/Apache NetBeans.app/Contents/Resources/netbeans/harness:/Applications/Apache NetBeans.app/Contents/Resources/netbeans/dlight:/Applications/Apache NetBeans.app/Contents/Resources/netbeans/groovy:/Applications/Apache NetBeans.app/Contents/Resources/netbeans/extra:/Applications/Apache NetBeans.app/Contents/Resources/netbeans/javafx:/Applications/Apache NetBeans.app/Contents/Resources/netbeans/rust:
-Dnetbeans.home=/Applications/Apache NetBeans.app/Contents/Resources/netbeans/platform
-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade
-XX:+UseStringDeduplication
-Xms1536m
-Xmx2g
-Xss4m
-Dsun.java2d.metal=false
-Dflatlaf.useNativeLibrary=false
-Djava.net.preferIPv4Stack=true
-Dapple.laf.useScreenMenuBar=true
-Dapple.awt.application.appearance=system
-Dnb.FileChooser.useShellFolder=false
-Dsun.java2d.noddraw=true
-Dsun.java2d.dpiaware=true
-Dplugin.manager.check.updates=false
-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes
--add-opens=java.base/java.net=ALL-UNNAMED
--add-opens=java.base/java.lang.ref=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.security=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.nio=ALL-UNNAMED
--add-exports=java.base/sun.reflect.annotation=ALL-UNNAMED
--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED
--add-opens=java.desktop/javax.swing=ALL-UNNAMED
--add-opens=java.desktop/java.awt=ALL-UNNAMED
--add-opens=java.desktop/java.awt.event=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.plaf.synth=ALL-UNNAMED
--add-opens=java.desktop/com.sun.java.swing.plaf.gtk=ALL-UNNAMED
--add-opens=java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED
--add-opens=java.desktop/com.apple.laf=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.im=ALL-UNNAMED
--add-exports=java.desktop/sun.awt=ALL-UNNAMED
--add-exports=java.desktop/java.awt.peer=ALL-UNNAMED
--add-exports=java.desktop/com.sun.beans.editors=ALL-UNNAMED
--add-exports=java.desktop/sun.swing=ALL-UNNAMED
--add-exports=java.desktop/sun.awt.im=ALL-UNNAMED
--add-exports=java.desktop/com.sun.java.swing.plaf.motif=ALL-UNNAMED
--add-exports=java.desktop/com.apple.eio=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
--add-modules=jdk.jshell
--add-opens=jdk.jshell/jdk.jshell=ALL-UNNAMED
--add-exports=jdk.jshell/jdk.internal.jshell.debug=ALL-UNNAMED
--add-exports=jdk.jdeps/com.sun.tools.classfile=ALL-UNNAMED
--add-exports=jdk.jdeps/com.sun.tools.javap=ALL-UNNAMED
--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
--add-exports=jdk.internal.opt/jdk.internal.opt=ALL-UNNAMED
--add-exports=java.management/sun.management=ALL-UNNAMED
-XX:+IgnoreUnrecognizedVMOptions
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/Users/dan/Library/Application Support/NetBeans/22/var/log/heapdump.hprof
-Djava.security.manager=allow
Compiler: HotSpot 64-Bit Tiered Compilers
Heap memory usage: initial 1536.0MB maximum 2048.0MB
Non heap memory usage: initial 7.3MB maximum -1b
Garbage collector: G1 Young Generation (Collections=12 Total time spent=0s)
Garbage collector: G1 Concurrent GC (Collections=8 Total time spent=0s)
Garbage collector: G1 Old Generation (Collections=0 Total time spent=0s)
Classes: loaded=20473 total loaded=20475 unloaded 1
INFO [org.netbeans.core.ui.warmup.DiagnosticTask]: Total memory 34,359,738,368
INFO [null]: Total physical memory 34,359,738,368
INFO [org.netbeans.modules.subversion.FileStatusCache]: FileStatusCache.refreshTask: Scanning in progress, trying again in 10,000ms
INFO [org.netbeans.modules.subversion]: Subversion.cleanupTask: Scanning in progress, trying again in 10,000ms
INFO [org.netbeans.modules.subversion.FileStatusCache]: FileStatusCache.refreshTask: Scanning in progress, trying again in 10,000ms
INFO [org.netbeans.modules.subversion]: Subversion.cleanupTask: Scanning in progress, trying again in 10,000ms
INFO [org.netbeans.modules.subversion.FileStatusCache]: FileStatusCache.refreshTask: Scanning in progress, trying again in 10,000ms
INFO [org.netbeans.modules.subversion]: Subversion.cleanupTask: Scanning in progress, trying again in 10,000ms
INFO [org.netbeans.modules.subversion.FileStatusCache]: FileStatusCache.refreshTask: Scanning in progress, trying again in 10,000ms
INFO [org.netbeans.modules.subversion]: Subversion.cleanupTask: Scanning in progress, trying again in 10,000ms
INFO [org.netbeans.modules.subversion.FileStatusCache]: FileStatusCache.refreshTask: Scanning in progress, trying again in 10,000ms
INFO [org.netbeans.modules.subversion]: Subversion.cleanupTask: Scanning in progress, trying again in 10,000ms
INFO [org.netbeans.modules.subversion.FileStatusCache]: FileStatusCache.refreshTask: Scanning in progress, trying again in 10,000ms
INFO [org.netbeans.modules.subversion]: Subversion.cleanupTask: Scanning in progress, trying again in 10,000ms
INFO [org.netbeans.modules.subversion.FileStatusCache]: FileStatusCache.refreshTask: Scanning in progress, trying again in 10,000ms
INFO [org.netbeans.modules.subversion]: Subversion.cleanupTask: Scanning in progress, trying again in 10,000ms
INFO [org.netbeans.modules.subversion.FileStatusCache]: FileStatusCache.refreshTask: Scanning in progress, trying again in 10,000ms
INFO [org.netbeans.modules.subversion]: Subversion.cleanupTask: Scanning in progress, trying again in 10,000ms
INFO [org.netbeans.modules.subversion.FileStatusCache]: FileStatusCache.refreshTask: Scanning in progress, trying again in 10,000ms
INFO [org.netbeans.modules.subversion]: Subversion.cleanupTask: Scanning in progress, trying again in 10,000ms

```

### Language / Project Type / NetBeans Component

_No response_

### How to reproduce

Open netbeans with a project using subversion and the network is online.

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

Mac OS X version 14.4.1 running on aarch64

### JDK

21.0.4; OpenJDK 64-Bit Server VM 21.0.4+7-LTS; Azul Systems, Inc.

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

_No response_

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

Reproduce the startup freeze in Apache NetBeans 22 on macOS with the network enabled and a Subversion project open. Start by tracing the logged subversion entries for FileStatusCache.refreshTask, Subversion.cleanupTask, and SvnClientFactory, comparing behavior with networking disabled. Done means startup completes without freezing and the affected scenario is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.