Page 1 of 1

GL_OUT_OF_MEMORY

PostPosted: Sat Jul 21, 2012 04:49
by Menche
Sometimes, when I play several games without starting the client, I see a sequence of blocks displayed in the lower-left corner while the game is loading, and get graphics glitches in my inventory. Some textures are missing, some are just white. It gives this repetetive output:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
21:44:26: ACTION[ServerThread]: singleplayer joins game. List of players: singleplayer
GL_OUT_OF_MEMORY
Could not bind Texture
GL_OUT_OF_MEMORY
Could not bind Texture
GL_OUT_OF_MEMORY
Could not bind Texture
GL_OUT_OF_MEMORY
Could not bind Texture
GL_OUT_OF_MEMORY
Could not bind Texture
GL_OUT_OF_MEMORY
Could not bind Texture
GL_OUT_OF_MEMORY
Could not bind Texture
GL_OUT_OF_MEMORY
Could not bind Texture
GL_OUT_OF_MEMORY
Could not bind Texture
GL_OUT_OF_MEMORY
Could not bind Texture
GL_OUT_OF_MEMORY
Could not bind Texture
GL_OUT_OF_MEMORY
Could not bind Texture
GL_OUT_OF_MEMORY
Could not bind Texture
GL_OUT_OF_MEMORY
Could not bind Texture
GL_OUT_OF_MEMORY
Could not bind Texture
GL_OUT_OF_MEMORY
Could not bind Texture
GL_OUT_OF_MEMORY
Could not bind Texture
GL_OUT_OF_MEMORY
Could not bind Texture
Font size: 8 15

I compiled the very latest git (as of July 20) on Linux.

PostPosted: Sat Jul 21, 2012 06:40
by sfan5
Minetest/Irrlicht doesn't free the GL Memory after use
Just restart Minetest

PostPosted: Sat Jul 21, 2012 09:45
by mauvebic
the more mods/nodes you have running more often you have to restart.

PostPosted: Sun Jul 22, 2012 14:24
by wokste
It may be that the VideoDriver does not free the textures. A few solutions could be:
- Only use getTexture() to load the texture. This will avoid multiple instances of the same texture.
- Make sure that all classes that load textures drop() and grab() them correctly