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

ExecSync can hang UXP / PS #33

Open
gregbenz opened this issue Dec 11, 2024 · 0 comments
Open

ExecSync can hang UXP / PS #33

gregbenz opened this issue Dec 11, 2024 · 0 comments

Comments

@gregbenz
Copy link

gregbenz commented Dec 11, 2024

The C++ API for ExecSync in the hybrid plugin is synchronous. While it works as expected, it also blocks the UXP JS thread even if you use async JS (such as void instead of await). If the C++ process does not terminate (such as opening another app for downstream processing of an image from PS), there is no way to restore control in PS. The user may cancel, but PS will appear to be hung.

It would be safer for Bolt to return a promise.

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

No branches or pull requests

1 participant