Skip to content

examples/ASCollectionView not working for SIMULATE_WEB_RESPONSE mode #449

Closed

Description

@wsdwsd0829

// If you're looking for help, please consider joining our slack channel:
// http://asyncdisplaykit.org/slack (we'll be updating the name to Texture soon)

// The more information you include, the faster we can help you out!
// Please include: a sample project or screenshots, code snippets
// Texture version, and/or backtraces for any crashes (> bt all).
// Please delete these lines before posting. Thanks!

Activity

  1. Huang-Libo commented on Jul 19, 2017

    @Huang-Libo

    same problem, on Xcode 8.3.2, iPhone 7 simulator.

    objc[2980]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x10ea3acc0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x10e8516f0). One of the two will be used. Which one is undefined.
    2017-07-19 10:48:32.265447+0800 Sample[2980:66439] [Collection] Initial reloadData <ASCollectionNode: 0x7fcd81104850>
    2017-07-19 10:48:32.274961+0800 Sample[2980:66439] [Collection] New content: { itemCounts = [ <S0: 10> <S1: 10> <S2: 10> <S3: 10> <S4: 10> <S5: 10> <S6: 10> <S7: 10> <S8: 10> <S9: 10> <S10: 10> <S11: 10> <S12: 10> <S13: 10> <S14: 10> <S15: 10> <S16: 10> <S17: 10> <S18: 10> <S19: 10> <S20: 10> <S21: 10> <S22: 10> <S23: 10> <S24: 10> <S25: 10> <S26: 10> <S27: 10> <S28: 10> <S29: 10> <S30: 10> <S31: 10> <S32: 10> <S33: 10> <S34: 10> <S35: 10> <S36: 10> <S37: 10> <S38: 10> <S39: 10> <S40: 10> <S41: 10> <S42: 10> <S43: 10> <S44: 10> <S45: 10> <S46: 10> <S47: 10> <S48: 10> <S49: 10> <S50: 10> <S51: 10> <S52: 10> <S53: 10> <S54: 10> <S55: 10> <S56: 10> <S57: 10> <S58: 10> <S59: 10> <S60: 10> <S61: 10> <S62: 10> <S63: 10> <S64: 10> <S65: 10> <S66: 10> <S67: 10> <S68: 10> <S69: 10> <S70: 10> <S71: 10> <S72: 10> <S73: 10> <S74: 10> <S75: 10> <S76: 10> <S77: 10> <S78: 10> <S79: 10> <S80: 10> <S81: 10> <S82: 10> <S83: 10> <S84: 10> <S85: 10> <S86: 10> <S87: 10> <S88: 10> <S89: 10> <S90: 10> <S91: 10> <S92: 10> <S93: 10> <S94: 10> <S95: 10> <S96: 10> <S97: 10> <S98: 10> <S99: 10> ] }
    2017-07-19 10:48:32.285944+0800 Sample[2980:66587] [Collection] Beginning batch fetch for <ASCollectionNode: 0x7fcd81104850> with context <ASBatchContext: 0x60000009bf30>
    2017-07-19 10:48:32.286 Sample[2980:66587] fetch additional content
    2017-07-19 10:48:32.286423+0800 Sample[2980:66587] [Collection] Completed batch fetch with context <ASBatchContext: 0x60000009bf30>
    2017-07-19 10:48:32.474973+0800 Sample[2980:66439] [Collection] Did reloadData <ASCollectionNode: 0x7fcd81104850>
    2017-07-19 10:48:32.484 Sample[2980:66439] *** Assertion failure in -[ASCollectionView collectionView:viewForSupplementaryElementOfKind:atIndexPath:], /Users/huanglibo/repository/github/Texture/Source/ASCollectionView.mm:1049
    2017-07-19 10:48:32.498 Sample[2980:66439] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Supplementary node should exist.  Kind = UICollectionElementKindSectionFooter, indexPath = <NSIndexPath: 0xc000000000000016> {length = 2, path = 0 - 0}, collectionDataSource = <ASCollectionView: 0x7fcd83007000; baseClass = UICollectionView; frame = (0 0; 375 667); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x60000004c2a0>; layer = <ASCollectionNode-Layer: 0x60000004a560; node = <ASCollectionNode: 0x7fcd81104850>>; contentOffset: {0, -64}; contentSize: {375, 35750}> collection view layout: <UICollectionViewFlowLayout: 0x7fcd811009b0>'
    *** First throw call stack:
    (
    	0   CoreFoundation                      0x00000001044c9b0b __exceptionPreprocess + 171
    	1   libobjc.A.dylib                     0x0000000103bbe141 objc_exception_throw + 48
    	2   CoreFoundation                      0x00000001044cdcf2 +[NSException raise:format:arguments:] + 98
    	3   Foundation                          0x000000010125e3b6 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
    	4   Sample                              0x0000000100b9798c -[ASCollectionView collectionView:viewForSupplementaryElementOfKind:atIndexPath:] + 1100
    	5   UIKit                               0x00000001026d55ad -[UICollectionView _createPreparedSupplementaryViewForElementOfKind:atIndexPath:withLayoutAttributes:applyAttributes:] + 693
    	6   UIKit                               0x00000001026d9a6b -[UICollectionView _updateVisibleCellsNow:] + 4798
    	7   UIKit                               0x00000001026df41a -[UICollectionView layoutSubviews] + 313
    	8   Sample                              0x0000000100b9e804 -[ASCollectionView layoutSubviews] + 612
    	9   UIKit                               0x0000000101e6620b -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1268
    	10  QuartzCore                          0x000000010562b904 -[CALayer layoutSublayers] + 146
    	11  Sample                              0x0000000100b3587d -[_ASDisplayLayer layoutSublayers] + 397
    	12  QuartzCore                          0x000000010561f526 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 370
    	13  QuartzCore                          0x000000010561f3a0 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
    	14  QuartzCore                          0x00000001055aee92 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 294
    	15  QuartzCore                          0x00000001055db130 _ZN2CA11Transaction6commitEv + 468
    	16  QuartzCore                          0x00000001055dbb37 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 115
    	17  CoreFoundation                      0x000000010446f717 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    	18  CoreFoundation                      0x000000010446f687 __CFRunLoopDoObservers + 391
    	19  CoreFoundation                      0x0000000104454720 __CFRunLoopRun + 1200
    	20  CoreFoundation                      0x0000000104454016 CFRunLoopRunSpecific + 406
    	21  GraphicsServices                    0x0000000108729a24 GSEventRunModal + 62
    	22  UIKit                               0x0000000101da30d4 UIApplicationMain + 159
    	23  Sample                              0x0000000100ac5f9f main + 111
    	24  libdyld.dylib                       0x000000010591265d start + 1
    	25  ???                                 0x0000000000000001 0x0 + 1
    )
    libc++abi.dylib: terminating with uncaught exception of type NSException
    
  2. nguyenhuy commented on Aug 14, 2017

    @nguyenhuy
    Member

    I'm closing this issue since both problems have been addressed. Thank you, @wsdwsd0829 and @Huang-Libo!

  3. added a commit that references this issue on Sep 16, 2017
  4. akerdi commented on Apr 16, 2018

    @akerdi

    same problem in Texture 2.6
    It happen when collectionlayout.headerReferenceSize is seted.
    when i remove this line, project goes on.
    flowLayout.headerReferenceSize = CGSizeMake(Main_Screen_Width, 169 * Scale375);

  5. 37 remaining items

  6. added a commit that references this issue on Nov 7, 2018
  7. added a commit that references this issue on Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions