Memory leak issue (OutOfMemoryException) using Telerik controls and SignalR connection

2 Answers 102 Views
NumericTextBox TextBox
Claudio
Top achievements
Rank 1
Iron
Veteran
Iron
Claudio asked on 04 Jun 2021, 12:25 PM

Hi, in our application we receive notification from server signalR connection and update some controls UI (typical progress bar and TextBox).

I found an issue who generate an OutOfMemory exception when we loop to update ui with telerik controls.

I have replied the issue with a demo project (see attachment).

Note who i can reply the issue with this conditions:

- Initialize a SignalR connection (initialized but unused..)

- Use Telerik controls inside a EditForm (in the sample TelerikTextBox and TelerikNumericTextBox)

To reply the issue i generate an infinite loop who raise an event, inside the event handler i simply update ui controls and call StateHasChanged().

Starting the loop it reach about 2GB of memory in about 90 seconds and then raise an outofmemory exception.

If i replace TelerikTextBox/TelerikNumericTextBox with simple input control the memory grow up and remain stable to about 500MB without raising the OutOfMemory exception, so i think who garbage collector do his job.

If i not initialize the SignalR connection, the memory leak does not occurs.

Waiting for your reply.

Thanks

2 Answers, 1 is accepted

Sort by
0
Svetoslav Dimitrov
Telerik team
answered on 09 Jun 2021, 07:19 AM

Hello Claudio,

Thank you for raising that issue to our attention. We were successfully able to see the OutOfMemory exception. I have awarded your account with Telerik Points as a small token of appreciation. 

That being said, I have opened a bug report on our public feedback portal on your behalf - OutOfMemory exception when an infinite loop updates the Telerik UI for Blazor components in an EditForm. I have given your Vote for it and you are automatically subscribed to receive email notifications on status updates.

Having done that, our dev team will launch an investigation on why the components are not disposed of. The reason why our components use more memory than the standard HTML input is due to the added functionality. 

Regards,
Svetoslav Dimitrov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Claudio
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 22 Jun 2021, 01:19 PM

Hi,

after 2 weeks i noted the issue status is still not planned.

This is a blocking bug for our project ui, we are unable to put a simple progress bar updated by SignalR response in a simple input form, cause the out of memory.

Can we have a resolution date of the issue?

Thanks

Svetoslav Dimitrov
Telerik team
commented on 25 Jun 2021, 09:23 AM

Hello Claudio,

I am sorry to read that this issue is blocking your entire application. Indeed, currently, the status of the issue is unplanned which would mean that this is a valid bug report and we are committed to working on its fix. The issue at hand, however, is not that easy to investigate properly so we might need some additional time. The best way to be notified of the status updates is to follow your email notifications. Currently, the workaround I can offer is to change the numeric textbox and the textbox with the standard Blazor or HTML input tags until this issue is fixed. 

Let me know if you need any further assistance.

Giampaolo
Top achievements
Rank 1
Veteran
commented on 21 Sep 2021, 01:34 PM

Hi

Any news about this issue ?

Radko
Telerik team
commented on 24 Sep 2021, 08:25 AM

Gi Giampaolo,

This is an issue that is high on our list and is something that we will be working on in our next releases. It appears resources are allocated internally when validation occurs, which are then not released correctly.

You can follow this thread for updates in regards to this specific issue - OutOfMemory exception when an infinite loop updates the Telerik UI for Blazor components in an EditForm

Regards,
Radko Stanev
Progress Telerik
Tags
NumericTextBox TextBox
Asked by
Claudio
Top achievements
Rank 1
Iron
Veteran
Iron
Answers by
Svetoslav Dimitrov
Telerik team
Claudio
Top achievements
Rank 1
Iron
Veteran
Iron
Share this question
or