emqx / CocoaMQTT

MQTT 5.0 client library for iOS and macOS written in Swift
https://www.emqx.com/en
Other
1.57k stars 411 forks source link

Crash on CocoaMQTT #505

Open anhtran2020 opened 1 year ago

anhtran2020 commented 1 year ago

Hi, I'm using CocoaMQTT inside a framework And sometimes It's crashed in the payloadReady() method I don't know how to reproduce the crash, but I think when data is [0, 0, 0]

Screenshot 2022-12-05 at 22 25 09

This is my configuration MQTT code:

Screenshot 2022-12-07 at 13 09 54
sky-NunoPereira commented 1 year ago

Hi, any feedback on this issue? What caused it, is it fixed or happens it last release? Were you able to reproduce it on the last release? Thanks in advance.

leeway1208 commented 1 year ago

Hi, I tried the data is [0, 0, 0] which is running well in the last version. This issue may be caused by the background thread?

wtdu commented 3 months ago

Same issue for me on 2.1.6. how to fix it ?