Exception VM Pendant le traitement de la transaction: retourne

// one reason this could happen is when you declair a memory array 
// but you don't set it's legnth.
uint[] memory array; // will cause the error

uint[] memory array = new uint[](<lenght>); // where <length> is the array length

// this is because memory arrays can't have a dinamic size
Sheeeev66