In most cases, poorly written device drivers and hardware failures are the two most common factors that make an operating system crash.