Skip to content

tns livesync ios --watch, app crashes when I change .css or .xml #1766

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dajk opened this issue May 16, 2016 · 2 comments
Closed

tns livesync ios --watch, app crashes when I change .css or .xml #1766

dajk opened this issue May 16, 2016 · 2 comments

Comments

@dajk
Copy link

dajk commented May 16, 2016

Hi guys,

have a problem with livesync watcher. When I run the app as tns livesync ios --watch and change .css or .xml, app crashes. It happens only on iOS.

This is what I have in console:

Assertion failure in -[TKCollectionView _endItemAnimationsWithInvalidationContext:tentativelyForReordering:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.60.7/UICollectionView.m:4422
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 1   0x6f3c0 -[TNSRuntimeInspector reportFatalError:]
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 2   0x22c10 TNSInspectorUncaughtExceptionHandler
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 3   0x3c6f8ce __handleUncaughtException
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 4   0x372a0ae _objc_terminate()
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 5   0x3ffcd0d std::__terminate(void (*)())
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 6   0x3ffc72b __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*)
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 7   0x3729f23 _objc_exception_destructor(void*)
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 8   0x3c6f32a +[NSException raise:format:arguments:]
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 9   0x1312322 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 10  0x205bff0 -[UICollectionView _endItemAnimationsWithInvalidationContext:tentativelyForReordering:]
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 11  0x205a7b0 -[UICollectionView _endItemAnimationsWithInvalidationContext:]
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 12  0x205a54c -[UICollectionView _updateRowsAtIndexPaths:updateAction:]
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 13  0x205a5e4 -[UICollectionView deleteItemsAtIndexPaths:]
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 14  0x36393bc -[TKCollectionView deleteItemsAtIndexPaths:]
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 15  0x353bc70 __38-[TKListView deleteItemsAtIndexPaths:]_block_invoke
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 16  0x17810c9 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:]
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 17  0x1781679 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:animations:]
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 18  0x353bba3 -[TKListView deleteItemsAtIndexPaths:]
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: 19  0x72c448 ffi_call_i386
May 16 11:07:14 Radovans-MBP tnsfirebasesample[3688]: file:///app/tns_modules/nativescript-telerik-ui/listview/listview.js:884:45: JS ERROR Error: attempt to delete item 3 from section 0 which only contains 3 items before the update
May 16 11:07:14 Radovans-MBP com.apple.CoreSimulator.SimDevice.48544D59-B4D8-4656-907B-98A8468C6C0A.launchd_sim[2957] (UIKitApplication:org.nativescript.topics[0x7ca1][3688]): Service exited due to signal: Segmentation fault: 11

Thanks,
Radovan

@dtopuzov
Copy link
Contributor

dtopuzov commented May 18, 2016

It works for me, can you give some more details:
{N} CLI version and tns-ios version
Xcode version
Device or Simulator?
iOS version

Also you can check if folder and project, it is known issue that we will try to fix for the next release.
See: #1770

@dajk
Copy link
Author

dajk commented May 18, 2016

Hi @dtopuzov

Awesome, thanks!

@dajk dajk closed this as completed May 18, 2016
@dajk dajk reopened this May 18, 2016
@dajk dajk closed this as completed May 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants