Comments (3)
Please say which OS you have, and GL driver you have installed.
If you can provide the trace, that would be the best. If the trace is big then please upload to some web server. You can send it to my privately (to jose dot r dot fonseca at gmail dot com) and package inside a password protected.
Otherwise, if you're on Linux/Darwin, please invoke:
$ gdb --args glretrace -v /path/to/trace/that/causes/crash
(gdb) run
...
crash will happen
(gdb) bt
from apitrace.
And paste the final output of that.
from apitrace.
This was a bug on the r600 gallium GL driver.
These were the last calls when retracing:
glTexCoordPointer(size = 2, type = GL_FLOAT, stride = 24, pointer = blob(2576))
glColorPointer(size = 4, type = GL_UNSIGNED_BYTE, stride = 24, pointer = blob(2572))
glVertexPointer(size = 3, type = GL_FLOAT, stride = 24, pointer = blob(2580))
glDrawElementsBaseVertex(mode = GL_TRIANGLE_STRIP, count = 110, type = GL_UNSIGNED_SHORT, indices = blob(220), basevertex = 54)
the biggest index in the "indices" buffer is 53.
apitrace recorded precisely the amount of data necessary:
blob size = (maxIndex + basevertex)*stride + size * sizeType
>>> (53 + 54)*24 + 2 * 4
2576
>>> (53 + 54)*24 + 4 * 1
2572
>>> (53 + 54)*24 + 3 * 4
2580
but the GL driver tried to read more that.
This is likely because the GL driver is mis-calculating the vertex data size, using more the approximate bug wrong formula of:
blob size = (maxIndex + basevertex + 1)*stride
>>> (53 + 54 +1)*24
2592
which ends up causing reading a few extra bytes. This is a common and recurrent mistake on Mesa.
You'll need to file a bug within the GL driver.
from apitrace.
Related Issues (20)
- GL game "Beyond All Reason" window overestimated by glretrace HOT 11
- Unvanquished fonts issues
- If I want to upgrade apitrace's support for OpenGL to version 4.6 HOT 1
- Replacement of shader via glDetachShader + glAttachShader leads to link error HOT 2
- eglretrace crashes on rayman2_gl trace
- Can Apitrace support retrace through EGL on Windows HOT 2
- loop option doesn't work for specific trace HOT 1
- retrace --loop crashes when VAO is created in setup frame and deleted in loop frame HOT 1
- Tellusim Upscaler (Star Wars) 20230513 trace doesn't work properly
- Failed to capture trace of wgf11filter HOT 1
- Build system complains about uncloned submodules for bundled dependencies even when using dependencies from system HOT 4
- Bug recording instanced draw calls with user arrays HOT 18
- [enhancement] replace zlib HOT 1
- Feature Request: Attach apitrace to Already Running Processes HOT 4
- During tracing gl-500-texture-cube-arb.exe, missing cube map HOT 2
- Wolfenstein: The Old Blood tracing broken due to abuse of GL_MAP_PERSISTENT_BIT mappings HOT 19
- trimming broken for some traces HOT 7
- capture/replay broken for indirect draws HOT 15
- Commit cff22f0 Introduces Segfault HOT 3
- eglQueryDevicesEXT egl spec definition wrong HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apitrace.