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 when loading SDCycleScrollView #58

Open
LawrenceHan opened this issue Sep 18, 2015 · 4 comments
Open

Crash when loading SDCycleScrollView #58

LawrenceHan opened this issue Sep 18, 2015 · 4 comments

Comments

@LawrenceHan
Copy link

报错信息如下

�[fg214,57,30;2015-09-18 21:51:26:558 CareVoice[10985:197567] CRASH: attempt to scroll to invalid index path: <NSIndexPath: 0xc000000000400016> {length = 2, path = 0 - 2}
�[;�[fg214,57,30;2015-09-18 21:51:26:559 CareVoice[10985:197567] Stack Trace: (
    0   CoreFoundation                      0x000000010ac26f65 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x000000010a27edeb objc_exception_throw + 48
    2   CoreFoundation                      0x000000010ac26e9d +[NSException raise:format:] + 205
    3   UIKit                               0x000000010915456b -[UICollectionView scrollToItemAtIndexPath:atScrollPosition:animated:] + 220
    4   CareVoice                           0x000000010665ceb6 -[SDCycleScrollView automaticScroll] + 550
    5   Foundation                          0x0000000107c3e671 __NSFireTimer + 83
    6   CoreFoundation                      0x000000010ab87364 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
    7   CoreFoundation                      0x000000010ab86f11 __CFRunLoopDoTimer + 1089
    8   CoreFoundation                      0x000000010ab488b1 __CFRunLoopRun + 1937
    9   CoreFoundation                      0x000000010ab47e98 CFRunLoopRunSpecific + 488
    10  GraphicsServices                    0x000000010d59aad2 GSEventRunModal + 161
    11  UIKit                               0x000000010893d676 UIApplicationMain + 171
    12  CareVoice                           0x000000010633d0af main + 111
    13  libdyld.dylib                       0x000000010be0e92d start + 1
    14  ???                                 0x0000000000000001 0x0 + 1

如果给我权限,我可以尝试修复这个问题,另外有考虑过用AFNetworking或Kingfisher做网络请求缓存图片嘛?

排了一下,应该是这里出错了

messages image 2391817547

@gsdios

@gsdios
Copy link
Owner

gsdios commented Oct 7, 2015

具体在什么条件下出现的这种bug呢?

@LawrenceHan
Copy link
Author

启动app时,第一次加载SDCycleScrollView

@ReizSoon
Copy link

发现类似的问题,请问这个问题解决了吗?

@zslzhappy
Copy link

我的是在同一个view上使用了2个SDCycleScrollView,会导致奔溃,只使用1个SDCycleScrollView没有出现问题

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

No branches or pull requests

4 participants