Skip to content

Hangup in DirectoryDialog #1929

@basilevs

Description

@basilevs

Describe the bug

NullPointerException: Cannot invoke "java.util.Optional.orElse(Object)" because the return value of "org.eclipse.swt.widgets.DirectoryDialog.openDialog()" is null
    at org.eclipse.swt.widgets.DirectoryDialog.open(DirectoryDialog.java:170)

To Reproduce
I received a P2 update prompt, agreed to download updates and immediately went to import project in a new PDE workspace. Eclipse went into a lock for approximately 10 minutes (I suspect the hangup would be shorted if I did not mash the "Browse" button), meanwhile I've recovered a log

eclipse.txt

Mac OS console.txt

2025-03-23 17:57:49.895361 (pid/4306/com.apple.appkit.xpc.openAndSavePanelService [4334]) <Notice>: exited due to exit(69)
2025-03-23 17:57:49.895372 (pid/4306/com.apple.appkit.xpc.openAndSavePanelService [4334]) <Notice>: service state: exited
2025-03-23 17:57:49.895378 (pid/4306/com.apple.appkit.xpc.openAndSavePanelService [4334]) <Notice>: internal event: EXITED, code = 0
2025-03-23 17:57:49.895383 (pid/4306/com.apple.appkit.xpc.openAndSavePanelService [4334]) <Notice>: job state = exited
2025-03-23 17:57:49.895407 (pid/4306 [eclipse]) <Notice>: service inactive: com.apple.appkit.xpc.openAndSavePanelService

I think this is some kind of dialog conflict - another dialog is either opened or closed very recently or right after the current one.

Expected behavior
No deadlock.

Screenshots

Image

Environment:

  1. Select the platform(s) on which the behavior is seen:
    • [] All OS
    • Windows
    • Linux
    • macOS
  1. Additional OS info (e.g. OS version, Linux Desktop, etc)

installation.txt

  1. JRE/JDK version
    java.vendor.version=Temurin-23.0.1+11

Version since
SWT version 3.129

Workaround (or) Additional context
Wait long enough

See also:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededmacOShappens on macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions