TextureGroup / Texture

Smooth asynchronous user interfaces for iOS apps.
https://texturegroup.org/
Other
8.02k stars 1.29k forks source link

Crash due to returned a layout spec that contains the same elements in multiple positions #1899

Open rastogipc opened 4 years ago

rastogipc commented 4 years ago

I have app for iOS platform and implemented Texture via Pod in application. It was working earlier now getting crash continuously.

I am using version Texture 3.0 latest one. e.g. pod 'Texture'

Also added supported lib for Texture.

I am getting constantly crash but getting why.

I have tried all ways which are required for it.

2020-08-20 16:48:52.996421+0530 Molitics[46659:3725269] Assertion failure in -[.MoreImageCellNode calculateLayoutLayoutSpec:], /Pods/Texture/Source/ASDisplayNode+LayoutSpec.mm:68 2020-08-20 16:48:53.020477+0530 Molitics[46659:3725269] Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Node <*.MoreImageCellNode: 0x7f85b0a97400> returned a layout spec that contains the same elements in multiple positions. Elements: NSHashTable { [1] <ASNetworkImageNode: 0x7f85b0a96600> } ' *** First throw call stack: ( 0 CoreFoundation 0x000000010e63b8db exceptionPreprocess + 331 1 libobjc.A.dylib 0x00000001137caac5 objc_exception_throw + 48 2 CoreFoundation 0x000000010e63b662 +[NSException raise:format:arguments:] + 98 3 Foundation 0x000000010fc2b76b -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194 4 AsyncDisplayKit 0x000000010cfe3a2b -[ASDisplayNode(ASLayoutSpec) calculateLayoutLayoutSpec:] + 1243 5 AsyncDisplayKit 0x000000010d00bb79 -[ASDisplayNode calculateLayoutThatFits:] + 937 6 AsyncDisplayKit 0x000000010d00b60e -[ASDisplayNode calculateLayoutThatFits:restrictedToSize:relativeToParentSize:] + 574 7 AsyncDisplayKit 0x000000010cfd7359 -[ASDisplayNode(ASLayoutElement) layoutThatFits:parentSize:] + 2441 8 AsyncDisplayKit 0x000000010cfd69c7 -[ASDisplayNode(ASLayoutElement) layoutThatFits:] + 135 9 AsyncDisplayKit 0x000000010cfba9f2 -[ASDataController _layoutNode:withConstrainedSize:] + 1106 10 AsyncDisplayKit 0x000000010cfba49e __47-[ASDataController _allocateNodesFromElements:]_block_invoke + 958 11 AsyncDisplayKit 0x000000010cfceb5d ASDispatchApply_block_invoke + 93 12 libdispatch.dylib 0x0000000115514d7f _dispatch_call_block_and_release + 12 13 libdispatch.dylib 0x0000000115515db5 _dispatch_client_callout + 8 14 libdispatch.dylib 0x00000001155269b9 _dispatch_root_queue_drain + 1254 15 libdispatch.dylib 0x0000000115526fca _dispatch_worker_thread2 + 130 16 libsystem_pthread.dylib 0x00000001159079f7 _pthread_wqthread + 220 17 libsystem_pthread.dylib 0x0000000115906b77 start_wqthread + 15 ) libc++abi.dylib: terminating with uncaught exception of type NSException api start

Need Help ASAP because my product is stop for release at iTune Store.

harri121 commented 4 years ago

Check where you're using the same layout element in two different layout specs. It's not possible to have the same element in two positions as the error code also states.

rastogipc commented 4 years ago

Check where you're using the same layout element in two different layout specs. It's not possible to have the same element in two positions as the error code also states.

I am not able to identified for layout duplication. Please make it clear more.

rastogipc commented 4 years ago

Where I have to look inside code.

harri121 commented 4 years ago

In func layoutSpecThatFits(_:)