Error While Compile

Dear all,

I am facing some weird problem while comping. Here i am attaching The image of it.
I compiled simple blink program , But no error.When i compile below program it does.
Let me know how to solve this error and why it gives
I checked port and board selected are proper one . I.e UNO ONLY

Stack overflow error :
even my code size is not exceed the limit

OPEN_loop.rar (9.5 KB)

What is the first error ?