Surrogates is a 2009 film Starring Bruce Willis and Rosamund Pike.
Plot (may contain spoilers
Set in a futuristic society where humans interact with the world via the use of mechanical humanoid robots, called Surrogates. The advent of which has led to many things such as; Injury and Pain are no longer a regular occurrence. Less fear has also resulted in more adventurous lifestyles, and crime is at an all time low.
After many years without one, Greer (Bruce Willis) is tasked with solving a murder case. A man has been killed outside of a nightclub, we soon discover this has also led to the death of the person operating the surrogate, something which is not meant to happen due to built in fail safes.