Updating preview not working

Whenever I preview my project, it works, but then if I press update preview/apply changes to preview, the loading bar just stays at around 95% and doesn’t move.