jgraph / drawio-desktop

Official electron build of draw.io
https://www.diagrams.net
Apache License 2.0
49.57k stars 4.95k forks source link

Pasting onSuccessfulLoginBeforeVerifiedDeviceCheck after selecting a box freezes drawIO desktop #674

Closed dpb06 closed 2 years ago

dpb06 commented 3 years ago

Preflight Checklist

Describe the bug Pasting the text onSuccessfulLoginBeforeVerifiedDeviceCheck into a newly created text box causes the display window of drawIO to freeze. Closing the window needs to be done using Task Manager (Ctrl-Shift-Esc). The "draw.io" button in top left, minimize and maximize are the only buttons to function.

DrawIO seemed to stabilize after being left processing this action for about 15 minutes. During this time DrawIO's CPU usage increased to 35-40%

To Reproduce Steps to reproduce the behavior:

  1. Open a new diagram
  2. Drag a text box into the diagram (Oval, Curved rectangle, Rectangle etc)
  3. Select the text box when there is no text inside, so that you can resize the box
  4. Ctrl-V the text onSuccessfulLoginBeforeVerifiedDeviceCheck onto the box

Expected behavior The text "onSuccessfulLoginBeforeVerifiedDeviceCheck" is entered into the box

Screenshots image The above image was taken after pasting the text

draw.io version (In the Help->About menu of the draw.io editor):

Desktop (please complete the following information):

Additional context It appears that once text has been entered into the text box, doing the same steps above to replace that text does not cause an issue. Pasting the text in after double clicking on the text box also does not cause this issue. If there is a box in the window with the same text, it appears this also does not cause this issue.

However I have recreated with both mildly populated and freshly created diagrams. I have also had this occur 20 minutes into creating an (unsaved) diagram.

davidjgraph commented 3 years ago

Could you re-check after updating to 14.9.6 please?