Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash while trying to swipe on table cell #16

Closed
purepure opened this issue Oct 18, 2014 · 4 comments
Closed

Crash while trying to swipe on table cell #16

purepure opened this issue Oct 18, 2014 · 4 comments

Comments

@purepure
Copy link

Your anim is really cool, I love its and would like to integrate into my project. Everything is ok, but while I trying to swipe quickly on table view cell, it crash. Here is the log and screenshot

screen shot 2014-10-18 at 11 16 34 pm

Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 4294967295 beyond bounds [0 .. 0]'
*** First throw call stack:
(
    0   CoreFoundation                      0x01476df6 __exceptionPreprocess + 182
    1   libobjc.A.dylib                     0x01100a97 objc_exception_throw + 44
    2   CoreFoundation                      0x0135a1b2 -[__NSArrayI objectAtIndex:] + 210
    3   CoreFoundation                      0x013c5538 -[NSArray objectAtIndexedSubscript:] + 40
    4                               0x00076562 -[AMWaveTransition handlePan:] + 562
    5   UIKit                               0x01c65d27 _UIGestureRecognizerSendActions + 327
    6   UIKit                               0x01c645a4 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 561
    7   UIKit                               0x01c665ed -[UIGestureRecognizer _delayedUpdateGesture] + 60
    8   UIKit                               0x01c69f6a ___UIGestureRecognizerUpdate_block_invoke661 + 57
    9   UIKit                               0x01c69e2d _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 317
    10  UIKit                               0x01c5dd36 _UIGestureRecognizerUpdate + 3720
    11  UIKit                               0x0187971b -[UIWindow _sendGesturesForEvent:] + 1356
    12  UIKit                               0x0187a57f -[UIWindow sendEvent:] + 769
    13  UIKit                               0x0183faa9 -[UIApplication sendEvent:] + 242
    14  UIKit                               0x0184f8de _UIApplicationHandleEventFromQueueEvent + 20690
    15  UIKit                               0x01824079 _UIApplicationHandleEventQueue + 2206
    16  CoreFoundation                      0x0139a7bf __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
    17  CoreFoundation                      0x013902cd __CFRunLoopDoSources0 + 253
    18  CoreFoundation                      0x0138f828 __CFRunLoopRun + 952
    19  CoreFoundation                      0x0138f1ab CFRunLoopRunSpecific + 443
    20  CoreFoundation                      0x0138efdb CFRunLoopRunInMode + 123
    21  GraphicsServices                    0x0480224f GSEventRunModal + 192
    22  GraphicsServices                    0x0480208c GSEventRun + 104
    23  UIKit                               0x01827e16 UIApplicationMain + 1526
    24  Funclip                             0x0002c7ad main + 141
    25  libdyld.dylib                       0x0319dac9 start + 1
    26  ???                                 0x00000001 0x0 + 1
)

Hope you can take a look and fix
Thank

@andreamazz
Copy link
Owner

Hi @purepure
This looks like a problem in your implementation of the visibleCells method, since it's an array out of bounds.
If not, can you reproduce the issue in the sample project?

@purepure
Copy link
Author

hm, I dont think so because It occur with your sample code too

andreamazz added a commit that referenced this issue Nov 23, 2014
@andreamazz
Copy link
Owner

I can't reproduce the issue, which device are you using? I tried in the simulator and on an iPhone 6.
Anyway, checkout commit baf1cc1 for a possible (and blind) fix.

@andreamazz
Copy link
Owner

Closing this since I got no further feedback. Feel free to reopen it if the issue is still present.

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

No branches or pull requests

2 participants