RadRichTextBox random app freezes when typing?

7 Answers 268 Views
RichTextBox
Pavel
Top achievements
Rank 1
Iron
Iron
Pavel asked on 30 Jun 2021, 04:48 AM

is there anyone that had experienced this? I recently updated our 2014 controls to 2021 controls.

Although I haven’t experienced it myself, our customers are experiencing an odd issue when they type with the rad rich box text editor

 The app simply freezes. Our editor does extend the base radrichtextbox control and has its own style so perhaps there is some property that behaves differently now?

Paul

7 Answers, 1 is accepted

Sort by
0
Accepted
Pavel
Top achievements
Rank 1
Iron
Iron
answered on 05 Jul 2021, 03:49 AM

So, the latest UI for WFP 2021 R2 SP2 appears to have resolved the problem. I can't reproduce it on my system (i.e., no deadlock) and the testers couldn't reproduce it either.

I am waiting for the users to start using the production program on Monday to re-affirm that the problem is indeed resolved.

How can we find out more on the history of this bug? When it was discovered? How long this bug could have lived in the system?

The odd thing is that in our case, we had no layouts or complex documents. 

Thank you

Paul

Dimitar
Telerik team
commented on 05 Jul 2021, 07:02 AM

Hi Pavel, 

I am glad that this works now. Let me know if this is still reproducible with your production application.

The issue was reported on 20 May 2021 and was fixed a week after that. You can see that information on our feedback portal:

Let me know if I can assist you further.


0
Dimitar
Telerik team
answered on 30 Jun 2021, 09:10 AM

Hello Pavel,

We do not have other reports of similar issues. Would it be posible to get the following information in order to allow us to further investigate this: 

  • What is the operating system where the issue occurs?
  • Are there higher memory and CPU usage?
  • Is there a particular type of content that causes this?
  • Does the application return to its normal state or it needs to be restarted?

 

Please note that a lot of features have been added during that time and the control is a lot "heavier" and it requires more resources.

I am looking forward to your reply.

Regards,
Dimitar
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.

Pavel
Top achievements
Rank 1
Iron
Iron
commented on 30 Jun 2021, 11:37 AM | edited

moved out of comment
Pavel
Top achievements
Rank 1
Iron
Iron
commented on 30 Jun 2021, 12:35 PM | edited

moved out of comment
0
Pavel
Top achievements
Rank 1
Iron
Iron
answered on 30 Jun 2021, 12:37 PM
Thank you for your reply. I application simply stops and does not return control. We have to stop the process via task manager.

I do not believe the system was under any sort of heavier load or memory usage at the time.

Operating Sys: windows 10 build 1909

We are just typing regular text, no images or even special font or formatting

What are the extra requirements for the 2021 telerik controls in terms of resources?

Will it build correctly with Visual Studio 2013? Personally I use visual 2017 but do not anything 2017 specific that would prevent the 2013 version of MS Build from building the executable.
 
 
Also, does any part of the new Telerik libraries for WPF require elevated permissions?
0
Pavel
Top achievements
Rank 1
Iron
Iron
answered on 30 Jun 2021, 12:43 PM | edited on 30 Jun 2021, 03:10 PM

where can I send our editor XAML file to see if there is something that is incompatible with newer version of Telerik?

I should also add, it doesn't happen all the time.

We do have two typing handlers that for "PreviewKeyDown" and "PreviewKeyEditorDown". We do various things on the press of a "TAB" and then if there is a control modifier associated with the keypress in the other.

Would this construct cause issues? These conditions are rarily hit.

  private void editor_PreviewKeyDown(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.Tab)
            {
                e.Handled = true;
                int currentPosition = PositionInLine(editor.Document);
                int numberOfSpaces = InsertSpacesToCurrentPosn(currentPosition);
                editor.Insert(SpacesToInsert(numberOfSpaces));
            }
        }

        private void editor_PreviewEditorKeyDown(object sender, PreviewEditorKeyEventArgs e)
        {
            if ((Keyboard.Modifiers.HasFlag(ModifierKeys.Control) && e.Key == Key.U) ||
                (Keyboard.Modifiers.HasFlag(ModifierKeys.Control) && e.Key == Key.B) ||
                (Keyboard.Modifiers.HasFlag(ModifierKeys.Control) && e.Key == Key.I))
            {
                e.SuppressDefaultAction = true;
            }
        }

 

and one more question, when we upgrade our software, we use ClickOnce to update. Is it a possibility that not all binaries are update causing inconsistencies in product behavior? We installed a UAT version of the same software as a test on the client machine and it worked without encountering this error. Only difference is a fresh install vs upgrade of the software?

0
Pavel
Top achievements
Rank 1
Iron
Iron
answered on 01 Jul 2021, 05:22 AM

Seems like this may be the issue we are encountering:

  • https://feedback.telerik.com/wpf/1520558-richtextbox-run-time-modifications-on-raddocument-may-cause-application-freeze
0
Dimitar
Telerik team
answered on 01 Jul 2021, 10:09 AM

Hello Pavel,

When I  said system resources I meant that the latest version may consume a little bit more RAM and process time since it has more features than the version from 2014. Nothing specific in this case. 

I can see that you have found an issue on our portal that possibly can be causing this behavior. This issue is reproducible when there are large tables or a lot of shapes in the document (a lot of layout calculations are required). The issue is fixed in the latest version of the suite. Would it be possible to upgrade and test on a machine where this is reproducible? This way you will be sure that this issue indeed causes the undesired behavior. 

If this is still reproducible with the latest version please open a support ticket and attach your code there. Your event handlers look OK to me and I do not think they are causing this issue. This will allow us to test this on our side and see if we can reproduce it.

Thank you in advance for your patience and cooperation.

Regards,
Dimitar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Pavel
Top achievements
Rank 1
Iron
Iron
answered on 01 Jul 2021, 12:53 PM

in our case, we have no large images or tables. Just pure text but we do have some locked read only lines. In my debugger, i do see a classic deadlock on thr mainthread.

in any case, i am on a slow connection so i left my computer to download over night and will test tonight as it is a statutory holiday here on Canada.

will report back for sure

Tags
RichTextBox
Asked by
Pavel
Top achievements
Rank 1
Iron
Iron
Answers by
Pavel
Top achievements
Rank 1
Iron
Iron
Dimitar
Telerik team
Share this question
or