Closed Gamec closed 3 years ago
Thanks for the issue. Seems like there may be a bug in the way the HeartbeatTimer
interacts with it's DispatchSourceTimer
. I'll try to look more into it.
@dsrees any update on that?
No sorry, I've been generally very busy lately. I am trying to set aside some time to take care of a couple of issues for this project. I will update here when I get around to it.
If you have time and want to try to figure it out, I would be happy to review a PR.
I have very similar timer class and the same crash. Problem is most likely with lazy property when accessed at the same time via multiple threads.
Thanks for everyone for reporting on this Version 2.1.1 is out which fixes thread safety in HeartbeatTimer. Obviously testing this one is difficult so please let me know if you see something else pop up
After updating to SwiftPhoenixClient 2.0 (happens in 2.1 too) I started getting crash reports from HeartbeatTimer. They are pretty rare, I didn't manage to reproduce it myself. Maybe you have any idea why they are happening?
This is line 74 crashing:
That's line 93 crashing: