We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
XCode 10.1/10.2
Swift 4.2/5.0 (same happens with Objective-C)
IOS Simulator, iPhone XR
md5: 015772b4cd62c86b53f46b4fa2db8c56
Issue Description:
Captured objects are not released when adding operation with block to OperationQueue.
I created an unit test to show the problem here:
https://gist.github.com/sisoje/4a73e36ffbe917a25d14deacd814bfc9
Interesting to note:
adding async block to DispatchQueue works fine
adding BlockOperation to OperationQueue works fine
The text was updated successfully, but these errors were encountered:
Yikes! cc @millenomi
Sorry, something went wrong.
See the comment in your gist at https://gist.github.com/sisoje/4a73e36ffbe917a25d14deacd814bfc9#file-testfulfill-swift-L48 — you're asserting that an object is still alive or not, but you're doing so without emptying the autorelease pool on Darwin.
Comment by Lazar Otasevic (JIRA)
@millenomi i saw it, wrapping "add operation with block" with autoreleasepool { ... } prevents this error, thanks
Also thanks to @belkadan for commenting this ticket 🙂
No branches or pull requests
Environment
XCode 10.1/10.2
Swift 4.2/5.0 (same happens with Objective-C)
IOS Simulator, iPhone XR
Additional Detail from JIRA
md5: 015772b4cd62c86b53f46b4fa2db8c56
Issue Description:
Captured objects are not released when adding operation with block to OperationQueue.
I created an unit test to show the problem here:
https://gist.github.com/sisoje/4a73e36ffbe917a25d14deacd814bfc9
Interesting to note:
adding async block to DispatchQueue works fine
adding BlockOperation to OperationQueue works fine
The text was updated successfully, but these errors were encountered: