Sultan Idris Shah II was the frontrunner to be elected Malaysia's eighth Yang Di-Pertuan Agong. However it was fated that on 31 January 1984, a week before being elected by his all Malay rulers, he suddenly died after suffering a heart attack at the Angkatan Tentera Hospital, Lumut at 11:15 pm.