Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bots] Verify Group Integrity during Bot::AddBotToGroup #2980

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

Aeadoin
Copy link
Contributor

@Aeadoin Aeadoin commented Feb 22, 2023

What: This PR aims to ensure the Bots Group is in a valid state when being joined. these checks are already being performed on Bot::LoadAndSpawnAllZonedBots, but not all scenarios are covered such as Bot group autospawn functionality, and regular invites.

Why:

Numerous crashes are being seen caused likely by dangling Group member pointers. This can be seen in the following crashes where we check if the pointer is nullptr, pointer is not null, and yet we still crash when trying to call a member function:

http://spire.akkadius.com/dev/release/22.4.2?id=691
http://spire.akkadius.com/dev/release/22.4.2?id=690
http://spire.akkadius.com/dev/release/22.4.2?id=709

Copy link
Contributor

@Kinglykrab Kinglykrab left a comment

Choose a reason for hiding this comment

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

Can’t hurt to have this. Hopefully it resolves some issues we’re seeing.

@Akkadius Akkadius merged commit 7c7a886 into EQEmu:master Feb 23, 2023
@Akkadius Akkadius mentioned this pull request Feb 25, 2023
@Aeadoin Aeadoin deleted the botgroups branch February 25, 2023 16:56
catapultam-habeo pushed a commit to catapultam-habeo/pyrelight-server that referenced this pull request Mar 27, 2023
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.

3 participants