Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Process.execute on macOS leaves a background thread spinning at 100% #164

Open
vzsg opened this issue Jul 8, 2018 · 2 comments
Open

Process.execute on macOS leaves a background thread spinning at 100% #164

vzsg opened this issue Jul 8, 2018 · 2 comments
Assignees
Labels

Comments

@vzsg
Copy link
Member

vzsg commented Jul 8, 2018

In particular, these lines are spinning uncontrollably after the child process exited.

Xcode's memory debugger revealed that the file handle and related objects are kept in memory by the autorelease pool – and explicitly wrapping the Process.execute call with @autoreleasepool resolved the issue.


Process.asyncExecute doesn't seem to have this issue, and I have not tested anything on Linux.

@tanner0101
Copy link
Member

#170 changes macOS and Linux to using the same code. Seems like that will fix this issue. If you have code that was known to recreate the issue, I can add to a test to verify that it no longer does.

@tanner0101 tanner0101 added the bug label Sep 17, 2018
@tanner0101 tanner0101 self-assigned this Sep 17, 2018
@vzsg
Copy link
Member Author

vzsg commented Sep 17, 2018

I'll check if I still have it, thanks.

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

No branches or pull requests

2 participants