Odotocodot / Flow.Launcher.Plugin.OneNote

A OneNote plugin for Flow Launcher.
MIT License
14 stars 2 forks source link

onenote: failed to respond! #24

Open AMDehghani opened 1 month ago

AMDehghani commented 1 month ago

2024-07-26.txt

Flow Launcher version: 1.18.0 OS Version: 22621.3880 IntPtr Length: 8 x64: True

Python Path: C:\Users\AMD\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.11.4\pythonw.exe Node Path: Date: 07/26/2024 02:45:35 Exception: OneNote Exception: Websites: https://github.com/Odotocodot/Flow.Launcher.Plugin.OneNote Author: Odotocodot Version: 2.1.0 Flow.Launcher.Core.ExternalPlugins.FlowPluginException: 0x80042019 ---> System.Runtime.InteropServices.COMException (0x80042019): 0x80042019 at Microsoft.Office.Interop.OneNote.ApplicationClass.FindPages(String bstrStartNodeID, String bstrSearchString, String& pbstrHierarchyXmlOut, Boolean fIncludeUnindexedPages, Boolean fDisplay, XMLSchema xsSchema) at Odotocodot.OneNote.Linq.OneNoteApplication.FindPages(String search) at Flow.Launcher.Plugin.OneNote.SearchManager.DefaultSearch(String query) at Flow.Launcher.Plugin.OneNote.SearchManager.Query(Query query) at Flow.Launcher.Plugin.OneNote.Main.QueryAsync(Query query, CancellationToken token) at Flow.Launcher.Core.Plugin.PluginManager.<>cDisplayClass23_0.<b0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 196 --- End of stack trace from previous location --- at Flow.Launcher.Infrastructure.Stopwatch.DebugAsync(String message, Func`1 action) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Stopwatch.cs:line 34 at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 195 --- End of inner exception stack trace --- at Flow.Launcher.Core.Plugin.PluginManager.<>cDisplayClass23_1.b1(ActionContext ) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 224 at Flow.Launcher.Plugin.Result.ExecuteAsync(ActionContext context) in //Flow.Launcher.Plugin/Result.cs:line 246 at Flow.Launcher.ViewModel.MainViewModel.OpenResultAsync(String index) in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 307 at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask) at System.Threading.Tasks.Task.<>c.b__128_0(Object state) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Odotocodot commented 1 month ago

Hi, was this when you searched or when you selected a result?

AMDehghani commented 1 month ago

hi, image image thanks for your attention.

Odotocodot commented 1 month ago

hi, image image thanks for your attention.

How often does this happen? Is it constant?

AMDehghani commented 1 month ago

yes all the time

Odotocodot commented 1 month ago

That is very strange! The issue stems from retriving the OneNote COM object which can fail sometimes especially if many calls have happened. But for constant crashes!? as well as the fact I cant replicate the issue.

Im assuming it was working at some point, what changed when the crashes started?

AMDehghani commented 1 month ago

I don't think It was working at first, maybe some odd OS conflict. thank you by the way .

Odotocodot commented 1 month ago

Hmm I see, if you don't mind what OS are you on and what version of OneNote are you using?