home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


glDraw[Range]Elements end is out of bounds

by oibaf on 12/03/2009 12:53, 14 messages, last message: 10/08/2010 15:08, 4415 views, last view: 10/13/2021 15:55

Hi, I am getting this corruption when playing campaign -> Private Stan Sauer -> Part II after going up the stairs, and advancing through the ogre:
http://img692.imageshack.us/img692/8545/sauercorruption.png

Having compiled mesa with --enable-debug I also get these warnings when I got the corruption:

Mesa warning: glDraw[Range]Elements(start 21499, end 21522, count 36, type 0x1403, indices=0x1227c)
end is out of bounds (max=90) Element Buffer 14 (size 74436)
This should probably be fixed in the application.
Mesa warning: glDraw[Range]Elements(start 21499, end 21522, count 36, type 0x1403, indices=0x1227c)
index=21522 is out of bounds (max=90) Element Buffer 14 (size 74436)
Skipping the glDrawRangeElements() call
...

This sound similar to a Nexuiz bug that was then fixed:
http://bugs.freedesktop.org/show_bug.cgi?id=22743

I am using:
GL_RENDERER = Mesa DRI R300 (RV530 71C5) 20090101 x86/MMX/SSE2 TCL
GL_VERSION = 1.5 Mesa 7.7-rc1

This only happens when shaders are enabled. Let me know if you need more info.

   Board Index   

#1: ..

by eihrul on 12/03/2009 15:31

That gives me almost no useful information as to what is going on.

reply to this message

#2: ..

by oibaf on 12/04/2009 17:53

I am no longer able to reproduce it today. Probably it was a problem with the mesa driver. I'll let you know if there are news.

reply to this message

#3: ..

by oibaf on 10/05/2010 16:10

I still can reproduce this bug. The warning message from mesa apparently says that there is a bug in sauerbraten:

Mesa warning: glDraw[Range]Elements(start 8484, end 10528, count 3642, type 0x1403, indices=0x843c)
end is out of bounds (max=90) Element Buffer 11 (size 62088)
This should probably be fixed in the application.
Mesa warning: glDraw[Range]Elements(start 8484, end 10528, count 3642, type 0x1403, indices=0x843c)
index=10528 is out of bounds (max=90) Element Buffer 11 (size 62088)
Skipping the glDrawRangeElements() call
...

I am using 20100728 and it also happens on douze map.

reply to this message

#4: Re: ..

by eihrul on 10/05/2010 16:59, refers to #3

I see no problems in Sauerbraten at all. The sizes of the arrays and indexes are all within bounds as far as I can see, and it would rather appear there is some bug in Mesa itself?

reply to this message

#5: ..

by oibaf on 10/05/2010 17:13

I opened a mesa bug for this problem:
https://bugs.freedesktop.org/show_bug.cgi?id=30629

reply to this message

#6: ..

by oibaf on 10/05/2010 18:05

Note: I just reported this same problem for the 0ad game that revealed a 0ad bug just fixed:
http://www.wildfiregames.com/forum/index.php?showtopic=13617&st=0&p=211847&#entry211847

reply to this message

#7: ..

by oibaf on 10/06/2010 09:18

The right link to 0ad fix is:
http://www.wildfiregames.com/forum/index.php?s=&showtopic=13617&view=findpost&p=211848

reply to this message

#8: ..

by oibaf on 10/06/2010 14:01

I also added a backtrace with mesa and sauerbraten symbols with the mesa bug:
https://bugs.freedesktop.org/show_bug.cgi?id=30629#c1

reply to this message

#9: Re: ..

by eihrul on 10/06/2010 20:42, refers to #8

You need to find out where the particular buffer that is causing the problem is actually getting bound in the code:

TexCoord[0]: Ptr=0xc, Type=0x1406, Size=2, ElemSize=8, Stride=20, Buffer=38(Size 1820), MaxElem=91

That one. Figure out which glBindBuffer_() call is doing it and let me know.

reply to this message

#10: Re: ..

by eihrul on 10/06/2010 21:09, refers to #9

I committed a potential fix to Sauer SVN. Please check out the latest code, build, and see if it fixes the issue.

reply to this message

#11: ..

by oibaf on 10/07/2010 10:17

OK, I tried using bin_linux/linux_client from svn and this issue no longer appears.

I get an:
...
init: cfg
unexpected ")"
init: mainloop
...

while starting the game

and hundreds of:
unknown command: pop
1) guilistsplit

when going to options but maybe that's because I used the binary from svn with the data from ubuntu package 20100728.

reply to this message

#12: Re: ..

by eihrul on 10/07/2010 16:28, refers to #11

You need updated data. However, you need to tell me the binary actually fixed your Mesa issue or not?

reply to this message

#13: ..

by oibaf on 10/08/2010 10:36

Yes, I already say that it fixed the issue, Thanks.

reply to this message

#14: ..

by oibaf on 10/08/2010 15:08

Having downloaded all the 1.2GB from the SVN I confirm that also the game warnings:
* unexpected ")"
* unknown command: pop 1) guilistsplit no longer appear.

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2021
website by SleepwalkR © 2001-2021
41825181 visitors requested 57480850 pages
page created in 0.006 seconds using 10 queries
hosted by Boost Digital