I am trying to create a simple lane detection program. My input is a road video. The program works fine for a few seconds, however, it suddenly gives the following error: