Comment 25 for bug 1927992

Revision history for this message
Alberts Muktupāvels (muktupavels) wrote :

Crash happens in plugins/opengl/src/vertexbuffer.cpp:167 because of trying to access first array element while it is empty. getVertices is used in plugins/animation/src/grid.cpp:283.

From stacktrace oheight is 45 and calculated gridH is 0.454545468. From that mGridHeight is 100. gridH is passed to glAddGeometry as maxGridHeight which is unsigned int meaning that gridH is most likly rounded down/truncated to 0.

glAddGeometry is in plugins/opengl/src/paint.cpp. addQuads is used to fill vertexBuffer and it has early return if maxGridWidth or maxGridHeight is 0. This explains why vertexData is empty.

I don't know what might be correct fix for this, but this does not look like could have been caused by recent changes in compiz. Did you try to build older version to confirm it does not crash without recent commits?