This is a migrated thread and some comments may be shown as answers.

OutOfMemoryException at RadListView on iOS

5 Answers 101 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Namysław
Top achievements
Rank 1
Namysław asked on 04 Aug 2017, 09:27 AM

I've just experienced OutOfMemoryException at RadListView on iOS.

 

I'm not able to reproduce it again, it's completelly ramdom issue, and even doing the same things, didn't cause issue occuring again.

Below stacktrace from HockeyApp:

 

Application Specific Information:
*** Terminating app due to uncaught exception 'System.OutOfMemoryException', reason: 'System.OutOfMemoryException: Out of memory'
 
Xamarin Exception Stack:
  at (wrapper alloc) System.Object:AllocVector (intptr,intptr)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Resize (System.Int32 newSize, System.Boolean forceNewHashCodes) <0x1004409c0 + 0x0008f> in <2f4074c3120b4d80802e10af84b67d41#fdbbfcde2555a858848d8a7e8bde1613>:0
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Resize () <0x100440980 + 0x00033> in <2f4074c3120b4d80802e10af84b67d41#fdbbfcde2555a858848d8a7e8bde1613>:0
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Insert (TKey key, TValue value, System.Boolean add) <0x1004400a0 + 0x0032b> in <2f4074c3120b4d80802e10af84b67d41#fdbbfcde2555a858848d8a7e8bde1613>:0
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) <0x10043f1a0 + 0x00027> in <2f4074c3120b4d80802e10af84b67d41#fdbbfcde2555a858848d8a7e8bde1613>:0
  at Xamarin.Forms.ResourcesExtensions.GetMergedResources (Xamarin.Forms.IElement element) <0x10059f890 + 0x001eb> in <937957814f5d45be82b66795cb584841#fdbbfcde2555a858848d8a7e8bde1613>:0
  at Xamarin.Forms.Element.set_Parent (Xamarin.Forms.Element value) <0x1005fd760 + 0x00107> in <937957814f5d45be82b66795cb584841#fdbbfcde2555a858848d8a7e8bde1613>:0
  at Telerik.XamarinForms.DataControlsRenderer.iOS.ListView.ListViewCellRenderer.GetOrCreateCell (Telerik.XamarinForms.DataControls.RadListView owner, Telerik.XamarinForms.DataControlsRenderer.iOS.ListView.UIListViewCell ncell, System.Object dataItem) <0x10164bef0 + 0x00343> in <115ddaaac3ec4300a5cfeca81b6750fc#fdbbfcde2555a858848d8a7e8bde1613>:0
  at Telerik.XamarinForms.DataControlsRenderer.iOS.ListView.UIListViewCell.UpdateCell (Telerik.XamarinForms.DataControls.RadListView owner, System.Object dataItem) <0x10164ecd0 + 0x0004b> in <115ddaaac3ec4300a5cfeca81b6750fc#fdbbfcde2555a858848d8a7e8bde1613>:0
  at Telerik.XamarinForms.DataControlsRenderer.iOS.ListViewDataSource.CreateCellForItem (TelerikUI.TKListView listView, Foundation.NSIndexPath indexPath, Foundation.NSObject obj) <0x101647690 + 0x000f7> in <115ddaaac3ec4300a5cfeca81b6750fc#fdbbfcde2555a858848d8a7e8bde1613>:0
  at Telerik.XamarinForms.DataControlsRenderer.iOS.ListViewDataSource.CreateCellForItemCallback (TelerikUI.TKListView listView, Foundation.NSIndexPath indexPath, Foundation.NSObject obj) <0x1016473c0 + 0x00077> in <115ddaaac3ec4300a5cfeca81b6750fc#fdbbfcde2555a858848d8a7e8bde1613>:0
  at ObjCRuntime.Trampolines+SDFuncArity4V2.Invoke (System.IntPtr block, System.IntPtr arg1, System.IntPtr arg2, System.IntPtr arg3) <0x101799120 + 0x000a7> in <ecd5b6bb7bca4e31bddbff54b66a188f#fdbbfcde2555a858848d8a7e8bde1613>:0
  at (wrapper native-to-managed) ObjCRuntime.Trampolines+SDFuncArity4V2:Invoke (intptr,intptr,intptr,intptr)
--- End of stack trace from previous location where exception was thrown ---
  at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) <0x100c65720 + 0x0002b> in <58a9bd8a3cbb4d0092bc0a767ff66c0f#fdbbfcde2555a858848d8a7e8bde1613>:0
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) <0x100c65660 + 0x000ab> in <58a9bd8a3cbb4d0092bc0a767ff66c0f#fdbbfcde2555a858848d8a7e8bde1613>:0
  at Meercat.iOS.Application.Main (System.String[] args) <0x10025c1c0 + 0x00023> in <656568806e264fe8bacd615d82af51c4#fdbbfcde2555a858848d8a7e8bde1613>:0

5 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 09 Aug 2017, 06:14 AM
Hi Namyslaw,

Could confirm that you are using our latest version - 2017.2.0721. We have identified and resolved similar issues and the fix is included in this version.

Regards,
Tsvyatko
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Namysław
Top achievements
Rank 1
answered on 09 Aug 2017, 06:20 AM
Yes, I'm 100% sure, that the issue occurs at latest version - *2017.2.0721*.
I've updated DLLs with this version 2 weeks ago, and the issue occurs only once, 4 days ago.
0
Nikolay Demirev
Telerik team
answered on 11 Aug 2017, 08:47 AM
Hello Namyslaw,

Could you give us more information on how you use the ListView> With images, with other views? A sample project which we could use to reproduce the exception would be of great help in order to isolate and fix the issue. 

Regards,
Nikolay Demirev
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Namysław
Top achievements
Rank 1
answered on 11 Aug 2017, 08:54 AM
I'm using RadListView at 5 different views of my all.
One of them uses images, but through FFImageLoading, so I don't think, that it could be strickly Image non-disposing issue, or something similar. Rest of views uses custom complex datatypes, without images.

I'm not even able to reproduce this issue, even with hardly trying to do this.

It was only one occured issue.

When it would happen again, I'll again try to reproduce it, and try to provide sample project.

Thanks
0
Nikolay Demirev
Telerik team
answered on 14 Aug 2017, 10:48 AM
Hello,

I have tested with our Examples application for iOS in the Layouts example of the RadListView. Using XCode I have measured the memory consumption while scrolling many times up and down and I could not identify any issue. If you manage to reproduce the issue in a sample project we will be able to investigate it.

Regards,
Nikolay Demirev
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ListView
Asked by
Namysław
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Namysław
Top achievements
Rank 1
Nikolay Demirev
Telerik team
Share this question
or