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

Random hanging of export_fig #399

Open
mitchelltroy opened this issue Dec 11, 2024 · 3 comments
Open

Random hanging of export_fig #399

mitchelltroy opened this issue Dec 11, 2024 · 3 comments

Comments

@mitchelltroy
Copy link

I have a script that calls export_fig dozens of time and export_fig seems to randomly hang matlab (spinning ball of death on Mac). The current calling parameters are export_fig(filename,'-png','-pdf','-r512','-transparent'), but other parameters also randomly cause Matlab to hang.

Others I work with see a similar behavior. I am currently on an Intel Mac and have seen this on Matlab 2023B and 2024A

Any ideas?
Thanks,
Mitch

@altmany
Copy link
Owner

altmany commented Dec 11, 2024

When this happens, click Ctrl-C to stop the running function and see where exactly it hangs.
You can try to add short pause() calls between your multiple calls to export_fig, maybe this will help.

@mitchelltroy
Copy link
Author

Thanks, but Ctrl-C isn't responsive as matlab has the spinning beach ball. I had tried the pause() and just tried it again with a 1 second delay before and after the call to export_fig, but he problem still persists.

@altmany
Copy link
Owner

altmany commented Dec 11, 2024

Perhaps the Pause icon in the Matlab Editor will be responsive?
If not then I am out of ideas...

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