HELP: Why do my Samsung S4 keep restarting when it deals with camera?

Please Help.

I have had my Samsung S4 for about 4 weeks

Up until now,it runs smoothly and I am really satisfy to move to Android Army.

However, I found out an annoying (or very annoying) problem on my device. It occasionally restart itself when it has something to do with the camera. Whether I open the camera from lock screen, home screen, instagram, or even path, it is all the same. Not always, but pretty often.

Is it only happen to me or there is anybody who face the same challenge?

is it more into software or hardware problem? and what should I do, since i do not really know with stuff like this.

Thanks