You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When binding to the Document property, or manually setting the Document property and then adding text and scrolling a bit, I can consistently reproduce a crash in AvalonEdit. I think this is caused by
ICSharpCode.AvalonEdit.dll!ICSharpCode.AvalonEdit.Document.TextDocument.GetLineByNumber(int number) Line 894
ICSharpCode.AvalonEdit.dll!ICSharpCode.AvalonEdit.Document.TextDocument.GetOffset(int line, int column) Line 939
RoslynPad.Editor.Windows.dll!RoslynPad.Editor.TextMarkerService.EditorOnToolTipRequest(object sender, RoslynPad.Editor.ToolTipRequestEventArgs args) Line 86 C#
(the package does not seem up to date with the sources here) Repro:
Then start the app, write some text (including ~10 newlines) and use the scroll wheel on the mouse to scroll a couple of seconds up and down.
I think it's due to TextMarkerService caching the initial Document, and not updating its local copy when the Document of the Editor is replaced. This causes GetMarkersAtOffset called with an offset that isn't present in its cached version.
Version
OS: Win 11
NuGet RoslynPad.Editor.Windows 1.2.0
The text was updated successfully, but these errors were encountered:
When binding to the Document property, or manually setting the Document property and then adding text and scrolling a bit, I can consistently reproduce a crash in AvalonEdit. I think this is caused by
roslynpad/src/RoslynPad.Editor.Shared/TextMarkerService.cs
Line 76 in ea04c0b
Stacktrace:
(the package does not seem up to date with the sources here)
Repro:
Then start the app, write some text (including ~10 newlines) and use the scroll wheel on the mouse to scroll a couple of seconds up and down.
I think it's due to TextMarkerService caching the initial Document, and not updating its local copy when the Document of the Editor is replaced. This causes
GetMarkersAtOffset
called with an offset that isn't present in its cached version.Version
OS: Win 11
NuGet RoslynPad.Editor.Windows 1.2.0
The text was updated successfully, but these errors were encountered: