Default phone restart whine take any photo

Hi All
i have Samsung galaxy mega 5.8 gt-i9152 and when i take any photo phone suddenly restart
every time i take any photo this issue doing
how can i fix it
thanks
sorry about my English not good