netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

File Chooser dialog opens with long delay.

Open mohamedibrahim54 opened this issue 2 years ago • 6 comments

Apache NetBeans version

Apache NetBeans 13

What happened

NetBeans 13 is freeze when open any file selector Dialog like open project, add jar file to library.

How to reproduce

No response

Did this work correctly in an earlier version?

Apache NetBeans 12.3 or earlier

Operating System

Windows 10

JDK

JDK 8

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

No response

Are you willing to submit a pull request?

No

Code of Conduct

Yes

mohamedibrahim54 avatar Apr 02 '22 15:04 mohamedibrahim54

You might have broken links on the Desktop.

lkishalmi avatar Apr 04 '22 03:04 lkishalmi

how can I fix links?

mohamedibrahim54 avatar Apr 08 '22 13:04 mohamedibrahim54

If you have broken links, you can remove them. I'm not a Windows user.

lkishalmi avatar Apr 08 '22 14:04 lkishalmi

Here a few JDK bugs which are related to delays before the file chooser shows up: JDK-8265446 "JFileChooser slow with network shortcut on desktop" JDK-8268731 "Slow opening of the JFileChooser when desktop contains broken lnk file" JDK-8213583 "Error while opening the JFileChooser when desktop contains shortcuts pointing tto deleted files"

and when the file chooser doesn't show up at all: JDK-8305072 "Win32ShellFolder2.compareTo and equals are inconsistent with each other" also see #6361 for workaround

The comments on the first three issues seem to indicate that this should already work on up2date JDKs if the security manager is not use? Maybe I am reading this wrong. The fourth issue is a different problem, connected to the windows specific quick selection panel on the left side of the file chooser.

JDK-8265446 does have a reproducer so it should be easy to check if it happens to someone.

If it is indeed SM related, would be curious if #3386 would fix it as side effect.

mbien avatar Feb 08 '24 08:02 mbien

Was sent to this post from here https://github.com/apache/netbeans/issues/4673#issuecomment-1933440773 I don't have any of the above items that should cause the slowness. I installed Netbeans 20 and executed as follows, but opening projects is still slow. C:\devenv\apache\netbeans\netbeans-20\bin\netbeans64.exe --jdkhome C:\devenv\apache\jdk\jdk-21.0.2 --userdir C:\devenv\apache\netbeans\nbuser\20 --cachedir C:\devenv\apache\netbeans\nbcache\20

about the previous comment "The last time I heard something like this was probably in the late 90s." Thank You :) That's right, I've been in the industry since 1981 and I've used netbeans from the beginning and over the years have seen become slower and slower and imho over-engineered.
Netbeans rocks!, I Love the IDE.

coffeebeantraining avatar Feb 08 '24 16:02 coffeebeantraining

@coffeebeantraining you could still try the reproducer in JDK-8265446 I think. It would be good to clarify if the security manager is the only issue in play here.

Yes, it couldn't possibly be Windows that's got slower and slower and over-engineered! :smile: NetBeans has certainly not got slower here. Whatever this issue is, we know it's OS specific.

neilcsmith-net avatar Feb 08 '24 17:02 neilcsmith-net