Skip to content

Conversation

@lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented May 24, 2025

Previously after ~100 iterations, the provided test("openClose") case stops receiving events from OS-X. Presumably we must be leaking something

Moving most of the relevant CarbonApi() calls into the run method so they all run on the same thread seems to make the problem go away. We still need one call running in constructor body for some reason, even if it doesn't do anything, because otherwise the calls in the run method seem to hang

The test case hangs on my macbook without this PR, passes with

@lihaoyi lihaoyi changed the title Reproduce repeated watch-close failure on OS-X Reproduce and fix repeated watch-close failure on OS-X May 24, 2025
@lihaoyi lihaoyi merged commit bbe7948 into main May 24, 2025
13 of 16 checks passed
@lihaoyi lihaoyi deleted the start-stop-watch branch May 24, 2025 19:38
lihaoyi added a commit to com-lihaoyi/mill that referenced this pull request May 24, 2025
Pulls in com-lihaoyi/os-lib#393 and should fix
#5167

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
@lefou lefou added this to the 0.11.5 milestone May 24, 2025
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

Successfully merging this pull request may close these issues.

3 participants