Open MilesV64 opened 1 year ago
@grsouza hey just tagging you cause I've seen you active in the community! This is a pretty gnarly issue for my app which I'm hoping to push to production very soon, do you have any idea of how much time you and others in the community have to spend on this? Happy to help however I can.
My hunch is it's to do with the HeartbeatTimer having its own dispatch queue for the timer but then also all the Realtime code being executed in the delegate methods of URLSession, which could be a variety of different background threads
Bug report
Describe the bug
While leaving my app open on a screen that has a channel subscription, after around 20 minutes without touching the app it crashed, saying "malloc: Heap corruption detected, free list is damaged". This has happened several times, on different devices.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
The client should be able to stay open indefinitely with no crashes.
Screenshots
Image of where the crash occurred in the library Image of the thread stack trace
System information
Additional context
This is happening quite consistently, please advise how to fix the crash if it's a usage issue!