Question Camera restarts my Magic..

Occasionaly, opening the camera reboots my phone, after reboot it work fine a couple of times and then reboots the phone again... Anyone knows what to do?

I am running CM-32A-port with android 2.0 eclair theme on an HTC-branded Magic.

Thanks