Skip to content

#6117 Guard against stale nearby chat toast handles - #6120

Merged
marchcat merged 1 commit into
project/lua_editorfrom
marchcat/6117
Aug 12, 2026
Merged

#6117 Guard against stale nearby chat toast handles#6120
marchcat merged 1 commit into
project/lua_editorfrom
marchcat/6117

Conversation

@marchcat

Copy link
Copy Markdown
Contributor

Prevent nearby chat crashes.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens the nearby chat toast pooling logic to prevent crashes caused by stale LLHandle<LLToast> entries whose underlying LLToast objects have already been destroyed.

Changes:

  • Prunes destroyed toast handles from the pool when updating toast lifetime/fade settings.
  • Introduces getToastFromPool() to safely retrieve a live toast (discarding dead handles).
  • Updates addChat() to replenish the pool and avoid dereferencing a dead toast handle.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@marchcat
marchcat merged commit 21bb60f into project/lua_editor Aug 12, 2026
16 checks passed
@marchcat
marchcat deleted the marchcat/6117 branch August 12, 2026 17:15
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BugSplat Report: Second Life Project Lua Editor!LLFloaterIMNearbyChatScreenChannel::addChat(LLSD&)(352)

3 participants