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

[PTRun]Dispatcher processing has been suspended, but messages are still being processed infinite error windows #18166

Closed
1 task done
manofaciton0 opened this issue May 9, 2022 · 54 comments
Assignees
Labels
Area-Quality Stability, Performance, Etc. Hot Fix Items we will product an out-of-band release for Issue-Bug Something isn't working Priority-1 Bug that is high priority Product-PowerToys Run Improved app launch PT Run (Win+R) Window Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release. Status-Reproducible This issue was reproduced by a maintainer

Comments

@manofaciton0
Copy link

Microsoft PowerToys version

0.58.0

Running as admin

  • 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)

화면 캡처 2022-05-09 112937

✔️ 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

@manofaciton0 manofaciton0 added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels May 9, 2022
@manofaciton0 manofaciton0 changed the title an window error when powertoy run an window error and infinite error message window generating when using powertoy run May 9, 2022
@manofaciton0 manofaciton0 changed the title an window error and infinite error message window generating when using powertoy run An window error and infinite error message window generating when using powertoy run May 9, 2022
@manofaciton0 manofaciton0 changed the title An window error and infinite error message window generating when using powertoy run A window error and infinite error message window generating when using powertoy run May 9, 2022
@Jay-o-Way Jay-o-Way added Product-PowerToys Run Improved app launch PT Run (Win+R) Window Area-Quality Stability, Performance, Etc. labels May 9, 2022
@jaimecbernardo
Copy link
Collaborator

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.

@jaimecbernardo jaimecbernardo changed the title A window error and infinite error message window generating when using powertoy run [PTRun]Dispatcher processing has been suspended, but messages are still being processed infinite error windows May 10, 2022
@jaimecbernardo
Copy link
Collaborator

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

@ghost ghost added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels May 10, 2022
@ghost ghost added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels May 10, 2022
@manofaciton0
Copy link
Author

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.

image

@jaimecbernardo jaimecbernardo added Needs-Repro We can't figure out how to make this happen. Please help find a simplified repro. and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up labels May 11, 2022
@jaimecbernardo jaimecbernardo added the Priority-1 Bug that is high priority label May 11, 2022
@jaimecbernardo
Copy link
Collaborator

@franky920920 , sorry to bother you, but is this something you were ever able to repro when using Chinese localization?

@KevinMX
Copy link

KevinMX commented Jul 8, 2022

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
Copy link
Contributor

@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.

@NebularNerd
Copy link

Thanks for the feedback! What about the test build? Did you try it?

Happy to test but was not aware there was a test build, please point me in the right direction and I'll give it a whirl. 🙂

@stefansjfw
Copy link
Collaborator

Check out this comment: #18166 (comment)

And don't forget to delete PT Run image cache by deleting following file <AppDataDir>\Local\Microsoft\PowerToys\PowerToys Run\Settings\ImageCache.json before testing.

@JoClever
Copy link

JoClever commented Mar 16, 2023

@JoClever Would you be willing to install test build as explained here #18166 (comment) ? Thanks

I am happy to report that I cannot reproduce the crashes with the test build, even with thumbnail generation enabled!

@stefansjfw
Copy link
Collaborator

@JoClever Thanks for the testing and the feedback! And do you experience some performance issues with PT Run? Are thumbnails loaded for different apps?

@stefansjfw stefansjfw added Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release. and removed Status-In progress This issue or work-item is under development labels Mar 20, 2023
@stefansjfw
Copy link
Collaborator

stefansjfw commented Mar 20, 2023

Fix for this issue is merged and will be included in the next PowerToys release. Big thanks to everyone that helped locate the cause and for the testing.

For those who tested the debug build - remember to uninstall it and install an official release of PowerToys again to be able to receive update notifications once the new version is released.

This was referenced Mar 20, 2023
@JoClever
Copy link

@JoClever Thanks for the testing and the feedback! And do you experience some performance issues with PT Run? Are thumbnails loaded for different apps?

After using the debug build for a while, I can't find any performance issues. Icons are also generated reliably as far as I could tell.
Looking forward to the next release!

@FranK45
Copy link

FranK45 commented Mar 30, 2023

Coming from #24974 with comment to update here.

I had the "Dispatcher processing has been suspended" error using PT Runs since updating to 0.68.1 from a rather old version. The issue was happening on about once every 2-3 use.

Disabling thumbnail generation fixed the issue, no error in the last 2 work days.

@schobernoise
Copy link

Coming from #24974 with comment to update here.

I had the "Dispatcher processing has been suspended" error using PT Runs since updating to 0.68.1 from a rather old version. The issue was happening on about once every 2-3 use.

Disabling thumbnail generation fixed the issue, no error in the last 2 work days.

Can confirm, until now no crashes!

@doublefx
Copy link

doublefx commented Apr 4, 2023

No crashes anymore since this option is available, thanks, good job!!

@crutkas
Copy link
Member

crutkas commented Apr 6, 2023

Fix is in 0.69 which was released today, thanks everyone for helping debug this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Quality Stability, Performance, Etc. Hot Fix Items we will product an out-of-band release for Issue-Bug Something isn't working Priority-1 Bug that is high priority Product-PowerToys Run Improved app launch PT Run (Win+R) Window Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release. Status-Reproducible This issue was reproduced by a maintainer
Projects
None yet
Development

No branches or pull requests