Skip to content

fix error crash#22

Closed
lmaosssdll wants to merge 30 commits intoTechStudent10:masterfrom
lmaosssdll:master
Closed

fix error crash#22
lmaosssdll wants to merge 30 commits intoTechStudent10:masterfrom
lmaosssdll:master

Conversation

@lmaosssdll
Copy link
Copy Markdown

Fix crash on lobby recreation & Add player profile viewing

This PR fixes a crash that happens when you leave a lobby and try to create a new one. The issue was caused by asynchronous callbacks executing on the main thread and trying to access a destroyed LobbyLayer (dangling pointer). To fix this, I added a std::shared_ptr m_alive lifecycle flag to safely check if the layer exists before running the callbacks. I also made sure to properly unbind all events in unregisterListeners.

Additionally, I added a small feature: clicking on a player's nickname in the lobby will now open their Geometry Dash profile page,tags for lobby, notifications when someone leaves or joins, and when someone sends a message..

@lmaosssdll
Copy link
Copy Markdown
Author

lowkey bad😭😭😭

Copy link
Copy Markdown
Owner

@TechStudent10 TechStudent10 left a comment

Choose a reason for hiding this comment

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

As cool as the tags feature is, I don't exactly want it the way it's being implemented here. Huge props for it, don't get me wrong, but I'd wanted implemented differently and would rather do it myself.

I'd honestly separate the bugfix for LobbyLayer::refresh into its own PR, and that would probably be something that I'd merge. I'd also appreciate if the comments were in English

@lmaosssdll
Copy link
Copy Markdown
Author

Okay the close?

@lmaosssdll
Copy link
Copy Markdown
Author

I just messing around with code and suggests

@lmaosssdll
Copy link
Copy Markdown
Author

I close pull req

@lmaosssdll lmaosssdll closed this Apr 3, 2026
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