Why am I getting an assertion in DDTokenCache when using NSDataDetector to scan a string for links?
-
In my iOS app, I am using NSDataDetector with NSTextCheckingTypeLink to search a string for links within it. Generally, it works fine, but when the string contains certain very long words (200+ chars) followed by a space and another word, I get this assertion when matchesInString:options:range is called: > DDRequire failed: the following assertion will only be logged once > > assertion on > /SourceCache/MobileDataDetectorsCore/MobileDataDetectorsCore-154/Sources/PushDown/DDTokenCache.c:310 > "delta >= 0" failed :Bad shift in > DDTokenCacheMoveStreamOffset, aborting This is the kind of text that causes this: > http://blog.somethingorother.com/2011/storynameetcmorestuff/utm_source/eedburnerutmmediumfeedutmcampaign/FeedanutmcontentGooglFeedfetcherutmcampaign/FeedanutmcontentGooglFeedfetcher/eedburnerutm_mediumfeedutmcampaign/FeedanutmcontentGooglFeedfetcherutmcampaign HEY Does anyone know what's behind this or have any other insight into this? At the very least, I'd like to be able to get around it, as it happens even in release builds.
-
Answer:
It shouldn't break. File a bug report at http://bugreport.apple.com.
Ben Nham at Quora Visit the source
Other answers
It's been filed (#8917104) and acknowledged as a dupe of #8864745.
Jim Kang
Related Q & A:
- Why am I getting an "Expected Identifier" error?Best solution by Stack Overflow
- Why am i getting an ArgumentOutOfRangeException?Best solution by Stack Overflow
- Why am I getting error unwrapping Optional if it has a value?Best solution by Stack Overflow
- Why am I getting a Yahoo Mail Error?Best solution by Yahoo! Answers
- Why am I getting duplicate emails from same sender all of a sudden?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.