Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration Tests: ObjectDisposedException #9204

Closed
mstv opened this issue May 13, 2021 · 0 comments · Fixed by #9205
Closed

Integration Tests: ObjectDisposedException #9204

mstv opened this issue May 13, 2021 · 0 comments · Fixed by #9205
Assignees

Comments

@mstv
Copy link
Member

mstv commented May 13, 2021

Current behaviour

Exception thrown by integration test RunCommandTests.RunCommandBasedOnArgument_blame_line(?).

Expected behaviour

tests pass

Steps to reproduce

run tests in MSVS many times

Environment

  • Git Extensions 33.33.33
  • Build e91787f
  • Git 2.31.1.windows.1
  • Microsoft Windows NT 10.0.19042.0
  • .NET 5.0.6
  • DPI 96dpi (no scaling)

Diagnostics

System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'RichTextBox'.
   at void System.Windows.Forms.Control.CreateHandle()
   at void System.Windows.Forms.TextBoxBase.CreateHandle()
   at IntPtr System.Windows.Forms.Control.get_Handle()
   at void GitUI.Editor.RichTextBoxExtension.RichTextBoxXhtmlSupportExtension.SetXHTMLText(RichTextBox rtb, string xhtmlText) in D:/Build/gitextensions3_dev/GitUI/Editor/RichTextBoxXhtmlSupportExtension.cs:line 1238
   at void GitUI.CommitInfo.CommitInfo.UpdateRevisionInfo() in D:/Build/gitextensions3_dev/GitUI/CommitInfo/CommitInfo.cs:line 564
   at async Task GitUI.CommitInfo.CommitInfo.LoadSortedTagsAsync() in D:/Build/gitextensions3_dev/GitUI/CommitInfo/CommitInfo.cs:line 260
   at async void GitUI.CommitInfo.CommitInfo.RefreshSortedTags()+(?) => { } in D:/Build/gitextensions3_dev/GitUI/CommitInfo/CommitInfo.cs:line 156
   at void GitUI.ThreadHelper+<>c__DisplayClass13_0+<<FileAndForget>b__0>d.MoveNext() in D:/Build/gitextensions3_dev/GitExtUtils/GitUI/ThreadHelper.cs:line 100
@mstv mstv self-assigned this May 13, 2021
@ghost ghost added the 🚧 status: in progress Issues which have associated PRs label May 13, 2021
@ghost ghost removed the 🚧 status: in progress Issues which have associated PRs label May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant