The issue was with the AMD Radeon driver i recently upgraded, once i downgraded it everything went fine. The version i have is the one that was released on 03- Sep-2016. The version numbers are different on the site and different in my system. So its better to go with the date.