Though I would be surprised if not once in human history in some kangaroo court a dead person was put on trial for a crime.
edit: Here's one though it resulted in a mistrial
https://en.wikipedia.org/wiki/Henry_Plummer