DevToys icon indicating copy to clipboard operation
DevToys copied to clipboard

AccessDenied exception in CustomTextBox.SetHighlights

Open hAzUpL8 opened this issue 2 years ago • 3 comments

Hi I have one problem with the DevToys app. When I run the application selecting "Base64 Text" and I clicking into the InputText window the application crashes (this happens every time). Everything else works just as it should.

hAzUpL8 avatar Feb 14 '23 12:02 hAzUpL8

Hi,

Thanks for reporting this issue. After the app crashed, can you please start it again and go to Settings > Open logs and paste the logs here? Hopefully the error that caused this crash is caught and I will be able to investigate it. I'm unable to reproduce the issue on my side for now.

Thanks

veler avatar Feb 14 '23 17:02 veler

Hi,

I cleaned the log and recreated the crash so it only contains records after the crash. The following content is in logs.txt file.


- [02/15/2023 08:58:59]

Feature name: Unhandled problem Custom message: Exception message: Access is denied. (Exception from HRESULT: 0x80070005) Exception stack trace: at System.Runtime.InteropServices.McgMarshal.ThrowOnExternalCallFailed(Int32, RuntimeTypeHandle) + 0x21 at __Interop.ComCallHelpers.Call(__ComObject, RuntimeTypeHandle, Int32, Color) + 0xbd at __Interop.ForwardComStubs.Stub_66[TThis](__ComObject, Color, Int32) + 0x2d at Windows.UI.Text.ITextCharacterFormat__Impl.Dispatcher.global::Windows.UI.Text.ITextCharacterFormat.put_BackgroundColor(Color)

  • 0x1e at DevToys.UI.Controls.CustomTextBox.SetHighlights(IEnumerable1) + 0x473 at DevToys.UI.Controls.CustomTextBox.OnActualThemeChanged(FrameworkElement, Object) + 0xc at Windows.Foundation.TypedEventHandler2.Invoke(TSender, TResult) + 0x2e at __Interop.Intrinsics.HasThisCall__33[TArg0](Object, IntPtr, Object, TArg0) + 0x36 at DevToys!<BaseAddress>+0x12c2c5e

- [02/15/2023 08:59:10]

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)

  • 0x122 at DevToys.ViewModels.Tools.XmlValidator.XmlValidatorToolProvider.CanBeTreatedByTool(String)
  • 0x18 at DevToys.Api.Tools.ToolProviderViewItem.<UpdateIsRecommendedAsync>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.<<UpdateRecommendedToolsAsync>b__2>d.MoveNext()
  • 0x107

regards Haris

V V tor., 14. feb. 2023 ob 18:01 je oseba Etienne BAUDOUX < @.***> napisala:

Hi,

Thanks for reporting this issue. After the app crashed, can you please start it again and go to Settings > Open logs and paste the logs here? Hopefully the error that caused this crash is caught and I will be able to investigate it. I'm unable to reproduce the issue on my side for now.

Thanks

— Reply to this email directly, view it on GitHub https://github.com/veler/DevToys/issues/755#issuecomment-1430078745, or unsubscribe https://github.com/notifications/unsubscribe-auth/AICMDYQK2MZV46L7MNIN2QDWXO3ABANCNFSM6AAAAAAU3PAFAI . You are receiving this because you authored the thread.Message ID: @.***>

--

Lp. HarisŽujo

hAzUpL8 avatar Feb 15 '23 08:02 hAzUpL8

Hi,

Thank you very much! This is very helpful! :)

veler avatar Feb 15 '23 15:02 veler