Repository navigation
Fix an editbox freeze, lobby listener leaks and small errors - #925
Open
moss-orbit-9f339e wants to merge 11 commits into
Open
moss-orbit-9f339e wants to merge 11 commits into
moss-orbit-9f339e wants to merge 11 commits into
Conversation
…control Cached user controls are reinitialized on every request while the main lobby is disconnected, e.g. each time singleplayer skirmish is reopened. Each pass appended another resize closure to the same control; replace the previous one instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each console added an OnConfigurationChange listener that was never removed, so every closed channel or private chat stayed in memory. Console:Delete now removes it, and the chat close buttons call Delete. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…moved Every battle join builds a new status panel that registers twelve lobby listeners, and none were removed, so old panels stayed in memory and kept handling every battle update. Remove them when the panel is disposed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each module button adds a resize function to the persistent list panel. Clear removed the buttons but not these functions, so every loadout rebuild (save load, level up) kept the old name boxes and their resize work. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…osed Cancelling the Steam registration dialog disposes its window and sets window to nil, but the dialog stays current. A later "name already exists" reply then called ShowPassword, which errored on the missing window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The filter terms were used as Lua patterns, so typing characters such
as '[', '(' or '%' raised an error and stopped the filtering.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The popup's close function was Start, so Cancel or Escape connected to the host at once instead of cancelling. Cancel now drops the pending connection, and the delayed start connects before closing the popup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When an effect shader failed to compile, SetEffect logged "No such effect" and then indexed the missing effect, so the rank-up popup errored before it was shown. Return after logging and leave the control as it is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…empty A mouse selection can end inside a multibyte character. Deleting it stepped over that end and the loop never stopped, freezing the lobby; stop once the cursor reaches or passes it. Ctrl+A on an empty multiline box indexed a missing last line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reusing the hover link made MakeWeakLink add another closure to the link's metatable and another entry to the control's link list on every hover change, so both grew while the mouse moved over the lobby. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closing a channel or a private chat left the console in self.tabbars (and the channel user list in self.userListPanels), so it was never freed. These entries are now cleared; they are set again when the console is opened again. The battle room console now calls Console:Delete when the battle room closes, so its configuration listener goes away. Found by a Codex review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ten more lobby fixes, one commit each. They do not change files from #924.
Errors and wrong behaviour
ClearSelectedlooped until the cursor was equal to the selection start, but when the selection ends inside a multibyte character,Utf8BackspaceAtsteps over the start. Ctrl+A in an empty multiline box indexedself.lines[0].ShowPasswordon a window that no longer existed.Start, so it connected instead of cancelling.-,.or[in the search gave wrong results or an error. It is now plain text.SetEffectlogged "No such effect" and then continued with a nil effect.Leaks
Deletenow removes it, and both chat close buttons callDelete.Clearnow removes them.Testing (Windows, RTX 3080, engine 2026.09.01-17-gad28d7b)
e0b6e2feand this branch: both log only the Some Lua nil error #922 error (fixed in Fix Lua errors, wrong behaviour and leaks in the lobby #924). There are no new errors, and the other log lines are the same.luac5.1 -p.Update after review (e26355e): closing a channel or a private chat also clears its entries in tabbars and userListPanels, and the battle room console calls Console:Delete when the battle room closes. Lobby start in menu mode (offline): no new LuaMenu errors (the one error on master is fixed by #924).
AI disclosure: OpenAI Codex (GPT-6.1 Sol) and GLM 5.3 found these bugs in code reviews. Claude Code reviewed each fix, made several of them smaller, and ran the tests. I reviewed the changes.
🤖 Generated with Claude Code