We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfTimePicker crashing application

Thread ID:

Created:

Updated:

Platform:

Replies:

124711 Jun 24,2016 02:26 AM UTC Jun 27,2016 12:41 PM UTC UWP 7
loading
Tags: General
Nicola Crawford
Asked On June 24, 2016 02:26 AM UTC

Hi,

We have been using the SfTimePicker in our application and there have been issues with it slowing down the application and becoming less responsive over time. While investigating these issues, I noticed that after a few interactions with the time picker, garbage collection is happening constantly. I ran the UWP sample browser (the latest version - 4.2.0.26) and observed the same behaviour - in fact after opening the picker, scrolling the numbers and clicking on the tick around 3 or 4 times, the whole application crashes.

Would you please be able to look in to this and provide an update to resolve the issue.

Thanks,
Nicky

(Note this should be posted under SfTimePicker but there was no option for that when creating a new thread)

James Newton King
Replied On June 24, 2016 04:37 AM UTC

Memory profiler shows all the objects being created in the background. There was no activity in the app, this was all created by the time picker:



Where one of the objects was created:



Victory Jessie Selvam D [Syncfusion]
Replied On June 24, 2016 09:10 AM UTC

Hi James,

Thank you for using Syncfusion product.

We were unable to reproduce the reported issue, "Scrolling the numbers and clicking on the tick around 3 or 4 times crashes application" from our side. The objects created by SfTimePicker control will be cleared only after the scope for SfTimePicker ends. Could you please let us know whether you are reporting that the instance of SfTimePicker exists even after the control is unloaded? Also please get back to us with video demonstrating the issue faced from your side. This would help us to proceed further and find a solution.

Regards,
Jessie

Nicola Crawford
Replied On June 26, 2016 09:56 PM UTC

Hi Jessie,

Please find attached a video of the issue.

Thanks,
Nicky

Attachment: SfTimePickerBug_266a0b07.zip

James Newton King
Replied On June 26, 2016 10:07 PM UTC

Also the CPU usage from GC in the background stays high even when the page is navigated away from.

It starts as soon as the time picker is opened and doesn't stop until the application closes or crashes (which happens when you keep opening and closing a time picker).

Here is it happening on my computer. CPU usage increases every time the time picker is opened and closed:



James Newton King
Replied On June 27, 2016 12:34 AM UTC

I think you have two problems:

1. The time picker isn't being correctly disposed. The AnimationPerFrameCallback on SfTimeSelector is still being called even after the TimePicker control has been navigated away from. It should only be running when the time picker dropdown is open.
2. AnimationPerFrameCallback is really slow. It doing a huge amount of work every frame which is causing the GC to run continuously.

James Newton King
Replied On June 27, 2016 06:48 AM UTC

Example app of the memory leak (problem #1) attached.
To see the poor performance (problem #2) just open any time picker and make a looping selector visible. CPU usage immediately jumps and doesn't fall despite nothing happening.

Please fix BOTH of these issues.

Attachment: App12_5106b49b.zip

Victory Jessie Selvam D [Syncfusion]
Replied On June 27, 2016 12:41 PM UTC

Hi James/Nicola,

We were able to reproduce the issues "Application crashes while clicking ticks" and "Memory leak issue in SfTimePicker control". A support incident to track the status of these defects has been created under your accounts. Please log on to our support website to check for further updates
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents  

Please let us know if you have any questions.

Regards,
Jessie

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;