-
-
Notifications
You must be signed in to change notification settings - Fork 561
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
Stackoverflow in returnLabeLToOriginImmediately #35
Comments
Are you using the latest version of MarqueeLabel? This is similar to issue #31, which I thought was solved but I have not strenuously tested on, ahem, unreleased iOS versions. |
I'm using the latest version. I read #31, I think the key issue is something that has to do with unicode characters, as the string that's causing my crash contains "á" and "õ" and on #31 it's 'Sternwartestraße, Betrieb...'. more things:
|
Hmm interesting, good data points. I'd noticed the unicode characters when working on #31 as well, but had hoped making sure the rects were integral would help. Sounds like this might be getting into the black magic of font spacing/sizing, so one possible option might just be to eliminate the recursive call. The root cause of the recursion is the fact that |
Thanks, I've lost you there on the second paragraph, on what that condition really means. |
It'll probably still be fine if you remove the recursion, so if you need to get something non-crashy out you could probably remove it. |
Thanks I'll do that. |
We too are seeing this issue reported by our European users, so removed the recursion, hopefully this works. It worked. No more crashes reported by European users. |
We ran into the same issue without unicode characters. The self.subLabel.frame.origin.x was off by hundredths or less, and we were able to work around it by converting the value to an integer and then comparing it. Also, this only happened on an iPad running iOS7 when the app is built using XCode 5. (Did not happen on any iPhones, any iOS6 or when the app was built using Xcode 4.6.) |
So I noticed that I wasn't initializing the I've always had trouble replicating this (no clue why!), but if this fixes it for you guys that have had trouble please report back. |
Does the update fixes the issue seen in iPad or the unicode char problem? |
Well only the Unicode characters I'd think, but I can't say for sure. I actually don't have an iOS7 iPad for testing right now. On Mon, Nov 11, 2013 at 12:56 AM, gammapoint notifications@github.com
|
I'm also going to remove the recursion from this call. At worst the result would be some screwy animation, which is still better than a hard crash due to a stack overflow. |
Hi, |
Thanks @nthenoz, I put a few more |
I believe this should be completely fixed with the release of v2.0.0. The check is no longer performed, and the |
Hi,
I'm investigating now a stack overflow case where returnLabeLToOriginImmediately keeps calling it self.
So as you can see the IF statement the end is false.
This happens on iOS 7.0 Beta 6. I'm setting the label after the view has appeared.
The text was updated successfully, but these errors were encountered: