Game build always freezes when closing the applicaiton

I’m using Unity 6000.0.34f1 and have a problem where the application always freezes when closing (not in Editor, Editor works fine). When inspecting the player log files of the game, I found some errors about the Input System so I tried to change the input manager from the new one to the old one, and this fixed the issue.

What I’ve tried and have not worked:

  1. Creating a new blank project
  2. Removing all the unnecessary package
  3. Changing different player settings such as Render API, fullscreen/windowed, etc.

Temporary fixes:

  1. System.Diagnostics.Process.GetCurrentProcess().Kill(); inside the OnApplicationQuit function, this closes the application but is not a good fix.
  2. Changing to the old input manager.

Here is the error that I believe was produced by the freeze:

Input System module state changed to: ShutdownInProgress.
Input System polling thread exited.
Input System module state changed to: Shutdown.
Couldn't register input device. The Input System is not in an initialized state (Shutdown). 
A call to GetIInput()->InitInput() or equivalently InitializeNewInputSystem() is required before using the Input System. Associated device descriptor:
 {"interface":"HID","type":"","product":"","manufacturer":"","serial":"","version":"785","capabilities":"
{\"vendorId\":6940,\"productId\":7029,\"usage\":4,\"usagePage\":65474,\"inputReportSize\":65,\"outputReportSize\":65,\"featureReportSize\":65}"}

What’s the Input System version in use? Have you tried up or downgrading that package?

If this fails even with the latest (including prerelease or experimental) please submit a bug report (Help - Report a bug).

I used the recommended version 1.11.2. I tried switching to the newest 1.12.0 but the issue still exists.

@Grimbeorn I’m sorry you experiencing this. Could you tell me if this also happens with the Unity version 6000.0.33f1 ? Sorry to ask since I know you already opened a bug. Our quality team is currently looking into it.