Arduino Uno Strucks Randomly

If code is unresponsive, no lights flashing, no messages to the serial console etc. , then you can start suspecting statements like the following:

while (fifoCount < packetSize) fifoCount = mpu.getFIFOCount();

This may block and no message is generated.