robbiehanson / XMPPFramework

An XMPP Framework in Objective-C for Mac and iOS
Other
5.91k stars 2.09k forks source link

xmppRosterDidChange crash #475

Open kittu4ios opened 9 years ago

kittu4ios commented 9 years ago

Hi i am using XMPP framework in my app and i am new to XMPP. When

} row count=112 An uncaught exception was raised -[NSArrayM objectAtIndex:]: index 18446744073709551615 beyond bounds [0 .. 111] ( 0 CoreFoundation 0x00007fff8ef5525c exceptionPreprocess + 172 1 libobjc.A.dylib 0x00007fff8b515e75 objc_exception_throw + 43 2 CoreFoundation 0x00007fff8ee334f5 -[NSArrayM objectAtIndex:] + 245 3 BirdsBeep 0x0000000100042147 -[HomeViewController tableViewSelectionDidChange:] + 199 4 CoreFoundation 0x00007fff8ef23e0c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12 5 CoreFoundation 0x00007fff8ee1782d _CFXNotificationPost + 2893 6 Foundation 0x00007fff8657de4a -[NSNotificationCenter postNotificationName:object:userInfo:] + 68 7 AppKit 0x00007fff8859fabf -[NSTableView _sendSelectionChangedNotificationForRows:columns:] + 177 8 AppKit 0x00007fff884cc354 -[NSTableView _enableSelectionPostingAndPost] + 406 9 AppKit 0x00007fff8859f427 -[NSTableView doSelectIndexes:byExtendingSelection:indexType:funnelThroughSingleIndexVersion:] + 2706 10 BirdsBeep 0x0000000100044083 -[HomeViewController xmppRosterDidChange:] + 611 11 CoreFoundation 0x00007fff8ee409ac invoking + 140 12 CoreFoundation 0x00007fff8ee40814 -[NSInvocation invoke] + 308 13 CoreFoundation 0x00007fff8eee3466 -[NSInvocation invokeWithTarget:] + 54 14 BirdsBeep 0x00000001000d376b 42-[GCDMulticastDelegate forwardInvocation:]_block_invoke + 59 15 libdispatch.dylib 0x000000010036232d _dispatch_call_block_and_release + 12 16 libdispatch.dylib 0x000000010035e925 _dispatch_client_callout + 8 17 libdispatch.dylib 0x00000001003683cd _dispatch_main_queue_callback_4CF + 607 18 CoreFoundation 0x00007fff8eebc4f9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 19 CoreFoundation 0x00007fff8ee77714 __CFRunLoopRun + 1636 20 CoreFoundation 0x00007fff8ee76e75 CFRunLoopRunSpecific + 309 21 HIToolbox 0x00007fff8d83ba0d RunCurrentEventLoopInMode + 226 22 HIToolbox 0x00007fff8d83b7b7 ReceiveNextEventCommon + 479 23 HIToolbox 0x00007fff8d83b5bc _BlockUntilNextEventMatchingListInModeWithFilter + 65 24 AppKit 0x00007fff8846024e _DPSNextEvent + 1434 25 AppKit 0x00007fff8845f89b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122 26 AppKit 0x00007fff8845399c -[NSApplication run] + 553 27 AppKit 0x00007fff8843e783 NSApplicationMain + 940 28 BirdsBeep 0x000000010014b872 main + 34 29 libdyld.dylib 0x00007fff92ea75fd start + 1 30

kittu4ios commented 9 years ago

First time its loading table fine. But after some time its getting crash..

ObjColumnist commented 9 years ago

What do you do in tableViewSelectionDidChange:?

Im guessing it is something to do with table view requesting a user that is no longer there.