Yes. I see in the debugger that you're getting an error due to calling vec_set() with an invalid pointer for the first vector. Should not be hard to find, check the vec_set commands in the code.