Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Chooser dialog opens with long delay. #3919

Open
mohamedibrahim54 opened this issue Apr 2, 2022 · 6 comments
Open

File Chooser dialog opens with long delay. #3919

mohamedibrahim54 opened this issue Apr 2, 2022 · 6 comments
Labels

Comments

@mohamedibrahim54
Copy link

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 mohamedibrahim54 added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Apr 2, 2022
@lkishalmi
Copy link
Contributor

lkishalmi commented Apr 4, 2022

You might have broken links on the Desktop.

@mohamedibrahim54
Copy link
Author

how can I fix links?

@lkishalmi
Copy link
Contributor

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

@mbien mbien removed the needs:triage Requires attention from one of the committers label Feb 8, 2024
@mbien
Copy link
Member

mbien commented Feb 8, 2024

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 (or #7928) would fix it as side effect.

@mbien mbien changed the title NetBeans 13 is freeze when open any file selector Dialog like open project, add jar file to library. File Chooser dialog opens with long delay. Feb 8, 2024
@mbien mbien added the JDK bug label Feb 8, 2024
@coffeebeantraining
Copy link

coffeebeantraining commented Feb 8, 2024

Was sent to this post from here #4673 (comment)
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.

@neilcsmith-net
Copy link
Member

@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! 😄 NetBeans has certainly not got slower here. Whatever this issue is, we know it's OS specific.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants