chrisfisher / react-native-directed-scrollview

UNMAINTAINED- see below. A natively implemented scrollview component which lets you specify different scroll directions for child content.
MIT License
149 stars 67 forks source link

On scrolling screen freezes in iOS. (Xcode "Thread 1: signal SIGABRT" exception) #19

Closed surendharreddy closed 6 years ago

surendharreddy commented 6 years ago

I'm using this module in my app. Module works fine for Android but I've an issue with iOS.

Issue is the screen freezes whenever I try to scroll the view. Xcode throws an error Thread 1: signal SIGABRT exception. Help me figure it out.

Module version: "react-native-directed-scrollview": "^1.3.1" React Native version: "react-native": "^0.51.0"

Let me know if any extra details are required.

Share my xcode logs here.

2018-01-11 16:31:04.900278+0530 BViewApp[32291:1015594] -[RCTView shouldScrollVertically]: unrecognized selector sent to instance 0x7fb08b4e4770
2018-01-11 16:31:04.906010+0530 BViewApp[32291:1015594] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RCTView shouldScrollVertically]: unrecognized selector sent to instance 0x7fb08b4e4770'
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010fa3812b __exceptionPreprocess + 171
    1   libobjc.A.dylib                     0x000000010dbedf41 objc_exception_throw + 48
    2   CoreFoundation                      0x000000010fab9024 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
    3   UIKit                               0x00000001124cef51 -[UIResponder doesNotRecognizeSelector:] + 295
    4   CoreFoundation                      0x000000010f9baf78 ___forwarding___ + 1432
    5   CoreFoundation                      0x000000010f9ba958 _CF_forwarding_prep_0 + 120
    6   BViewApp                            0x000000010ce57975 -[DirectedScrollView scrollViewDidScroll:] + 501
    7   UIKit                               0x0000000112394e2f -[UIScrollView(UIScrollViewInternal) _notifyDidScroll] + 68
    8   UIKit                               0x000000011237ae87 -[UIScrollView setContentOffset:] + 493
    9   BViewApp                            0x000000010cc6a1a7 -[RCTCustomScrollView setContentOffset:] + 503
    10  UIKit                               0x0000000112380bc6 -[UIScrollView _updatePanGesture] + 2387
    11  UIKit                               0x000000011289c273 -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:] + 57
    12  UIKit                               0x00000001128a528a _UIGestureRecognizerSendTargetActions + 333
    13  UIKit                               0x00000001128a29ba _UIGestureRecognizerSendActions + 307
    14  UIKit                               0x00000001128a1c26 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 1002
    15  UIKit                               0x000000011288699c _UIGestureEnvironmentUpdate + 1329
    16  UIKit                               0x000000011288641f -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:] + 484
    17  UIKit                               0x00000001128854cb -[UIGestureEnvironment _updateGesturesForEvent:window:] + 288
    18  UIKit                               0x0000000112313f14 -[UIWindow sendEvent:] + 4102
    19  UIKit                               0x00000001122b7365 -[UIApplication sendEvent:] + 352
    20  UIKit                               0x0000000112c03a1d __dispatchPreprocessedEventFromEventQueue + 2809
    21  UIKit                               0x0000000112c06672 __handleEventQueueInternal + 5957
    22  CoreFoundation                      0x000000010f9db101 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    23  CoreFoundation                      0x000000010fa7af71 __CFRunLoopDoSource0 + 81
    24  CoreFoundation                      0x000000010f9bfa19 __CFRunLoopDoSources0 + 185
    25  CoreFoundation                      0x000000010f9befff __CFRunLoopRun + 1279
    26  CoreFoundation                      0x000000010f9be889 CFRunLoopRunSpecific + 409
    27  GraphicsServices                    0x00000001165f69c6 GSEventRunModal + 62
    28  UIKit                               0x000000011229b5d6 UIApplicationMain + 159
    29  BViewApp                            0x000000010cbaa04f main + 111
    30  libdyld.dylib                       0x000000011456ed81 start + 1
    31  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 
chrisfisher commented 6 years ago

I'm unable to repro this using the above versions. Did you follow the usage example here?

alexlevy0 commented 6 years ago

+1 Same issue

2018-02-23 17:42:55.915 X[93293:25628869] -[DirectedScrollView setPinchGestureEnabled:]: unrecognized selector sent to instance 0x7fd7a0474660
2018-02-23 17:42:55.935 X[93293:25628869] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[DirectedScrollView setPinchGestureEnabled:]: unrecognized selector sent to instance 0x7fd7a0474660'
*** First throw call stack:
(
    0   CoreFoundation                      0x00000001071ffb0b __exceptionPreprocess + 171
    1   libobjc.A.dylib                     0x00000001060b5141 objc_exception_throw + 48
    2   CoreFoundation                      0x000000010726f134 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
    3   CoreFoundation                      0x0000000107186840 ___forwarding___ + 1024
    4   CoreFoundation                      0x00000001071863b8 _CF_forwarding_prep_0 + 120
    5   X                                   0x00000001053da29e __49-[RCTComponentData createPropBlock:isShadowView:]_block_invoke.155 + 302
    6   X                                   0x00000001053daee1 __49-[RCTComponentData createPropBlock:isShadowView:]_block_invoke.167 + 785
    7   X                                   0x00000001053db5f8 __49-[RCTComponentData propBlockForKey:isShadowView:]_block_invoke_2 + 40
    8   X                                   0x000000010536d073 RCTPerformBlockWithLogFunction + 483
    9   X                                   0x000000010536d22f RCTPerformBlockWithLogPrefix + 239
    10  X                                   0x00000001053db55d __49-[RCTComponentData propBlockForKey:isShadowView:]_block_invoke + 445
    11  X                                   0x00000001053dba3c __37-[RCTComponentData setProps:forView:]_block_invoke + 156
    12  CoreFoundation                      0x00000001071885ff __65-[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:]_block_invoke + 111
    13  CoreFoundation                      0x00000001071884fa -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 202
    14  X                                   0x00000001053db8bf -[RCTComponentData setProps:forView:] + 223
    15  X                                   0x00000001053c15f2 __50-[RCTUIManager createView:viewName:rootTag:props:]_block_invoke + 162
    16  X                                   0x000000010538473d __RCTExecuteOnMainQueue_block_invoke + 29
    17  libdispatch.dylib                   0x000000010b4a34a6 _dispatch_call_block_and_release + 12
    18  libdispatch.dylib                   0x000000010b4cc05c _dispatch_client_callout + 8
    19  libdispatch.dylib                   0x000000010b4ad40b _dispatch_main_queue_callback_4CF + 411
    20  CoreFoundation                      0x00000001071c4909 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
    21  CoreFoundation                      0x000000010718aae4 __CFRunLoopRun + 2164
    22  CoreFoundation                      0x000000010718a016 CFRunLoopRunSpecific + 406
    23  GraphicsServices                    0x000000010c12ba24 GSEventRunModal + 62
    24  UIKit                               0x0000000109b35134 UIApplicationMain + 159
    25  X                                   0x000000010524922f main + 111
    26  libdyld.dylib                       0x000000010b51865d start + 1
    27  ???                                 0x0000000000000001 0x0 + 1
chrisfisher commented 6 years ago

@alexlevy0 Fixed in 1.3.6

stokesbga commented 6 years ago

Im still getting this on 1.3.6 only with vertical scroll. I tried to reproduce the example, but both scroll does not work - only horizontal. When a vertical scroll is by itself, then crash happens.

stokesbga commented 6 years ago

HELP !!!! :((((