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

DevToys crashes when window is moved around while using Text Diff #1504

Open
Bernard-Borg opened this issue Feb 20, 2025 · 0 comments
Open

Comments

@Bernard-Borg
Copy link

Bernard-Borg commented Feb 20, 2025

Current behavior

DevToys crashes when I open Text Diff, put text in both sides (could be with a difference or without) and move the window around.

How to reproduce it (as minimally and precisely as possible)

  1. I open up DevToys
  2. I go to TextDiff
  3. I paste in some text in Text Diff on both sides with or without differences
  4. I move the window from around
  5. DevToys crashes

You can even just paste the following text on both sides:

1. I open up DevToys
2. I go to TextDiff
3. I paste in some text in Text Diff on both sides with or without differences
4. I move the window from one monitor to the other
5. DevToys crashes

Expected behavior

The window moves with it crashing

Screenshots

No response

Workaround

No response

Affected platforms

Windows

Affected DevToys kind

DevToys (app with GUI)

DevToys Version

Versions 1.0.14.0 | X64 | RELEASE | 3ad0ff2 | 3ad0ff2

Relevant Assets/Logs

- [02/20/2025 14:31:11]

Feature name: SmartDetection - Check if tool is recommended
Custom message: Tool : Xml Validator
Exception message: Data at the root level is invalid. Line 1, position 1.
Exception stack trace:
at System.Xml.XmlTextReaderImpl.Throw(Exception) + 0x6c
at System.Xml.XmlTextReaderImpl.Throw(String, String) + 0x56
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() + 0x1a5
at System.Xml.XmlTextReaderImpl.ParseDocumentContent() + 0x22d
at System.Xml.XmlTextReaderImpl.Read() + 0x355
at System.Xml.XmlTextReader.Read() + 0xf
at System.Xml.Schema.Parser.StartParsing(XmlReader, String) + 0xb7
at System.Xml.Schema.Parser.Parse(XmlReader, String) + 0x10
at System.Xml.Schema.XmlSchema.Read(XmlReader, ValidationEventHandler) + 0x86
at DevToys.ViewModels.Tools.XmlValidator.XmlValidatorToolProvider.ValidateXsdData(String) + 0x12a
at DevToys.ViewModels.Tools.XmlValidator.XmlValidatorToolProvider.CanBeTreatedByTool(String) + 0x18
at DevToys.Api.Tools.ToolProviderViewItem.d__40.MoveNext() + 0xc0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb
at DevToys.ViewModels.MainPageViewModel.<>c__DisplayClass88_1.<b__2>d.MoveNext() + 0x107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant