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

Feature: Debug long-term entity id issues. #125

Open
DaanVanYperen opened this issue May 18, 2019 · 2 comments
Open

Feature: Debug long-term entity id issues. #125

DaanVanYperen opened this issue May 18, 2019 · 2 comments

Comments

@DaanVanYperen
Copy link
Owner

Option to hold deleted entity ids for X seconds before allowing them to be reused. This helps debugging dangling references that get recycled.

@Namek
Copy link
Contributor

Namek commented Jul 11, 2019

So it would crash on getting an entity by (invalid) id? Have you tried it in practice with some plugin of yours, maybe?

Is this really a common problem? Just curious for the sake of my project, also I'm not making enough games lately.

@DaanVanYperen
Copy link
Owner Author

So it would crash on getting an entity by (invalid) id?

It would report illegally access to the deleted entity, and report the stack trace of wherever the entity was deleted. Much like the rest of the debug plugin https://github.com/DaanVanYperen/artemis-odb-contrib/wiki/Debugger-Plugin

It's caused by user error when referencing entity ids. @entityid should mitigate it in most cases (assuming junkdog/artemis-odb#574 gets fixed). When it does happen, it can cause all sort of weird bugs and tracing the origin can be really hard.

I still run into it myself ever so often so for me its a worthwhile feature to add to the debug plugin.

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

No branches or pull requests

2 participants