Skip to content

Conversation

@ychin
Copy link
Member

@ychin ychin commented Nov 3, 2022

This seems to be a really old bug but new interactions with macOS (probably due to macOS 13 Ventura) caused it to surface and crash. Previously it was assuming a call to removeTrackingRect must always come only after addTrackingRect was called, which was not a good assumption to make. As a result, we could call this and end up triggering other code in macOS when passing in a 0 tracking tag.

Fix #1333

This seems to be a really old bug but new interactions with macOS
(probably due to macOS 13 Ventura) caused it to surface and crash.
Previously it was assuming a call to removeTrackingRect must always come
only after addTrackingRect was called, which was not a good assumption
to make. As a result, we could call this and end up triggering other
code in macOS when passing in a 0 tracking tag.

Fix macvim-dev#1333
@ychin ychin added this to the Release 175 milestone Nov 3, 2022
@ychin ychin mentioned this pull request Nov 3, 2022
7 tasks
@ychin ychin merged commit d809b1e into macvim-dev:master Nov 3, 2022
@ychin ychin deleted the fix-tab-bar-crash branch November 3, 2022 23:01
ychin added a commit to ychin/macvim that referenced this pull request Feb 7, 2023
Similar to macvim-dev#1334. The old PSMTabBarControl code has a lot of dubious
straggling states regarding the tracking tags. Seems like previous macOS
versions tolerated that but in the newer macOS versions, the tags seem
to be reused for other purposes and so when you double-remove the tags,
you get into trouble.

Related to macvim-dev#1333
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.

New tabs cause crash

1 participant