GL error 0x505 while drawing elements
I get gl error 0x505 (out of memory) when drawing elements for seemingly no reason. I have a lot of free GPU memory when this happens. Eventually, aftor a lot of this errors i get this crash: https://pastebin.com/8HDkqVqj. Please help.
Try running your program with https://github.com/LWJGLX/debug#how .
A crash in a draw call is in 99.99999% of the cases an enabled generic vertex attribute (via glEnableVertexAttribArray) which has no buffer source (via glVertexAttribPointer).
No, it's not because of attribute. Debug addon prints: "failed to allocate memory for buffer object" when i try to draw buffer. Shouldn't opengl allocate memory when i invoke glBufferData?
Also if i look in task manager it says that gpu memory is almost free.
我在用cocos2dx+lua开发一个android游戏,游戏运行一段时间后,会报’opengl error 0x505’,也就是内存不足的问题。我用cocos2d::CCTextureCache::sharedTextureCache()->dumpCachedTextureInfo(); 打印了纹理信息,根据输出,纹理大小70M的时候没有出现’error 0x505’,但过一段时间后,纹理大小35M左右的时间却出现了内存不足。为什么在纹理大小不是峰值的时候会出现内存不足呢?
https://www.khronos.org/opengl/wiki/OpenGL_Error
GL_OUT_OF_MEMORY, 0x0505