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:
- Creating a new blank project
- Removing all the unnecessary package
- Changing different player settings such as Render API, fullscreen/windowed, etc.
Temporary fixes:
System.Diagnostics.Process.GetCurrentProcess().Kill();
inside the OnApplicationQuit function, this closes the application but is not a good fix.- 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}"}