ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

NS 7.0 iOS 14.3 onSourceCollectionChanged Crash #1500

Open ganoraa opened 3 years ago

ganoraa commented 3 years ago

Please tell us how to recreate the issue in as much detail as possible.

Using the RadListView as CollectionView when the data sources are ready onSourceCollectionChanged during the execution of line : this.nativeViewProtected.insertItemsAtIndexPaths(nativePaths); go in crash.

1 0x10db402af tns::Assert(bool, v8::Isolate) + 119 2 0x10daa223e tns::ArgConverter::CreateJsWrapper(v8::Local, tns::BaseDataWrapper, v8::Local, bool, std::1::vector<std::1::basic_string<char, std::1::char_traits, std::1::allocator >, std::1::allocator<std::__1::basic_string<char, std::1::char_traits, std::1::allocator > > > const&) + 1702 3 0x10db697b1 tns::Interop::GetResult(v8::Local, tns::TypeEncoding const, tns::BaseCall, bool, std::1::shared_ptr<v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits > >, bool, bool, bool, bool) + 4231 4 0x10daa269f tns::ArgConverter::MethodCallback(ffi_cif, void, void*, void) + 395 5 0x10dbf80a6 ffi_closure_unix64_inner + 662 6 0x10dbf932a ffi_closure_unix64 + 72 7 0x7fff24b7b95d -[UIScrollView _addContentSubview:atBack:] + 567 8 0x7fff23d6e579 -[UICollectionView _addControlledSubview:atZIndex:forced:initialAttributes:] + 602 9 0x7fff23d71936 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 1418 10 0x7fff23d713a6 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:] + 31 11 0x7fff23d92165 78-[UICollectionView _viewAnimationsForCurrentUpdateWithCollectionViewAnimator:]_block_invoke.1953 + 661 12 0x7fff23d8e79f -[UICollectionView _viewAnimationsForCurrentUpdateWithCollectionViewAnimator:] + 5236 13 0x7fff23d967a0 102-[UICollectionView _updateWithItems:tentativelyForReordering:propertyAnimator:collectionViewAnimator:]_block_invoke.2053 + 241 14 0x7fff24be5001 +[UIView(Animation) performWithoutAnimation:] + 84 15 0x7fff23d953a8 -[UICollectionView _updateWithItems:tentativelyForReordering:propertyAnimator:collectionViewAnimator:] + 3989 16 0x7fff23d8cbc7 -[UICollectionView _endItemAnimationsWithInvalidationContext:tentativelyForReordering:animator:collectionViewAnimator:] + 14986 17 0x7fff23d8912c -[UICollectionView _endItemAnimationsWithInvalidationContext:tentativelyForReordering:animator:] + 60 18 0x7fff23d88cb7 -[UICollectionView _updateRowsAtIndexPaths:updateAction:updates:] + 524 19 0x7fff23d88d9a -[UICollectionView insertItemsAtIndexPaths:] + 64 20 0x111e454b6 -[TKCollectionView insertItemsAtIndexPaths:] + 278 21 0x111e4945f 38-[TKListView insertItemsAtIndexPaths:]_block_invoke + 79 22 0x7fff24be682a +[UIView _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 573 23 0x7fff24be6d68 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:animations:completion:] + 74 24 0x111e4935a -[TKListView insertItemsAtIndexPaths:] + 666 25 0x10dbf916d ffi_call_unix64 + 85 26 0x6000002a2480 26 ??? 0x00006000002a2480 0x0 + 105553119028352 JavaScript stack trace: at onSourceCollectionChanged (file: node_modules/nativescript-ui-listview/ui-listview.ios.js:1591:0) at onSourceCollectionChangedInternal (file: node_modules/nativescript-ui-listview/ui-listview.common.js:634:0) at handler (file: node_modules/@nativescript/core/ui/core/weak-event-listener/index.js:31:0) at _handleEvent (file: node_modules/@nativescript/core/data/observable/index.js:231:0) at notify (file: node_modules/@nativescript/core/data/observable/index.js:214:0) at push (file: node_modules/@nativescript/core/data/observable-array/index.js:131:0) at _finishLoadAction (file: src/app/modules/archive-common/container/archive-grid-layout/archive-grid-layout.component.ts:573:27) at _handleResponse (file: src/app/modules/archive-common/container/archive-grid-layout/archive-grid-layout.component.ts:542:25) at (file: src/app/modules/archive-common/container/archive-grid-layout/archive-grid-layout.component.ts:512:57) at push.../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.tryOrUnsub (file: node_modules/rxjs/_esm5/internal/Subscriber.js:192:0)