View Issue Details
ID | Project | Category | Date Submitted | Last Update | |
---|---|---|---|---|---|
0026585 | Starward Rogue | Crash/Exception | Mar 3, 2022 10:26 am | Mar 3, 2022 6:51 pm | |
Reporter | Andre Steiger | Assigned To | Chris_McElligottPark | ||
Status | resolved | Resolution | fixed | ||
Product Version | 2.600 (Room for one more?) | ||||
Fixed in Version | 2.601 (XInput Fix) | ||||
Summary | 0026585: Memory leak in XInput.Net::Gamepad.GetState, leading to OutOfMemoryException after playing for a while | ||||
Description | It leaks memory every frame, my framerate is about500 FPS, so after 60 minutes of playing, I get an OOM. Related issue in XInput.Net: https://github.com/speps/XInputDotNet/issues/3 Playing through steam on linux. 3/3/2022 3:21:53 PM : ----------- OnGUI: System.OutOfMemoryException: Out of memory at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:AllocHGlobal (intptr) at System.Runtime.InteropServices.Marshal.AllocHGlobal (Int32 cb) [0x00000] in <filename unknown>:0 at XInputDotNetPure.GamePad.GetState (PlayerIndex playerIndex) [0x00000] in <filename unknown>:0 at InControl.XInputDeviceManager.Worker () [0x00000] in <filename unknown>:0 Stack Trace: at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:AllocHGlobal (intptr) at System.Runtime.InteropServices.Marshal.AllocHGlobal (Int32 cb) [0x00000] in <filename unknown>:0 at XInputDotNetPure.GamePad.GetState (PlayerIndex playerIndex) [0x00000] in <filename unknown>:0 at InControl.XInputDeviceManager.Worker () [0x00000] in <filename unknown>:0 at System.Environment.get_StackTrace() at ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Boolean IncludeStackTrace, Verbosity Verbosity) at ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Verbosity Verbosity) at ArcenDebugging.ArcenDebugLog(System.String Message, Verbosity Verbosity) at EngineConfig.WriteToErrorFile(System.String ErrorFile, System.String ErrorName, System.String ErrorText, Boolean SuppressArcenDebugLog) at EngineConfig.WriteToErrorFile(System.String ErrorFile, System.String ErrorName, System.String ErrorText) at MainCameraLogic.LogWritten(System.String LogString, System.String StackTrace, LogType Type, System.Exception Cause, Boolean CameFromUnity) at MainCameraLogic.LogWritten(System.String LogString, System.String StackTrace, LogType Type, System.Exception Cause) at MainCameraLogic.OnGUI() | ||||
Tags | No tags attached. | ||||
|
Thank you! * Fixed a memory leak in XInput. ** Thanks to Andre Steiger for reporting, and even linking the fix! |
Date Modified | Username | Field | Change |
---|---|---|---|
Mar 3, 2022 10:26 am | Andre Steiger | New Issue | |
Mar 3, 2022 12:10 pm | Chris_McElligottPark | Description Updated | |
Mar 3, 2022 6:51 pm | Chris_McElligottPark | Assigned To | => Chris_McElligottPark |
Mar 3, 2022 6:51 pm | Chris_McElligottPark | Status | new => resolved |
Mar 3, 2022 6:51 pm | Chris_McElligottPark | Resolution | open => fixed |
Mar 3, 2022 6:51 pm | Chris_McElligottPark | Fixed in Version | => 2.601 (XInput Fix) |
Mar 3, 2022 6:51 pm | Chris_McElligottPark | Note Added: 0065092 |