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

オープン
#339 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp
領域
desktop

調査の方向性

AvalonEdit TextEditor のみを含む最小限の MainWindow XAML でフリーズを再現し、報告された PresentationCore.dll 例外を監視しながら Ctrl-X を押し続けます。Ctrl-X の繰り返しと Ctrl-D を比較し、リモートデスクトップのクリップボード監視によって動作が変わるかテストします。Windows 10 と 11 で、Ctrl-X の繰り返しによってフリーズせずに行が削除されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C#
スター
2.1k
フォーク
496
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

icsharpcode/AvalonEdit のほかの issue

icsharpcode/AvalonEdit の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。