not know what you tried or didn't
(...I've gone through a couple of forum to find a solution but to no avail... )
lets restate what you might have done
Is the computer under warranty? Call Apple, they'll fix it.
If not:
Reboot
Reboot and clear PRAM (CMD+Option+P+R) repeat until you hear the 3rd chime and let go of the keys
Remove all USB, FW, etc devices and reboot. If computer boots fine connect keyboard and mouse to log in.
Reboot into Safe Mode
Hold down SHIFT at boot, either one, keep held until system says "Safe Mode"
Boot from a repair USB or DVD etc by inserting the media (if you have it) and holding Option+O at boot until you get a list of bootable devices
or use recovery mode (CMD+R) go to the Disk Utility, select your disk in the window, check your disk and if necessary repair your disk or you may possibly need to reinstall Yosemite on your OS boot disk or your problem could be something more serious.
OS X: About OS X Recovery - Apple Support