Unphysical heating and macroparticle trapping that arise in the numerical modeling of laser wakefield accelerators using particle-in-cell codes are investigated. A dark current free laser wakefield accelerator stage, in which no trapping of background plasma electrons into the plasma wave should occur, and a highly nonlinear cavitated wake with self-trapping, are modeled. Numerical errors can l...