olivierboucher / StreamCenter

tvOS project that aims at providing various video feeds to the AppleTV.
http://streamcenterapp.com/
MIT License
115 stars 29 forks source link

Chat is sometimes crashing #3

Closed olivierboucher closed 9 years ago

olivierboucher commented 9 years ago

The implementation of the chat was really complex and sometimes it crashes. It involves GDC and is uncommented. If any of you guys encounter the bug by the time I comment as much as possible out of it, please let me know your insights :)

olivierboucher commented 9 years ago

Here is how it works for reference Schema

mkral commented 9 years ago

I think I may have figured out the crashing. I added an exception breakpoint and it always seemed to crash when the message string contained "\U0000fffc" so I added

var string = attrMsg.string

string = string.stringByReplacingOccurrencesOfString("\u{fffc}", withString: "");

and it's been running with chat for a long time but I want to leave it up and add some unit tests for the getAttributedStringForMessage function

olivierboucher commented 9 years ago

Nice ! I'm working on documentation / refactoring on a different branch right now. Mainly working on controller/views. Let's make sure we touch different things to avoid conflicts :+1:

olivierboucher commented 9 years ago

Closing this because of #57 & #58