eBay/NMessenger

Data race crashes application

Opened this issue · 0 comments

First of all very nice library 💯
Since I implemented it in my application I have noticed constant crashes in the DefaultBubble class specifically in the method sizeToBounds. At the beginning I couldn't understand why it was crashing but later, after enabling thread sanitizer in xcode, I found that a data race was happening on the path property (multiple threads trying to read and modify the same property). Does anyone else has noticed this weird behaviour? Is there a way to fix it?

See below screenshot:
Screenshot 2019-03-26 at 14 02 46