BUG: Every app in Windows 10 loses focus while Premiere Pro is running
This does not happen all the time. I can't tell what causes it to start, but once the problem manifests itself, it is there 100% of the time until I reboot. It then doesn't happen again for a while.
This happens with Premiere Pro 2020 AND the Premiere Pro Beta, both kept up to date.
The issue is this: If Premiere Pro is running, any application or window that has the focus will lose it within a 1-2 seconds, max. If I quit PP, the problem goes away. It does not matter which other apps are currently running (or not). This only happens when PP is running.
When I start PP, the problem begins a short while before the application is done starting up. When I end it, the problem goes away as soon as PP is exited (the process is no longer visible in the task manager).
Functionality in PP is not impeded as such - I can do most things. However, once the window loses focus, any open menus will close etc., so it is extremely difficult to actually get anything done.
I will record a video of this happening and post it shortly.
The ONLY known way to stop PP from doing this is to reboot.
Latest version of the NVIDIA Studio driver is installed. OS and all apps kept up to date.
Whenever this happens (and it has in the meantime also happened with Audition and After Effects), the only solution I have found is to reboot. Then the problem disappears for a random amount of time, until whatever triggers it happens again.
Stephen D commented
I am now having this same issue, what was the fix? premiere will not stay focused at all.
Thanks for looking into this! I do have some plugins, but not a lot, and of course I can't rule out the possibility that one of them is responsible for this. Is there a way to do a "safe mode" boot where Premiere ignores plugins and starts up "clean"?
As for SetForegroundWindow, I wouldn't have any idea, but note that the problem isn't that Premiere "takes" the focus, it is that ALL windows LOSE the focus - none of them keep it for more than a second or two. Of course, there is very little reason for Premiere to remove focus from itself so I don't know that this information adds anything of value.
I will email you shortly, and I will try the console app to see if it can help us understand what is going on. But keep in mind that exactly what causes this to start is unknown - it only seems to happen every couple of weeks, so I don't know how soon I will be able to reproduce. I'll try to start Premiere even on days I'm not using it to make sure I catch it as quickly as possible. :)
Jason S (Adobe) commented
Hi, Rune. That is super strange. Nearly all of the SetForegroundWindow calls we have are on the dynamic link code path -- which wouldn't seem to be an obvious suspect here -- so I don't have a solid idea as to the probable cause. Do you have any plugins installed?
If you e-mail me at email@example.com I can send you a small console .exe that'll listen for foreground switches and can print out the name of the actual window that's involved; that should give us a hint as to what's going on. Thanks!
Here is the video:
As you can see, when Premiere is running (after it has been running for a bit in the case of the beta), all apps, including Premiere itself, loses focus every few seconds. The program is essentially useless while in this state.
I had to reboot in order to finish the video file, which I did in Premiere. No issues after the reboot, but after some random amount of time, it will come back.