View Issue Details

IDProjectCategoryView StatusLast Update
0028077Runner3DPublic2018-10-29 09:50
ReporterTheSnidrAssigned ToMike Rennie 
PriorityHighSeverityA - Crash/HangReproducibility100%
Status ClosedResolutionFixed 
Product VersionPre-2.1.3 
Target Version2.2.1Fixed in Version2.2.1 
Summary0028077: 3D: Crash when drawing vertex formats with two colour parameters
DescriptionI'm experiencing crashes without error reports when using vertex formats.
The format has 3D position, normal, texture coords and two colour parameters. I'm unable to reproduce the crash with just one colour parameter.

When drawing models with 0000031:0000020 000 triangles, or when drawing multiple models with lower triangle count, the game crashes. Strangely, I can draw larger models without crashing.

I've made a stress test project for you, please look at it and see if you can reproduce the error.
Steps To Reproduce//Create the format
vertex_format_begin();
vertex_format_add_position_3d();
vertex_format_add_normal();
vertex_format_add_texcoord();
vertex_format_add_color();
vertex_format_add_color();
format = vertex_format_end();

//Create the vertex buffer
vbuff = vertex_create_buffer();
vertex_begin(vbuff, format);
repeat 20000 * 3
{
    vertex_position_3d(vbuff, random(room_width), random(room_height), 0);
    vertex_normal(vbuff, 0, 0, 0);
    vertex_texcoord(vbuff, 0, 0);
    vertex_color(vbuff, 0, 0);
    vertex_color(vbuff, 0, 0);
}
vertex_end(vbuff);


//Draw the vertex buffer
vertex_submit(vbuff, pr_trianglelist, -1);
Tagsrendering, Runner, Shader
1.4 Found In1.4.17
2.x Runtime Found In2.1.1.158
2.x Runtime Verified In2.2.1.268

Activities

TheSnidr

2017-10-17 10:48

Updater  

VertexBufferStressTest.yyz (14,438 bytes)