Giter Site home page Giter Site logo

Assertion failure about fspagerview HOT 2 CLOSED

wenchaod avatar wenchaod commented on May 19, 2024
Assertion failure

from fspagerview.

Comments (2)

WenchaoD avatar WenchaoD commented on May 19, 2024

Fixed. Thanks for posting this.

from fspagerview.

networkharry04 avatar networkharry04 commented on May 19, 2024

Hi,

I am facing crash issue as mentioned below when i try to run - Here are my findings -

I have set - self.pagerView.itemSize = CGSize(width: self.pagerView.frame.width-700, height: self.pagerView.frame.height-250)

My images array contain 15 items , that i need to load using this library. But when I debug the issue and print method names and index path where it is crashing - it run till index path [0,8] and then crash , please help me to figure out the issue.

layoutAttributesForElements ->> [0, 0]
layoutAttributesForItem - >> [0, 0]
layoutAttributesForElements ->> [0, 1]
layoutAttributesForItem - >> [0, 1]
layoutAttributesForElements ->> [0, 2]
layoutAttributesForItem - >> [0, 2]
layoutAttributesForElements ->> [0, 3]
layoutAttributesForItem - >> [0, 3]
layoutAttributesForElements ->> [0, 4]
layoutAttributesForItem - >> [0, 4]
layoutAttributesForElements ->> [0, 5]
layoutAttributesForItem - >> [0, 5]
layoutAttributesForElements ->> [0, 6]
layoutAttributesForItem - >> [0, 6]
layoutAttributesForElements ->> [0, 7]
layoutAttributesForItem - >> [0, 7]
layoutAttributesForElements ->> [0, 8]
layoutAttributesForItem - >> [0, 8]

*** Assertion failure in -[UICollectionViewData validateLayoutInRect:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore/UIKit-3698.94.9/UICollectionViewData.m:447
2019-01-25 00:23:08.137028+0530 GWG[6133:2386201] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UICollectionView received layout attributes for a cell with an index path that does not exist: <NSIndexPath: 0x282b72ea0> {length = 2, path = 0 - 0}'

Thank you in advance.

from fspagerview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.