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

EditorPlatform blocks JavaFX application thread when trying to open URLs, files or file browser windows #737

Open
Oliver-Loeffler opened this issue Sep 30, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Oliver-Loeffler
Copy link
Collaborator

The class EditorPlatform in kit module blocks the JavaFX application thread on each attempt to either reveal a file or to open a file or URL using its executeDaemon method.

Expected Behavior

  • The JavaFX application thread must not be blocked by code which may be blocking inherently (e.g. waiting for external processes etc.).

Current Behavior

EditorPlatform.executeDaemon() method blocks the JavaFX application thread when called through EditorPlatform.open() or EditorPlatform.revealInFileBrowser().

Depending on the underlying platform behavior, the UI freezes shortly.

Steps to Reproduce

  • open any documentation URL from within SceneBuilder
  • reveal any resource or FXML file from within SceneBuilder

If the reveal process blocks or is just slow, SceneBuilder UI will also block.

Your Environment

Windows 22H2
Java 23
OpenJFX 23
Maven 3.9.9

@Oliver-Loeffler Oliver-Loeffler added the bug Something isn't working label Sep 30, 2024
@Oliver-Loeffler Oliver-Loeffler added this to the 24 milestone Sep 30, 2024
@Oliver-Loeffler Oliver-Loeffler self-assigned this Sep 30, 2024
@Oliver-Loeffler Oliver-Loeffler modified the milestones: 24, 25 Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant