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

Switching projects while the file selector dialog is open causes a crash #10

Closed
valadaptive opened this issue Oct 20, 2024 · 2 comments
Closed

Comments

@valadaptive
Copy link

valadaptive commented Oct 20, 2024

If you:

  1. Click the "Select Source" button
  2. Leave the file dialog open and create a new project or open a different one
  3. Select a file in the dialog

After Effects will crash:
image

I tested this on Windows; not sure if it also occurs on macOS.

This could be an issue because it seems that sometimes the dialog appears behind the main AE window, and users could potentially forget that the dialog is open and switch projects.

I ran into this issue with my own plugin when trying to figure out the "right way" to create a file selection dialog in AE. I believe you can get the main window handle with AEGP_GetMainHWND and then pass it into rfd::FileDialog via set_parent, but doing the same thing in Premiere seems to require using their own custom suite (unfortunately not yet implemented in the high-level API in the after-effects crate).

@mobile-bungalow
Copy link
Owner

This does not happen on MacOs, which is the only place I test. I'll look into exposing that API the next time I throw a PR at the after-effects crate. Thanks for the detailed write up.

@mobile-bungalow
Copy link
Owner

Closed with #11 , thanks for the detailed report and solution.

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

2 participants