You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/11/27 01:33:00 UTC

[jira] [Commented] (WEEX-145) Crash in WXScrollerComponent scrollViewDidScroll,Collection was mutated while being enumerated

    [ https://issues.apache.org/jira/browse/WEEX-145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16266288#comment-16266288 ] 

ASF GitHub Bot commented on WEEX-145:
-------------------------------------

GitHub user linkhui opened a pull request:

    https://github.com/apache/incubator-weex/pull/910

    [WEEX-145][iOS]fix: Crash in WXScrollerComponent scrollViewDidScroll,…

    WXScrollerComponent scrollViewDidScroll, Collection NSHashTable was mutated while being enumerated
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/linkhui/incubator-weex scroll_bugfix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-weex/pull/910.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #910
    
----
commit d052e0682b04c9a69bf9685a034006538b6c52aa
Author: 弈启 <wi...@alibaba-inc.com>
Date:   2017-11-24T09:03:00Z

    [WEEX-145][iOS]fix: Crash in WXScrollerComponent scrollViewDidScroll,Collection NSHashTable was mutated while being enumerated

----


> Crash in WXScrollerComponent scrollViewDidScroll,Collection was mutated while being enumerated
> ----------------------------------------------------------------------------------------------
>
>                 Key: WEEX-145
>                 URL: https://issues.apache.org/jira/browse/WEEX-145
>             Project: Weex
>          Issue Type: Bug
>          Components: iOS
>         Environment: OS Version:          iPhone OS 10.3.3
>            Reporter: lihui
>            Assignee: Adam Feng
>   Original Estimate: 8h
>  Remaining Estimate: 8h
>
> we use scroll component and parallax in our page. When we pull to refresh, sometime we got a crash. The stack like this :
> Exception Type:  SIGABRT
> Exception Codes: #0 at 0x1828d5014
> Triggered by Thread:  0
> Application Specific Information:
> *** Terminating app due to uncaught exception 'NSGenericException', reason: '*** Collection <NSConcreteHashTable: 0x170320000> was mutated while being enumerated.'
> Last Exception Backtrace:
> 0   CoreFoundation                  0x00000001838dafe0 __exceptionPreprocess :124 (in CoreFoundation)
> 1   libobjc.A.dylib                 0x000000018233c538 _objc_exception_throw :56 (in libobjc.A.dylib)
> 2   CoreFoundation                  0x00000001838daa30 __NSFastEnumerationMutationHandler :128 (in CoreFoundation)
> 3   Foundation                      0x00000001842cd3cc -[NSConcreteHashTable countByEnumeratingWithState:objects:count:] :72 (in Foundation)
> 4   Youku4iPhoneWithoutExtension    0x0000000101936e88 -[WXScrollerComponent scrollViewDidScroll:] WXScrollerComponent.m:551 (in Youku4iPhoneWithoutExtension)
> 5   Youku4iPhoneWithoutExtension    0x00000001019a99d0 -[WXListComponent scrollViewDidScroll:] WXListComponent.m:630 (in Youku4iPhoneWithoutExtension)
> 6   UIKit                           0x0000000189d1e46c -[UIScrollView(UIScrollViewInternal) _notifyDidScroll] :76 (in UIKit)
> 7   UIKit                           0x0000000189a2a84c -[UIScrollView setContentOffset:] :436 (in UIKit)
> 8   Youku4iPhoneWithoutExtension    0x000000010174ba90 -[UIScrollView(UTViewExposure) utexposure_setContentOffset:] :40 (in Youku4iPhoneWithoutExtension)
> 9   UIKit                           0x0000000189ae11dc -[UITableView setContentOffset:] :272 (in UIKit)
> 10  Youku4iPhoneWithoutExtension    0x00000001019a5b2c -[WXTableView setContentOffset:] WXListComponent.m:63 (in Youku4iPhoneWithoutExtension)
> 11  UIKit                           0x0000000189bbbaa0 -[UIScrollViewScrollAnimation setProgress:] :284 (in UIKit)
> 12  UIKit                           0x0000000189bbb790 -[UIAnimator(Static) _advanceAnimationsOfType:withTimestamp:] :280 (in UIKit)
> 13  QuartzCore                      0x0000000186aed5dc CA::Display::DisplayLinkItem::dispatch(unsigned long long) :44 (in QuartzCore)
> 14  QuartzCore                      0x0000000186aed48c CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) :436 (in QuartzCore)
> 15  IOKit                           0x0000000183b47b9c 0x0000000183b42000 + 23452
> 16  CoreFoundation                  0x0000000183871960 __CFMachPortPerform :180 (in CoreFoundation)
> 17  CoreFoundation                  0x0000000183889ae4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ :56 (in CoreFoundation)
> 18  CoreFoundation                  0x0000000183889284 __CFRunLoopDoSource1 :436 (in CoreFoundation)
> 19  CoreFoundation                  0x0000000183886d98 __CFRunLoopRun :1752 (in CoreFoundation)
> 20  CoreFoundation                  0x00000001837b6da4 _CFRunLoopRunSpecific :424 (in CoreFoundation)
> 21  GraphicsServices                0x0000000185221074 _GSEventRunModal :100 (in GraphicsServices)
> 22  UIKit                           0x0000000189a71c9c _UIApplicationMain :208 (in UIKit)
> 23  Youku4iPhoneWithoutExtension    0x00000001000f948c main main.m:24 (in Youku4iPhoneWithoutExtension)
> 24  libdyld.dylib                   0x00000001827c559c _start :4 (in libdyld.dylib)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)