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

Use the improved Iterator functions for players & ents in loops #3255

Closed
wants to merge 3 commits into from
Closed

Use the improved Iterator functions for players & ents in loops #3255

wants to merge 3 commits into from

Conversation

Luiggi33
Copy link
Contributor

No description provided.

@Luiggi33
Copy link
Contributor Author

i forgot about the libs, i will remove them from this commit

@FlorianLeChat
Copy link
Contributor

These two new functions may suffer from a client-side synchronization issue, we'll probably have to wait and see if this is confirmed with other reports

@Luiggi33
Copy link
Contributor Author

I saw that aswell, the chance is low but shouldn't be ignored

@FPtje
Copy link
Owner

FPtje commented Mar 21, 2024

Thanks for the PR! Let's wait for upstream to make sure the function is stable

@FPtje
Copy link
Owner

FPtje commented Apr 9, 2024

The linked issue doesn't seem to be moving much. I feel rather uneasy about merging this, since it could display the problems of the other issue.

I'm sure that the issue would be found more quickly if I merge this, but that would go at the cost of the server owners and players.

Is anyone actively investigating the issue?

@Luiggi33
Copy link
Contributor Author

Luiggi33 commented Apr 9, 2024

I haven't had the time to properly check it out, but this seems to be some cleanup related issue?
On the server I'm maintaining, I switched everything to the iterators and have yet to report an instance of this bug. I don't expect to run into this issue tho, because we don't use the gmod map cleanup anyways...

You could merge it, but not update the workshop addon, which would in turn probably trigger the error only on more techsavvy servers?

@FPtje
Copy link
Owner

FPtje commented May 27, 2024

It looks like the mentioned issue has no reproducible case just yet. It also looks like those iterator is sensitive to addons returning and/or throwing errors in some hooks: https://wiki.facepunch.com/gmod/ents.Iterator

Looks like it's too much of a risk to merge this. Thanks again for the PR, but I'll have to deny it.

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