[MOD-2480] SocketIO: Event handler GC leads to crash (iOS)
DescriptionFor compatibility with the web client we have our own event listener methods
off. Those do not properly protect the callback against GC so when the event listener is ultimately called and was already subject to GC the app will crash.
- Hans Knöchel 2018-12-07 Thanks for creating the ticket Jan! If there is a workaround (e.g. by using callbacks directly), we could apply that temporarily to be unblocked from production. Thanks!
- Jan Vennemann 2018-12-07
Try calling the proxy's
addEventListenerin addition to
off.. That should take care of properly storing the callback and protecting it against GC. I have a fix incoming which does exactly the same behind the scenes.
- Jan Vennemann 2019-02-25 Fixed with version 2.0.0 of the socket.io module.