Holding down Ctrl-X cuts 7 lines then freezes application for a few seconds

Đang mở
#339 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
csharp
Lĩnh vực
desktop

Hướng nghiên cứu

Tái hiện hiện tượng treo trong MainWindow XAML tối thiểu chỉ chứa một AvalonEdit TextEditor, giữ Ctrl-X trong khi theo dõi các ngoại lệ PresentationCore.dll được báo cáo. So sánh việc nhấn Ctrl-X lặp lại với Ctrl-D và kiểm tra xem việc giám sát clipboard qua máy tính từ xa có làm thay đổi hành vi hay không. Hoàn thành khi việc nhấn Ctrl-X lặp lại xóa các dòng mà không bị treo trên Windows 10 và 11.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I noticed if I pressed Ctrl-X to cut a line and then held it down to continue cutting lines, the interface would freeze up for a few seconds after the 7th line. After it unfreezes, it'll delete another 1 line or 7 lines and then freeze again. This would continue to repeat. On one machine, it doesn't unfreeze unless I let go of the keys. In the debugger, I see these messages keep printing while the interface is frozen so maybe they're related.
Exception thrown: 'System.Runtime.InteropServices.COMException' in PresentationCore.dll
Exception thrown: 'System.NotImplementedException' in PresentationCore.dll

The build environment probably doesn't matter since I tried some other projects using AvalonEdit such as RoslynPad and the Edi sample projects as well as a new blank project in VS2019 targeting 4.7.2 and the latest AvalonEdit with only <avalonEdit:TextEditor /> added to the MainWindow XAML. The same behavior occurred in all of them for me and occurs on both Window 10 and 11.
In case this is an issue with the clipboard locking/synchronizing, I am doing this over remote desktop with the clipboard monitoring enabled.
The freezing doesn't occur if is use Ctrl-D to delete lines.

The expected behavior would be to continue deleting lines without freezing the application.

Ngôn ngữ chính
C#
Star
2.1k
Fork
496
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của icsharpcode/AvalonEdit

Tất cả issue của icsharpcode/AvalonEdit

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.