mpu6050/9150 IMU 'teapot' demo - intermittent freezing

Hi all! This is probably the best area to post my question. Anybody here tried out and used the graphical 'MPU teapot' demo arduino code that works along side the software called 'Processing' that allows us to move the mpu6050 gyroscope/accelerator module board around, which makes the graphical '3D' teapot spin around in the graphical screen?

I notice that the demo does work. The teapot does indeed rotate when the IMU board is moved around. I do get some hiccups ...... intermittent freezing/lockup of the graphical teapot display. Once locked-up, it's usually necessary to shut-down the 'Processing' software, then disconnect and reconnect the UNO board's USB cable from the PC USB port (I'm using MEGA 2560), then start up the Processing software again. Everything will start working again ..... then after some time.... could be seconds.... could be minutes, or even 5 mins later....... freeze again.

Anybody experienced something similar to what I described? If so ..... did you manage to figure out how to sort out the intermittent freezing? Thanks for any recommendations about what I can try to cut down or even eliminate the freezes --- would be fantastic. In the meantime, I can scout around and see if I can spot anything that might offer some clues leading to the intermittent freeze.

Update: after doing some checking ------ I noticed that touching the wires connected to SCA and SCL of the MEGA 2560 (pins 20 and 21) guaranteed either freezing or glitch in the graphical 3D 'teapot' display.

So I assumed the issue was noise and/or capacitive effects. But, after that, I decided to check the supply voltage for the MPU9150 IMU board, which I noticed was connected to 5V supply on the arduino.

HOWEVER, I decided to re-check the manufacturer specified voltage for the MPU9150, which turns out to be 3.3V. So, after connecting the MPU9150 to the correct supply voltage (ie. correct supply voltage is 3.3V), everything appears to be working normally. No more issues.

So two things here ----- I messed up with the supply voltage for the mpu9150 --- actually -- had inadvertently assumed 5V when I was connecting up. Should have connected to 3.3V instead. And the MPU was sort of working with 5V, but the out of specs voltage led to operation issues - expected.
Just posting this - in case anybody goes down the same wrong path like I did.

At first, the lock-up with touching SCA and SCL wires (especially near the connection point on the arduino) appeared to linked to the 'issue'. But that was really a case of barking up the wrong tree. Interesting effect.