Skip to content

Exception when reconnecting too quickly #116

@thedjinn

Description

@thedjinn

When reconnecting the stream too often Twitter prevents you from opening new streaming connections for a short while. When this is happening STTwitter crashes with the following trace:

2014-08-04 15:06:58.659 SocialScreen[76808:303] -[__NSCFConstantString objectForKeyedSubscript:]: unrecognized selector sent to instance 0x7fff7b8209c0
2014-08-04 15:06:58.660 SocialScreen[76808:303] -[__NSCFConstantString objectForKeyedSubscript:]: unrecognized selector sent to instance 0x7fff7b8209c0
2014-08-04 15:06:58.662 SocialScreen[76808:303] (
    0   CoreFoundation                      0x00007fff947d725c __exceptionPreprocess + 172
    1   libobjc.A.dylib                     0x00007fff8dbf8e75 objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff947da12d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
    3   CoreFoundation                      0x00007fff947353f2 ___forwarding___ + 1010
    4   CoreFoundation                      0x00007fff94734f78 _CF_forwarding_prep_0 + 120
    5   SocialScreen                        0x0000000100021417 -[SSTwitterSource processTweet:] + 71
    6   SocialScreen                        0x000000010001fc03 __26-[SSTwitterSource connect]_block_invoke_2 + 115
    7   SocialScreen                        0x0000000100066133 __147-[STTwitterAPI postStatusesFilterUserIDs:keywordsToTrack:locationBoundingBoxes:delimited:stallWarnings:progressBlock:stallWarningBlock:errorBlock:]_block_invoke626 + 115
    8   SocialScreen                        0x000000010005827a __120-[STTwitterAPI postResource:baseURLString:parameters:uploadProgressBlock:downloadProgressBlock:successBlock:errorBlock:]_block_invoke134 + 186
    9   SocialScreen                        0x00000001000b3a7c -[STTwitterOSRequest connectionDidFinishLoading:] + 1148
    10  Foundation                          0x00007fff92eb47fd __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 48
    11  Foundation                          0x00007fff92eb472d -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 244
    12  Foundation                          0x00007fff92eb461c -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 69
    13  CFNetwork                           0x00007fff948fe304 ___ZN27URLConnectionClient_Classic26_delegate_didFinishLoadingEU13block_pointerFvvE_block_invoke + 104
    14  CFNetwork                           0x00007fff949b47b0 ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 84
    15  CFNetwork                           0x00007fff948e140c ___ZNK17CoreSchedulingSet13_performAsyncEPKcU13block_pointerFvvE_block_invoke + 25
    16  CoreFoundation                      0x00007fff946d3cd4 CFArrayApplyFunction + 68
    17  CFNetwork                           0x00007fff948e12eb _ZN19RunloopBlockContext7performEv + 115
    18  CFNetwork                           0x00007fff948e1193 _ZN17MultiplexerSource7performEv + 269
    19  CFNetwork                           0x00007fff948e0fc2 _ZN17MultiplexerSource8_performEPv + 72
    20  CoreFoundation                      0x00007fff94708731 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    21  CoreFoundation                      0x00007fff946f9ea2 __CFRunLoopDoSources0 + 242
    22  CoreFoundation                      0x00007fff946f962f __CFRunLoopRun + 831
    23  CoreFoundation                      0x00007fff946f90b5 CFRunLoopRunSpecific + 309
    24  HIToolbox                           0x00007fff89d5ca0d RunCurrentEventLoopInMode + 226
    25  HIToolbox                           0x00007fff89d5c685 ReceiveNextEventCommon + 173
    26  HIToolbox                           0x00007fff89d5c5bc _BlockUntilNextEventMatchingListInModeWithFilter + 65
    27  AppKit                              0x00007fff94a543de _DPSNextEvent + 1434
    28  AppKit                              0x00007fff94a53a2b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
    29  AppKit                              0x00007fff94a47b2c -[NSApplication run] + 553
    30  AppKit                              0x00007fff94a32913 NSApplicationMain + 940
    31  SocialScreen                        0x000000010002a322 main + 34
    32  libdyld.dylib                       0x00007fff9418c5fd start + 1
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions