Skip to content
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.

Crash when selecting (highlighting) the last character. #139

Open
sibe7691 opened this issue Jun 10, 2015 · 3 comments
Open

Crash when selecting (highlighting) the last character. #139

sibe7691 opened this issue Jun 10, 2015 · 3 comments
Assignees
Labels

Comments

@sibe7691
Copy link

I got a crash when i selected the last character in the text of my STTweetLabel.

This issue occurred here:

Pods/STTweetLabel/STTweetLabel/STTweetLabel.m:440
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'range > max'

Here is the full stack trace:

2015-06-10 09:59:27.554 AppName[2238:133235] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'range > max'
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010db8cc65 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x000000010d7f6bb7 objc_exception_throw + 45
    2   CoreFoundation                      0x000000010db8caca +[NSException raise:format:arguments:] + 106
    3   Foundation                          0x000000010b26a98f -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
    4   AppName                     0x0000000109ec8723 -[STTweetLabel touchesMoved:withEvent:] + 2083
    5   UIKit                               0x000000010bd0d842 -[UIWindow _sendTouchesForEvent:] + 393
    6   UIKit                               0x000000010bd0e2c2 -[UIWindow sendEvent:] + 682
    7   UIKit                               0x000000010bcd4581 -[UIApplication sendEvent:] + 246
    8   UIKit                               0x000000010bce1d1c _UIApplicationHandleEventFromQueueEvent + 18265
    9   UIKit                               0x000000010bcbc5dc _UIApplicationHandleEventQueue + 2066
    10  CoreFoundation                      0x000000010dac0431 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    11  CoreFoundation                      0x000000010dab62fd __CFRunLoopDoSources0 + 269
    2  CoreFoundation                      0x000000010dab5934 __CFRunLoopRun + 868
    13  CoreFoundation                      0x000000010dab5366 CFRunLoopRunSpecific + 470
    14  GraphicsServices                    0x000000010fd82a3e GSEventRunModal + 161
    15  UIKit                               0x000000010bcbf900 UIApplicationMain + 1282
    16  AppName                     0x0000000109bf5877 main + 135
    17  libdyld.dylib                       0x00000001108ee145 start + 1
    18  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
@Maxatma
Copy link

Maxatma commented Jun 19, 2015

Same to me, when i select text from left to right, it crashes with same 'range > max'

@SebastianThiebaud
Copy link
Owner

I'll investigate in the next few days. Thanks for the report.

@khanhVVd8
Copy link

Did you fix this @SebastienThiebaud ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants