Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Conversation

@bddckr
Copy link
Contributor

@bddckr bddckr commented Oct 19, 2022

It seems like the NSBlock was garbage collected before the task completed. That's because the method elided the async/await keywords. For more information see https://blog.stephencleary.com/2016/12/eliding-async-await.html.

It seems like the `NSBlock` was garbage collected before the task completed. That's because the method elided the `async`/`await` keywords. For more information see https://blog.stephencleary.com/2016/12/eliding-async-await.html.
@bddckr bddckr force-pushed the bug/garbage-collection-script-callback-macos branch from 0f62be6 to 1bee87b Compare October 19, 2022 10:20
@bddckr bddckr changed the title Merge branch 'fix/js-event-removal' Fix garbage collection of script callbacks on macOS. Oct 19, 2022
@bddckr
Copy link
Contributor Author

bddckr commented Nov 16, 2022

This doesn't actually resolve the issue for all occurrences. I believe this simply changed the timing in my favor enough for it to no longer reproduce on my machine. However, on macOS Ventura, this issue still reliably reproduces.

I opened #32, which is unrelated, but turns out to fix this.

@bddckr bddckr closed this Nov 16, 2022
@bddckr bddckr deleted the bug/garbage-collection-script-callback-macos branch November 16, 2022 14:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant