I have my raspberry pi 3 b v1.2 (2015), connected to a monitor, keyboard, mouse and Rasperry Pi cam V2. When I run the basic raspistill -v -o test.jpg the camera displays an image for a couple seconds, but glitches the GUI and then crashes. (you can see what I mean from the photos I have attached) When I try running a basic python code using opencv the program freezes the pi and fails to display an image.
Here’s what I’ve done to troubleshoot so far:
- Reconnecting the cables and check that ribbon cable is seated properly at both the Pi board and camera
- updating the firmware and all the necessary packages
- increasing the GPU memory
- checking the power supply is sufficient
Do you have any idea on what might be the problem?

Hi Madeline,
What version of Raspbian are you running? Have you run an upgrade lately?
sudo apt-get update
sudo apt-get upgrade
I have updated Raspbian. This did not solve my problem.
With anything to do with the Pi Cam, it is always worth checking the SMD connector as shown in this picture.

I pushed in all the connections. I tried upgrading it again, it seems like when I initially did the upgrades some packages didn’t install. It seems to be working now, thanks for the help. 
2 Likes
Upgrading can be a hit and miss. The Raspbian archive sometimes takes too long to respond and can depend on the time of day. If the upgrade uses the Australian mirror I usually have no problem. I have found the following to work best. (apt gives better information than apt-get)
sudo apt update
sudo apt install
sudo apt upgrade
With one design I thought the upgrade had broken the Pi operating system. But when I checked the script it showed a package had not loaded correctly.
Cheers
Jim
2 Likes