I experienced this issue once in a while especially when I use 3rd party USB charger, not the bundled one with 838pro. In my case I did soft-reset few times before it's able to charge while device is ON.
But 2nd thought, this could cause by hardware too.