Skip to content

Out of mem#159

Merged
NicEastvillage merged 2 commits into
masterfrom
out-of-mem
May 26, 2026
Merged

Out of mem#159
NicEastvillage merged 2 commits into
masterfrom
out-of-mem

Conversation

@VirxEC
Copy link
Copy Markdown
Collaborator

@VirxEC VirxEC commented May 25, 2026

If the log file is too big, reading the whole thing might fill up system RAM:

System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
   at System.Text.StringBuilder.ExpandByABlock(Int32) + 0x127
   at System.Text.StringBuilder.AppendWithExpansion(Char&, Int32) + 0x9a
   at System.Text.StringBuilder.Append(Char[], Int32, Int32) + 0x45
   at System.IO.StreamReader.ReadToEnd() + 0x56
   at System.IO.File.ReadAllText(String, Encoding) + 0x77
   at WinReadLog.GetGamePathAndAuth() + 0x60
   at RLBotCS.ManagerTools.LaunchManager.LaunchRocketLeague(Launcher, String, Int32) + 0x460
   at RLBotCS.ManagerTools.MatchStarter.StartMatch(MatchConfigurationT, PlayerSpawner) + 0x69
   at RLBotCS.Server.BridgeMessage.StartMatch.HandleMessage(BridgeContext) + 0x85
   at RLBotCS.Server.BridgeHandler.<HandleInternalMessages>d__5.MoveNext() + 0x34e

We now stream the file line-by-line to improve RAM efficiency when trying to read the log.

@NicEastvillage NicEastvillage merged commit c10d468 into master May 26, 2026
3 checks passed
@NicEastvillage NicEastvillage deleted the out-of-mem branch May 26, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants