drawio-desktop
drawio-desktop copied to clipboard
Deleting layer freezes application (desktop and online)
Preflight Checklist
- [x] I agree to follow the Code of Conduct that this project adheres to.
- [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.
You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.
Describe the bug When trying to delete a layer, clicking the delete button freezes the app, making the user unable to interact with anything (buttons, tabs, menus, moving objects) requiring the application to be ended with task manager. This can also be replicated in the browser.
To Reproduce Steps to reproduce the behavior:
- Open layers tab.
- Create a new layer.
- Create a new object.
- Delete the new layer.
- Application freezes.
Note: I noticed I can only replicate this issue if there is an object on the layer. If there is no object the layer is deleted with no issues.
Expected behavior The layer should be deleted and the application should not be frozen.
Screenshots I don't think a screenshot will really help here, the app is frozen and there is no error message.
draw.io version (In the Help->About menu of the draw.io editor):
- draw.io version 20.8.1 (web) and 20.7.4 (desktop)
Desktop (please complete the following information):
- OS: Windows 10 Home (22H2, 19045.2486)
Additional context No additional context, I've never used layers before in this app so its the first time I've noticed this bug.
After some testing, it seems that the only way to delete a layer without freezing it is to delete all the elements in the layer first, before deleting the layer itself.
Thanks for the report. I reproduced the issue in Chrome, Chrome Incognito and Firefox Win 10 Pro. Also in desktop 20.7.4
https://user-images.githubusercontent.com/44292306/213491786-e20e9d49-71c0-4202-a3e0-fbf06526389a.mp4
Is this still an issue in the latest version, I cannot reproduce?
No longer able to reproduce on desktop (22.1.16), however I am still able to reproduce it on web (20.8.5).
Thanks for the update. Closing as fixed as the latest version does not display the problem.