Arcitectus / Sanderling

APIs and libraries to read information directly from the EVE Online game client.
https://forum.botlab.org
Apache License 2.0
259 stars 117 forks source link

System.OutOfMemoryException after typing a "." after some object. #26

Closed ghost closed 7 years ago

ghost commented 7 years ago

I have 6gb of ram, 4 is used up, so I am not out of memory. However, sometimes when I type a . after an object like for example "Sanderling." and the list of things tries to drop down I get a big window full of errors. Ontop it says:

{Type:"System.OutOfMemoryException",Message:"Insufficient memory to continue the execution of the program.",InnerException:null,StackTrace:" at System.Runtime.InteropServices.Marshal.AllocHGlobal(IntPtr cb)

The exception error is saved to a text file. 2017.05.17.00.40.39 Exception.txt

I've been getting a lot of these throughout the time I am writing code in Sanderling.

My PC stats: Windows 10 Pro, i3 3.1gz dual virtualized core, 6gb ram, Radeon HD 4650 512mb vid card, 250gb HDD

Programs Opened: Windows Explorer, Google Chrome, Notepad++, Paint.net, Eve game, Sanderling

Viir commented 7 years ago

It looks like there are peaks in memory usage which make it exhaust the memory address space available to 32 bit processes.

One way to go about this would be to increase the amount of addressable memory by running the sanderling executable as 64 Bit process. Switching to a 64 bit process might require implementation of some of the funtions calling into windows API to support this scenario.

Viir commented 7 years ago

I created a new release to test the 64 Bit version. You can download it at https://github.com/Arcitectus/Sanderling/releases/tag/v17.05.18

Do you see any issues with version 17.05.18?

Viir commented 7 years ago

Closing this since the issue did not appear anymore after switching to version 17.05.18.