Having the MotionAlertDialog immediately close is confusing for users. Let's show a message to tell them what went wrong.
std::fill
std::fill_n