PowerToys
PowerToys copied to clipboard
[PTRun]Dispatcher processing has been suspended, but messages are still being processed infinite error windows
Microsoft PowerToys version
0.58.0
Running as admin
- [X] Yes
Area(s) with issue?
PowerToys Run
Steps to reproduce
Hi I'm having trouble calculating something or finding something by using powertoys run many times. Usually some error messages come up and once a day the error messages infinitely generate as a photo attached. I had to shut down powertoysrun in task manager almost every single day. I would appreciate it if you fix it at your earliest convenience.
following is the error message when it occurs.
Version: 0.58.0.0 OS Version: Microsoft Windows NT 10.0.19044.0 IntPtr Length: 8 x64: True Date: 2022-05-09 오전 11:26:14 Exception: System.InvalidOperationException: 디스패처 처리는 일시 중단되었지만 메시지가 여전히 처리되고 있습니다. at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 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)
✔️ Expected Behavior
No error messages.
❌ Actual Behavior
Version: 0.58.0.0 OS Version: Microsoft Windows NT 10.0.19044.0 IntPtr Length: 8 x64: True Date: 2022-05-09 오전 11:26:14 Exception: System.InvalidOperationException: 디스패처 처리는 일시 중단되었지만 메시지가 여전히 처리되고 있습니다. at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 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)
Other Software
No response
This is #17371 and #9143 . So I'm guessing we're still getting this from time to time. I wonder if it's got something to do with character set. Looking at recent occurrences, this one is using Korean characters while #17371 is using Chinese characters if I got that correctly.
Can you please test something to see if we can find out which module might be causing this?
In settings, disable every PowerToys Run plugin and restart the computer. After the computer restarts, enable the PowerToys Run plugins one by one while testing the query that is causing these errors, to see if we can identify which one is causing this behavior for you. /needinfo
Can you please test something to see if we can find out which module might be causing this?
In settings, disable every PowerToys Run plugin and restart the computer. After the computer restarts, enable the PowerToys Run plugins one by one while testing the query that is causing these errors, to see if we can identify which one is causing this behavior for you. /needinfo
It seems that windows Search is the problem. As you said, I turned off all of plugins and rebooted computer and I turn on calculator and typed the numbers several times and there's no problem but upon turning on Windows Search, error message just come up. when I re-run several times, the error message window that has no content iterated infinitely.
@franky920920 , sorry to bother you, but is this something you were ever able to repro when using Chinese localization?
Can you please test something to see if we can find out which module might be causing this?
In settings, disable every PowerToys Run plugin and restart the computer. After the computer restarts, enable the PowerToys Run plugins one by one while testing the query that is causing these errors, to see if we can identify which one is causing this behavior for you. /needinfo
@franky920920 , sorry to bother you, but is this something you were ever able to repro when using Chinese localization?
Can confirm have the same issue here in zh-CN using PowerToys Run with most plugins turned on (including Windows Search). Will try to reproduce later. Log attached, with most plugins turned on. Since it's totally random, sometimes it works fine and sometimes it'll crash, I'll turn Windows Search off to see what's coming next. PowerToysReport_2022-07-08-17-46-39.zip
@franky920920 , sorry to bother you, but is this something you were ever able to repro when using Chinese localization?
Sorry, missed this mention. Let me check this later.
In #20891, I report exactly the same issue, while I'm french and thus do not use chinese characters, this therefore has nothing to do with the chinese and/or Corean stuff.
I confirm that the windows Search module is clealry the issue: I desactivated it and now it works correctly. However, even after 0.64.1 update, reactivating it makes this bug comes back again and again... Made me lost my work twice today (as the only way out is to restart the computer).
This is really annoying, is this worked on or not at all ?
@lrnv , can you please send a Bug Report? I'd like to see if I can spot anything. It being identified as caused by the windows Search module is helpful as well. Does it occur only when you try to do a search, only on some specific characters or everytime?
The main reason why this isn't being worked on is that no dev has been able to reproduce it locally.
Hi @davidegiacometti , I've seen your comment that https://github.com/microsoft/PowerToys/issues/22104#issuecomment-1315926053 is a consistent repro of this. I've tried with the "120/" query but been unable to repro it. Are you able to repro it consistently? I'd love to be able to fix this. Can you please send your bug report so I can understand if there might be something special about the settings?
In https://github.com/lin-ycv/EverythingPowerToys/issues/33 I had the same issue and could track the bug down to file thumbnails for PDF files generated by the Adobe Preview Handler.
The problem (only?) occured when PDF files where part of the results (you can see two PDF files in OP's screenshot, too). After enabling "PDF thumbnails" in PowerToys File Explorer extension (and thus disabling thumbnails created by Adobe Acrobat Reader), the problem was gone.
Hi @davidegiacometti , I've seen your comment that #22104 (comment) is a consistent repro of this. I've tried with the "120/" query but been unable to repro it. Are you able to repro it consistently? I'd love to be able to fix this. Can you please send your bug report so I can understand if there might be something special about the settings?
Hi Jaime! Sorry but I missed your message. Unfortunately I am not able to replicate this but the author of the issue said the error happened multiple times with that search. Very hard to understand what's happening and curious that seems to be more frequent after 0.66 (may be a coincidence).
After the last update, I'm seeing this error daily now. :(
Same here. Does the sofware everything is packaged with powertoys run ? Because I don't know if had installed it before ? Can it cause this issue ? Everithing is not new on my computer. Also I notice this happen after first use (after boot)
regards
Same here. Does the sofware everything is packaged with powertoys run ? Because I don't know if had installed it before ? Can it cause this issue ? Everithing is not new on my computer. Also I notice this happen after first use (after boot)
regards
@Di3S3L59 No Everything is not included. There is a third-party PT Run plugin available on GitHub.
Our last investigation shows that it seems to be caused by Acrobat Reader if PDF thumbnails are enabled.
@jaimecbernardo Were you able to reproduce it in the W10 vm? I like create a PR to improve thumbnail handling and need someone to test it. ;-)
In lin-ycv/EverythingPowerToys#33 I had the same issue and could track the bug down to file thumbnails for PDF files generated by the Adobe Preview Handler.
The problem (only?) occured when PDF files where part of the results (you can see two PDF files in OP's screenshot, too). After enabling "PDF thumbnails" in PowerToys File Explorer extension (and thus disabling thumbnails created by Adobe Acrobat Reader), the problem was gone.
I "retried" my issue and could provoke a Dispatcher processing has been suspended exception:
- (Win 10 Pro, 22H2)
- Enable "PDF file preview" in Adobe Acrobat Reader (settings > general > activate checkbox)
- Use any search term that includes some PDF file in your result list.
-
Wox.Infrastructure.Image.WindowsThumbnailProvider.GetHBitmap
will throw said exception - This execption is only thrown for PDF files. All other files work well.
After disabling this feature in Acrobat Reader the exception is not thrown anymore.
The PTRun window does not look like in the screenshots above anymore, but the app is completely frozen then.
Any other third party plugin (e.g. Everything) was not activated. The Windows Search plugin returned the PDF file result.
System.InvalidOperationException
HResult=0x80131509
Nachricht = Die Dispatcherverarbeitung wurde angehalten, es werden jedoch weiterhin Nachrichten verarbeitet.
Quelle = WindowsBase
Stapelüberwachung:
bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
bei Wox.Infrastructure.Image.WindowsThumbnailProvider.IShellItemImageFactory.GetImage(NativeSize size, ThumbnailOptions flags, IntPtr& phbm)
bei Wox.Infrastructure.Image.WindowsThumbnailProvider.GetHBitmap(String fileName, Int32 width, Int32 height, ThumbnailOptions options) in ...\PowerToys\src\modules\launcher\Wox.Infrastructure\Image\WindowsThumbnailProvider.cs: Zeile111
tl;dr: Disabling Adobe Acrobat Reader's PDF thumbnail previews in Windows Explorer solved the issue on my machine.
I have a fix. Yeeeees!!!!
I managed to repro something on Windows 10, but it's not throwing that exception. It's just hanging the Window a lot. I did manage to repro it on Windows 11, though.
@daniel-richter Please have in mind that the thumbnails are generetad in PT Run's code and not in the Plugin code. So every plugin has this bug if it shows a PDF file result.
I managed to repro something on Windows 10, but it's not throwing that exception. It's just hanging the Window a lot. I did manage to repro it on Windows 11, though.
I could repro it on Windows 10 and wrote a fix. PR is ready in a few minutes. I will ping you.
This was fixed in the 0.67.1 hotfix
i've never had that option activated in Adobe, and yet i get crashes in PowerToys Run on some PDFs in version v67.1 This never happened before v65 ? which used Separate Net Runtime. 2023-02-15.txt
i've never had that option activated in Adobe, and yet i get crashes in PowerToys Run on some PDFs in version v67.1 This never happened before v65 ? which used Separate Net Runtime. 2023-02-15.txt
@haldi4803 And the crash only happens with PDF files in the results?
i mainly use PDF and Word files. Or rather Shortcuts to those files as they are on a network drive which does not support windows indexing -.-
so i can't make a proper statements there.
i mainly use PDF and Word files. Or rather Shortcuts to those files as they are on a network drive which does not support windows indexing -.-
so i can't make a proper statements there.
@jaimecbernardo Do we have a time-out bug because of the network path?
@haldi4803 Can you please create a new file (1 x Word, 1 x PDF) on your share and search for it in PT Run? If it crashes I think the network is the trigger.
I don't think it's network related.
Actually i opened Adobe Acrobat Reader (haven't done that in years Saw that the mentioned options is NOT ticked, selcted it, unslected, and haven't had a single Crash until now. So that WAS an adobe related crash it seems... best to uninstall adobe if you dont use it.
My issue (24459) happened once only and has not reoccurred. More detail about circumstances: invoked Powertoys run using the default keys and then started typing in the name of an application, Goodsync, to run.
It wasn't clear when the crash happened as I wasn't paying attention
@jaimecbernardo Saw your thumbnail setting PR to late. Had the same idea a few days ago.
But additional I thought if we should add a second setting to enable "debug" logging for the thumbnail provider. U think it would help to log that we start and finished generating a thumbnail for file x with file type y. Because that will generate many log entries I thought about hiding this behind a setting.