Having a SIGSEGV by passing frame to cvtColor() routine in thread2 function.

Priority to solve it: Urgent!