microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.64k stars 6.57k forks source link

PowerToys Run OneNote plugin failed to load. #28114

Open iciness opened 1 year ago

iciness commented 1 year ago

Microsoft PowerToys version

0.72.0

Installation method

GitHub

Running as admin

Yes

Area(s) with issue?

PowerToys Run

Steps to reproduce

[2023-08-24 12:19:48.7465] [ERROR] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::201] -------------------------- Begin exception -------------------------- Message: Fail to Init plugin: OneNote

Exception full name : System.Xml.XmlException Exception message : '�', hexadecimal value 0xDD55, is an invalid character. Line 2, position 1600. Exception stack trace: at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr) at System.Xml.XmlTextReaderImpl.ParseAttributes() at System.Xml.XmlTextReaderImpl.ParseElement() at System.Xml.XmlTextReaderImpl.ParseElementContent() at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r) at System.Xml.Linq.XElement.ReadElementFrom(XmlReader r, LoadOptions o) at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options) at System.Xml.Linq.XElement.Parse(String text, LoadOptions options) at ScipBe.Common.Office.OneNote.OneNoteProvider.ParsePages(String xml) at ScipBe.Common.Office.OneNote.OneNoteProvider.<>c.b__3_0(Application oneNote) at ScipBe.Common.Office.OneNote.OneNoteProvider.CallOneNoteSafely[T](Func`2 action) at ScipBe.Common.Office.OneNote.OneNoteProvider.get_PageItems() at Microsoft.PowerToys.Run.Plugin.OneNote.Main.Init(PluginInitContext context) at Wox.Plugin.PluginPair.InitPlugin(IPublicAPI api) Exception source : System.Private.Xml Exception target site: Void Throw(System.Exception) Exception HResult : -2146232000 -------------------------- End exception --------------------------

✔️ Expected Behavior

No response

❌ Actual Behavior

image

Other Software

image

TheJoeFin commented 8 months ago

Is this issue still relevant in v0.79? /needinfo

iciness commented 8 months ago
ONENOTE_Asfg3oPvX3 PowerToys Settings_QxcF700w56 PowerToys Settings_rDwxPniKmM

Yes, the problem still exists.

TheJoeFin commented 8 months ago

/bugreport

iciness commented 8 months ago

https://github.com/microsoft/PowerToys/assets/4505686/f92c813e-c6f6-48e0-bcbb-83106df06c51

I seem to have hit another bug. Unable to generate report.zip on desktop.

iciness commented 8 months ago

/bugreport

PowerToysReport_2024-03-10-12-03-56.zip I think I already know why report.zip cannot be generated. Maybe it's a problem with my network.

TheJoeFin commented 8 months ago

From the error messages I'd guess it looks like you have a page name with an invalid character. I know it can be tedious to comb through your pages and find it, but it looks like it is this character: Õ

iciness commented 8 months ago

From the error messages I'd guess it looks like you have a page name with an invalid character. I know it can be tedious to comb through your pages and find it, but it looks like it is this character: Õ

I cannot find notes containing this character from OneNote. I also tried closing all OneNote notes, but the error still exists. Is there any way I can locate this note with strange characters?

mkanet commented 4 months ago

I just disabled the OneNote plugin in PowerToys to stop getting that error message.