-
Notifications
You must be signed in to change notification settings - Fork 636
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
[GoldSource] Texture overflow: GL_MAXTEXTURES crash #2234
Comments
This is a common issue on a lot of mod servers when switching between servers continuously, if someone got the original output on when this crash occurs, would help a lot. |
There are a maximum of 4800 textures that can be loaded. Normally textures are unloaded when the client starts preparing to load a new map. It looks like this part works fine. Edit: everything below here is wrong, see comment below. The part that doesn't is the code that reuses texture entries that were freed:
This is from
This code is supposed to find the first free entry (servercount < 0), but it instead stops searching when it encounters a single texture in use. As a result To fix this, the loop needs to be changed to this:
Now it will skip entries in use and correctly reuse free entries. @mikela-valve This should be fairly simple to fix and test. |
Thanks @SamVanheer appreciated your work. @kisak-valve fix proposed? Thanks. |
Sorry, i got this wrong. There's an outer loop that ensures it iterates over each texture. I did find what i think is the problem: in
And in
All textures other than the world (map textures) are never unloaded. An easy fix is to always use
It looks like hud sprites are always |
I'm going to delay this until after the next release as I'd like it to be in a beta that has fewer changes in it to make it easier to notice if any issues arise from unloading these other texture types. |
@mikela-valve Now that we got a clean beta and the latest update got released officially would like you to take a look at this issue because is a very common one on modded servers. |
Any news about this? It's a bit annoying nowadays |
@mikela-valve can you fix this? |
I would also gladly see this fix applied as it is a common issue nowadays. |
Nothing? @mikela-valve it is a frequent error this days, will this ever be considerated on a future release? |
@mikela-valve Sorry for bothering you with this one, is there a chance for this issue to be somehow added into the beta now that there are almost 0 issues with it? It is a annoying bug that is pretty common nowadays. |
considerating we're getting updates for the game, can you please take a look at this issue? @mikela-valve thanks in advance |
This is very annoying, can you take a look at it please? @mikela-valve |
You don't all have to get his attention, one person calling for him is more than enough. And the issue is already assigned to the next release milestone so it's a priority issue anyway. |
When will it be? after 5 years? or will not at all. @mikela-valve P.S Do you have an idea how to fix it? Texture overflow: GL_MAXTEXTURES. |
This is a high priority issue which is ruining actual gameplay, and also an excuse for players to use pirate software (to fix it) because most servers are modded nowadays with lots of resources, bringing a high chance to suffer this crash - @mikela-valve may I ask again, is there a chance to get this fixed? |
Agreed with @PM32, got this error on most of servers (i have my own modded server and my client suffers with this error) |
@mikela-valve can you please fix it? is not that hard
On Saturday, November 14, 2020, 01:42:51 AM GMT+2, Alexander Zhukov <notifications@github.com> wrote:
Agreed with @PM32, got this error on most of servers (i have my own modded server and my client suffers with this error)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Is not about difficulty, he doesn't have time to work on goldsrc. |
15 minutes work. and you say he doesn't have time to work? Lol... |
Supporting a 22 year old game is about as low priority as it gets, and chances are the source code isn't even accessible remotely so they can't work on it until the pandemic is under control. All you can do is be patient. |
@Solokiller IMHO, it looks like the issue is that the |
True, it doesn't seem to ever decrement that variable. However it does reuse texture slots that were unloaded so the error should only occur if all 4800 slots are in use at the same time. If the error occurs after a certain amount of time rather than when loading a particular map or other assets then it isn't clearing those slots correctly. |
three years later, without news, we also provide the code with the solution ... they just have to implement and test it. |
@MatiasEsf, because nobody cares more about this game |
@mikela-valve up? |
anyone fix it? |
Sometimes when you are on a server with a lot of textures (I guess this is the reason based on the error code) and you keep switching between servers, your client will crash randomly. I can't really tell how to reproduce it so if someone has extra info would be amazing.
The text was updated successfully, but these errors were encountered: