Hello Guest

GL error 0x505 while drawing elements

  • 3 Replies
  • 5534 Views
GL error 0x505 while drawing elements
« on: October 30, 2019, 05:05:28 »
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.

*

Offline KaiHH

  • ****
  • 334
Re: GL error 0x505 while drawing elements
« Reply #1 on: October 30, 2019, 08:57:02 »
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).

Re: GL error 0x505 while drawing elements
« Reply #2 on: October 30, 2019, 10:47:32 »
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?
« Last Edit: October 30, 2019, 10:53:26 by 128_bit_guy »

Re: GL error 0x505 while drawing elements
« Reply #3 on: October 30, 2019, 10:49:56 »
Also if i look in task manager it says that gpu memory is almost free.