Under Review
Last Updated: 07 Mar 2025 07:49 by Malcolm
Malcolm
Created on: 28 Feb 2025 15:36
Category: CollectionView
Type: Bug Report
2
Crash for RadCollectionView
Our error reporting is getting multiple of these crashes:
Message: Object reference not set to an instance of an object
Telerik.Maui.Data.LocalDataSourceProvider.ProcessCollectionChanged(NotifyCollectionChangedEventArgs e)
Telerik.Maui.Data.LocalDataSourceProvider.ProcessPendingChanges()
Telerik.Maui.Data.LocalDataSourceProvider.OnCompleted(Object sender, DataEngineCompletedEventArgs e)
Telerik.Maui.Data.ParallelDataEngine.RaiseCompleted(DataEngineCompletedEventArgs args)
Telerik.Maui.Data.ParallelDataEngine.ProcessBottomLevelsParallel(Task`1 bottomLevelResultsTask, ParallelState parallelState)
Telerik.Maui.Data.ParallelDataEngine+<>c__DisplayClass102_0.<BeginParallelProcessing>b__1(Task`1 task)
System.Threading.Tasks.ContinuationTaskFromResultTask`1[[Telerik.Maui.Data.ParallelDataEngine+GroupingResults, Telerik.Maui.Core, Version=10.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].InnerInvoke()
System.Threading.Tasks.Task+<>c.<.cctor>b__292_0(Object obj)
System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread , ExecutionContext , ContextCallback , Object )
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread , ExecutionContext , ContextCallback , Object )
System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& , Thread )

unfortunately we don't have a repro for this crash just yet.

It does look like it's occuring on iOS only.
7 comments
Malcolm
Posted on: 07 Mar 2025 07:49
@Didi - unfortunately we are unable to repro just yet as it does not happen reliably.
I'll post an update if we have new info
ADMIN
Didi
Posted on: 04 Mar 2025 14:02

Hi Malcolm,

We applied fixes for CollectionView scrolling in 10.0.0 version. This somehow could be related to the fixes. However, I will need a repro project which I can share with the dev team so they can research the case further. Once we are able to reproduce the behavior we will be able to investigate it further and provide more information on the matter. 

Regards,
Didi
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!

Malcolm
Posted on: 04 Mar 2025 13:47

@Didi - see comments below... this wasn't happening in 9.0.0 version of the library.

Our crash analytics are reporting it as an unobserved task exception thrown on the dispatcher thread pool - so we can't trace exactly which of our many collection views are throwing it.
So

- 10.0.0 only

- iOS only (we don't see any exceptions reported like this for Android)

ADMIN
Didi
Posted on: 04 Mar 2025 12:03

Hi all,

Thank you for the stack-trace.

Could you please share some guidance in what cases the crash happens? Based on the stack trace it seems the control is grouped. Also there is a scrolling method mentioned. 

What are the operations you execute with the CollectionView in which the crash happens? Also downgrade to 9.0.0 version and let me know whether the crash also happens in it.

Regards,
Didi
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!

Zelin
Posted on: 03 Mar 2025 20:03
I am also experiencing this issue occasionally and it is hard to reproduce.
Malcolm
Posted on: 03 Mar 2025 09:33
I can also say that these have been happening since updating from 9.0.0 to 10.0.0 nuget packages
Malcolm
Posted on: 03 Mar 2025 09:22
perhaps related - we're seeing this guy too:
Message: Object reference not set to an instance of an object.
Telerik.Maui.Controls.RadCollectionView.<OnScrollViewScrolled>b__159_0()
Microsoft.Maui.Dispatching.Dispatcher+<>c__DisplayClass9_0.<DispatchImplementation>b__0()
CoreFoundation.DispatchQueue.static_dispatcher_to_managed(IntPtr context)
UIKit.UIApplication.UIApplicationMain(Int32 , String[] , IntPtr , IntPtr )
UIKit.UIApplication.Main(String[] , Type , Type )
SkimmerPhone.Platforms.iOS.Application.Main(String[] args)