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

Crash in enet_free #263

Open
Evildea opened this issue Aug 3, 2024 · 2 comments
Open

Crash in enet_free #263

Evildea opened this issue Aug 3, 2024 · 2 comments

Comments

@Evildea
Copy link

Evildea commented Aug 3, 2024

Hi,

Not sure if this is a me issue or a potential bug. When using ENet after running for a few minutes in my game I randomly get a crash at this point.
image

Full stack is here:
image

image

Would love some guidance. Thanks!

@Evildea
Copy link
Author

Evildea commented Aug 3, 2024

I figured out the issue. It was a me issue.
Basically, I missed the fact that enet_host_service() handles both receive and send messages. I assumed for whatever reason it only handled receive messages which meant I put it in a separate thread to where I was sending messages from. Obviously leading to corruption. I'll leave this up just in case anyone else encounters this issue.

@bjorn
Copy link

bjorn commented Aug 9, 2024

I'll leave this up just in case anyone else encounters this issue.

Since it's not an open issue with ENet, I would suggest you rather close it again. :-)

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