The World Will Shake(1939)

In this sci-fi film, a scientist invents a prescient machine that can tell people when they will die. Oddly enough, the people do not want to know and therefore begin to riot…