Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8063823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:10:10+00:00 2026-06-05T11:10:10+00:00

This call: [UIKeyboardImpl(ShortcutConversionSupport) _shortcutConversionCandidateForInput:] is crashing my app. Googling and looking through Apple’s API

  • 0

This call:

[UIKeyboardImpl(ShortcutConversionSupport) _shortcutConversionCandidateForInput:]

is crashing my app. Googling and looking through Apple’s API documentation brings up no results. I have never seen this call being made anywhere in my app. I also put a break-point at the location I believe it is getting called at. Here is the crash report:

(FYI, the crash log could not be completely symbolicated even when using the correct dSYM file. No idea why)

Last Exception Backtrace:
0   CoreFoundation                  0x327e188f __exceptionPreprocess + 163
1   libobjc.A.dylib                 0x34837259 objc_exception_throw + 33
2   CoreFoundation                  0x327e1789 +[NSException raise:format:] + 1
3   CoreFoundation                  0x327e17ab +[NSException raise:format:] + 35
4   CoreFoundation                  0x3273bf5b -[__NSCFString substringWithRange:] + 103
5   Buffer                          0x000fa061 0xd6000 + 147553
6   UIKit                           0x32348137 -[UIKeyboardImpl(ShortcutConversionSupport) _shortcutConversionCandidateForInput:] + 615
7   UIKit                           0x32322c07 -[UIKeyboardImpl addInputString:fromVariantKey:] + 287
8   UIKit                           0x32322ae1 -[UIKeyboardImpl handleStringInput:fromVariantKey:] + 165
9   UIKit                           0x32321829 -[UIKeyboardImpl handleKeyEvent:] + 1501
10  UIKit                           0x02b10261 0x2af4000 + 115297
11  UIKit                           0x324bb8a3 -[UIKeyboardLayoutStar sendStringAction:forKey:isPopupVariant:] + 487
12  UIKit                           0x3231fdcd -[UIKeyboardLayoutStar touchUp:] + 3197
13  UIKit                           0x02b2ab47 0x2af4000 + 224071
14  UIKit                           0x3231f0fd -[UIKeyboardLayout touchesEnded:withEvent:] + 381
15  UIKit                           0x3222292b -[UIWindow _sendTouchesForEvent:] + 319
16  UIKit                           0x32222319 -[UIWindow sendEvent:] + 381
17  UIKit                           0x32208695 -[UIApplication sendEvent:] + 357
18  UIKit                           0x32207f3b _UIApplicationHandleEvent + 5827
19  GraphicsServices                0x3188f22b PurpleEventCallback + 883
20  CoreFoundation                  0x327b5523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
21  CoreFoundation                  0x327b54c5 __CFRunLoopDoSource1 + 141
22  CoreFoundation                  0x327b4313 __CFRunLoopRun + 1371
23  CoreFoundation                  0x327374a5 CFRunLoopRunSpecific + 301
24  CoreFoundation                  0x3273736d CFRunLoopRunInMode + 105
25  GraphicsServices                0x3188e439 GSEventRunModal + 137
26  UIKit                           0x32236cd5 UIApplicationMain + 1081
27  Buffer                          0x000d8327 0xd6000 + 8999
28  Buffer                          0x000d7dcc 0xd6000 + 7628

I understand that is crashing at substringWithRange: but when does this particular ShortcutConversionSupport method get called? I believe that will help me isolate the issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T11:10:11+00:00Added an answer on June 5, 2026 at 11:10 am

    This is the issue:

    - (UITextRange *)textRangeFromPosition:(UITextPosition *)fromPosition toPosition:(UITextPosition *)toPosition
    {    
    // Generate IndexedPosition instances that wrap the to and from ranges
        IndexedPosition *from = (IndexedPosition *)fromPosition;
        IndexedPosition *to = (IndexedPosition *)toPosition;  
    
        NSRange range = NSMakeRange(MIN(from.index, to.index), ABS(to.index - from.index));
        return [IndexedRange rangeWithNSRange:range];    
    
    }
    

    More specifically: ABS(to.index – from.index)

    The issue is that the compiler thinks that the product of this negation is a NSUInteger because to.index and from.index are both NSUInteger variables (so the value can never be negative). Therefore, if from.index > to.index the value would overflow producing a value that is the max size of a 32 bit uint rather than a negative value. Also note, ABS uses typeof to determine the return value of the product. This is the fix:

    - (UITextRange *)textRangeFromPosition:(UITextPosition *)fromPosition toPosition:(UITextPosition *)toPosition
    {    
        IndexedPosition *from = (IndexedPosition *)fromPosition;
        IndexedPosition *to = (IndexedPosition *)toPosition;  
    
        NSInteger index = to.index - from.index;    
        NSRange range = NSMakeRange(MIN(from.index, to.index), ABS(index));
    
        return [IndexedRange rangeWithNSRange:range];
    
    }
    

    By the way, this only occurs when a user has removed all of the Shortcuts in Settings > General > Keyboard > Shortcuts.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting photos from facebook through graph api with this call: https://graph.facebook.com/[AlbumID]/photos The
This is the section from the CLLocationManager documentation describing the app behavior with startMonitoringSignificantLocationChanges
One immensely useful call in the old REST API is Friends.getAppUsers . This call
I found this call in an app I started managing some time ago: /usr/bin/sftp
I've set a cookie through this call in php setcookie('alert_msg', 'you have the add
Right now I'm able to launch something like the mail app with this call:
At Apple's site, they say: Because this call can potentially take several minutes to
this call my $th = threads->create(\&print, Hello thread World!\n); $th->join(); works fine. But as
I'm using this call to switch image every 4 seconds: - (void) settheimage {
I have identified this call as a bottleneck in a high pressure function. graphics.DrawImage(smallBitmap,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.