Win11 KB5034765 "explorer.exe" error: Cause and solution

After installing the Windows 11 update KB5034765 released on February 13, 2024, in some environments, the message "explorer.exe - Application Error" may appear and the PC may freeze when shutting down or restarting.

Microsoft has stated that it has fixed the explorer.exe error, but it appears that it has not been fixed completely.

Microsoft - KB5034765
Microsoft – KB5034765

Recently, we received a comment from a user saying that after connecting an Xbox Wireless Controller + USB-C via a wired connection, they started getting an "explorer.exe - Application Error."

The error appears whether the controller is connected or disconnected, but if you start up the computer without connecting the controller and then shut down or restart the computer, the error does not appear.

This error also appears to occur in Windows 8.1 or Windows Server 2012 R2, and is caused by the Explorer.exe process accessing memory that has already been released during the shutdown process.

2024 / 02 / 21:

There does not appear to be any correlation between "Xbox Accessory Management Service" (a service that manages connected Xbox accessories) or whether fast startup is enabled or disabled and "explorer.exe - Application Error."

If the problem is what Microsoft says, "This occurs because memory that has already been freed is being accessed," then the root cause is likely a programming error.

Continuing to access memory that has already been freed can cause a memory leak (a gradual decrease in the amount of memory available to programs) and freeze your PC.

Also, if there is unsaved data at this time, the data may be corrupted.

If you are using a gamepad (controller) and have not installed KB5034765, we recommend that you wait a while to see what happens.

The error does not seem to occur in environments where a gamepad (controller) is not being used, but I hope Microsoft will address this issue as soon as possible.

Win11 Solved! KB5034765 Desktop and taskbar display is slow

postscript:

There is also information that the error will not occur if you connect the controller wirelessly instead of with a cable.

The current possible cause is the explorer.exe itself or the system file "explorerframe.dllThere may be a problem (programming error) with the file ".

* Explorer will not work if "ExplorerFrame.dll" is not present.

KB5034204 and KB5034765 update both "explorer.exe" and "ExplorerFrame.dll" to newer versions, so this is a strong possibility.

Information from users:

  • Fast startup is disabled and enabled, both of which result in an error when shutting down or restarting.
  • If the controller is powered off (but is recognized in Device Manager), and you shut down and restart the computer with the controller still connected or disconnected, the error will not occur.
  • Turning the power on or keeping it on triggers the error

2024 / 03 / 01:

reddit.com According to user comments, the cause of "explorer.exe - Application Error" appears to be "GameInput Service".

There are two "GameInput Services", and it appears that the newer service is the cause.

"GameInput Service (Enables keyboards, mice, gamepads, and other input devices to be used with the GameInput API.)"

Google Translate: "GameInput Service (allows keyboards, mice, gamepads, and other input devices to be used with the GameInput API)"

"GameInput Service (Enables keyboards, mice, gamepads, and other input devices to be used with the GameInput API.)" is set to "Manual" by default, so the service will probably start when you connect (turn on) a gamepad (controller).

If this "GameInput Service" is started and you shut down or restart the computer while the gamepad (controller) is still turned on, an "explorer.exe - Application Error" message appears.

According to users, stopping the "GameInput Service" and setting it to "Disabled" will fix the "explorer.exe - Application Error" issue.

However, disabling the GameInput Service may cause some controllers to stop working properly, so until Microsoft fixes it, you may be able to avoid the error by stopping the GameInput Service before shutting down or restarting your computer.

By creating a batch file and running it as an administrator, you can easily stop the "GameInput Service" and then restart or shut down the system.

What is a batch file? How to create and run a batch file

Command to stop "GameInput Service":

sc stop GameInputSvc

Reboot command:

Shutdown /r /t 0

Shutdown command:

Shutdown /s /t 0

For example, the command to stop and restart the "GameInput Service" would be as follows:

sc stop GameInputSvc
Shutdown /r /t 0

Please see the information provided by users who have implemented the workaround.

Comment: (Chino – March 6, 2024, 2:35 AM)

2024 / 03 / 25:

We have received new information from our users. (Thank you for the information.)

  • If you switch to "DirectInput" using a controller that can switch between "XInput" and "DirectInput," the "explorer.exe - Application Error" message does not appear when shutting down.
  • Switching from "XInput" to "DirectInput" seems to have the same effect as disconnecting the Xbox gamepad.
  • The "GameInput Service" will not stop automatically even if you switch from "XInput" to "DirectInput" or turn off a switch-type USB hub.

From the above, it appears that this problem is caused by Windows 11 recognizing that an Xbox controller is connected.

If you found this article helpful, please share it on social media.

Person who wrote this article

Driven by questions arising from my daily PC use and the desire to "do more," I have been pursuing self-study in Windows since around 2008. I am sharing the "aha!" techniques and solutions I discovered through trial and error with the sole purpose of helping you in your PC life.

View profile

Comment:

Comment list (8)

  • Thank you for the information.

    As per the reddit user's comment, the new "GameInput Service"
    (C:\Windows\System32\GameInputSvc.exe) seems to be the cause.

    The default is "Manual (Trigger Start)" and "Stop".
    When I plugged in or turned on the Xbox controller, it said "Running."

    Stopping the "GameInput Service" before shutting down or restarting
    I don't get the "explorer.exe - Application Error" error, but the delay still occurs.

    After disabling it, if you start the PC and connect the controller
    There were no errors or delays and the controller worked without any problems.

    In my case, I'm concerned about the delay and only some games on Steam require an Xbox controller.
    Since there was no problem with the operation when using it, I will disable it and wait for a fix.

    • Dear Chino,

      > If you stop the "GameInput Service" before shutting down or restarting
      I don't get the "explorer.exe - Application Error" error, but the delay still occurs.

      Thank you for letting us know the symptoms you experienced after performing the solution. I think this information will be helpful to many people.

      The issue does not appear to be resolved even with KB5034848, which was preview released on February 29, 2024, so it is likely to be fixed in the next update.
      Or Microsoft may release a temporary workaround.

      • thank you for your reply.

        KB5034848 was not installed, and the environment when the solution was executed was as follows.
        Windows 11 Home/OS Build: 22631.3155 (after installing KB5034765)

        I will be away from home for a few weeks starting tomorrow, so any temporary workarounds or fixes needed in the meantime
        You won't be able to give feedback
        I'm very grateful for the updates, even though there was very little information available.
        Thank you all!

  • Hello, the information is helpful.

    Fast startup is disabled.
    I enabled it and restarted the computer with the controller connected, but an error occurred.

    The Explorer.exe process accesses memory that has already been released during the shutdown process.

    So, on the other hand, after closing Explorer
    I wondered what would happen if I shut down and restarted it, so I tried it.
    No error occurred, but the same as when an error occurred
    It took a long time to shut down and restart
    I think the error window just isn't showing up.
    Shutdown if no error occurs: 1 second / Shutdown if an error occurs: 5 to 10 seconds

    Xbox Accessory Management Service
    Startup type: Disabled
    Service status: Stopped
    The above error has been occurring for the past year.

    • Thank you Chino for taking action.
      So, the only effective way for now is to start the game without connecting the controller. (There is also information that connecting wirelessly will not cause an error.)

      *If you shut down instead of restarting when fast startup is enabled, the error may not occur.

      The current possible cause is a problem (programming error) with explorer.exe itself or with the system file "ExplorerFrame.dll" (without "ExplorerFrame.dll" Explorer will not work).
      KB5034204 and KB5034765 update both "explorer.exe" and "ExplorerFrame.dll" to newer versions, so this is a strong possibility.

      • thank you for your reply.
        The error occurred even when shutting down with fast startup enabled.

        The Xbox button on the top front of the controller is not lit = The controller is off
        (It is recognized in Device Manager)
        Keep the controller connected or disconnect it in this state.
        Shutting down and restarting did not result in any errors.
        There was no delay, so the error window just wasn't displayed.
        Unlike the previous time, it seems that no error has occurred.
        The results were the same with Fast Startup disabled and enabled.

        I unplug and plug the controller every time I'm not using it.
        Up until now, I have checked everything with the power on.
        It seems that turning on the power or leaving it on triggers the error.

        • Thank you Chino for the information.

          >The results were the same whether fast startup was enabled or disabled.
          >It seems that turning the power on or leaving it on triggers the error.

          If you provide this information to Microsoft, they may be able to identify the cause and fix the issue.

To comment

[About submissions]
We welcome any questions or information regarding the content of the article.
However, please note that content unrelated to the purpose of the article, criticism of specific individuals or organizations, offensive language,Inappropriate wordsComments containing the above may be deleted or made private without notice at the discretion of the administrator.
Please note that spam may be automatically deleted by anti-spam measures.

CAPTCHA


table of contents