New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NSRangeException #14
Comments
Just to add to it, here is a long discussion on the topic (from a site that I had never heard of before): I'm not sure if this can be prevented by your code, but it might be worth looking into. It seems to have something to do with AttributedString, but it does not appear to be certain. |
Hi @gloparco! Thanks for reporting this. However we'd be more than happy to merge a PR which resolves this issue. |
@gloparco I am using ActiveLabel in an UITableViewCell but every time i set a text containing an @ or # I get a NSRangeException. |
Hi @byAmmerix, in what SDK and iOS version have you noticed it? |
+1 happens to me every time i close and reopen a given tableview repeatedly. |
@alexbredy what dependency manager are you using? iOS and SDK version? |
Hi @poolqf Using Cocoapods with Update regarding the issue I'm having: The crash does not happen if the cells are unaltered. |
The problem is
Quickfix: Comment out that row (and consequently the closing } on row 194) and let the commands execute on the main thread instead and the crash is no more. Be very careful trying to do stuff outside the main thread. |
I've removed the Feel free to reopen it if it happens again cc/ @byAmmerix , @alexbredy , @JaviSoto |
Hi Johannes, thanks for ActiveLabel - nice work!
I notice that when using ActiveLabel in a CollectionView and scrolling up or down, I sometimes get the following error:
*** Terminating app due to uncaught exception 'NSRangeException', reason: 'NSMutableRLEArray objectAtIndex:effectiveRange:: Out of bounds'
This has also been documented in another UILabel github lib (Obj-C), here:
SebastianThiebaud/STTweetLabel#55
The bug is hard to reproduce, but it has happened multiple times. It doesn't appear to be associated with the speed of scrolling or anything else I can reproduce, but as I mentioned, it has happened multiple times now, and it does seem related to ActiveLabel. Sorry I can't be of more help.
The text was updated successfully, but these errors were encountered: