There is an error with the indices vector of the Cube which make the program unable to uses UV coordinates with a cube object.
The indices vector or the uvs vector is to blame: there are 24 indices asked in the indices vector but only 4 provided by uvs vector.