Open NathanWalker opened 5 years ago
Worth mentioning that even with "discardUncaughtJsExceptions": true,
enabled in src/package.json, this exception still gets through and causes an app crash.
Can you provide a runnable sample project that and the steps required to reproduce this error. Also what iOS version is this happening on?
iOS 13 and 12 - I’ll have to see about a sample project
@NathanWalker ever found a solution for this error? Having the same issue...
I am having the same issue.
On iOS 12 the app crashes with the exception provided by @NathanWalker .
On iOS 13 the app does not crash, but I the following error in the console:
Binding: Binding error while setting property loadOnDemandMode of RadListView
@list-page.xml:8:5;: Error: the view returned from -collectionView:viewForSupplementaryElementOfKind:atIndexPath (UICollectionElementKindSectionFooter,<NSIndexPath: 0xa398697cc0178f89> {length = 2, path = 0 - 0}) was not retrieved by calling -dequeueReusableSupplementaryViewOfKind:withReuseIdentifier:forIndexPath: or is nil ((null))
The sample app with latest @nativescript/core (6.5.8) and nativescript-ui-listview (8.2.0) can be found here: RlvLoadOnDemandIssueIOS.zip
For me, a "solution" is to remove the footer view from my XML. When commenting the footer view in the sample app and the crash does not occur anymore.
edit: And the header needs to be removed as well, otherwise tha app crashes as well!
Tell us about the problem
Occasionally changing loadOnDemandMode will cause app crash.
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
Please tell us how to recreate the issue in as much detail as possible.
Seems to either be a race condition or just result of frail setup. Seems to occur at random when changing loadOnDemandMode at various times.