Skip to content
New issue

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

test: Remove subclass of NSTimer #2904

Merged
merged 2 commits into from
Apr 14, 2023
Merged

Conversation

philipphofmann
Copy link
Member

We subclassed NSTimer, which is not allowed see:
https://developer.apple.com/documentation/foundation/nstimer#1770465.
This sometimes leads to crashes in TestSentryNSTimerWrapper with EXC_BAD_ACCESS.
The subclass is now removed.

#skip-changelog

We subclassed NSTimer, which is not allowed see:
https://developer.apple.com/documentation/foundation/nstimer#1770465.
This sometimes leads to crashes in TestSentryNSTimerWrapper with EXC_BAD_ACCESS.
The subclass is now removed.
@philipphofmann
Copy link
Member Author

cc @armcknight I think that was the reason why the tests sometimes crashed here

and not because we used the lazy keyword.

@philipphofmann philipphofmann merged commit 326b7eb into main Apr 14, 2023
@philipphofmann philipphofmann deleted the test/remove-subclass-of-nstimer branch April 14, 2023 11:32
@armcknight
Copy link
Member

Huh, could you link to an example of the crash? I haven't seen that one. Good learning though, thanks!

@philipphofmann
Copy link
Member Author

philipphofmann commented Apr 17, 2023

Huh, could you link to an example of the crash? I haven't seen that one. Good learning though, thanks!

I noticed that when running the tests locally, sometimes the tests crashed with EXC_BAD_ACCESS. If you checkout a commit previous to the merge of this PR and run all tests locally a couple of times, you should experience the issue, @armcknight.

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