jalna7
Posts: 1
Joined: Sat Aug 03, 2013 1:00 am

Re: Camera freezes

Sat Aug 03, 2013 1:40 am

I'm having the same problems with a new camera that I received yesterday. I have not been able to successfully get still image or video from the camera. Like others red light comes on and program hangs usually at "Closing down"
Tried two different pi versions 000e and 000f, both have been updated but no sucess

some times I get this, other times i get detected=0 and most of the time the command just hangs with the red led coming on
vcgencmd get_camera
supported=1 detected=1

the led seems to suggest to camera is working, but something else is wrong

User avatar
theoB610
Posts: 233
Joined: Sat Jan 05, 2013 12:40 pm
Location: Devon

Re: Camera freezes

Sat Aug 10, 2013 1:32 pm

So, I had pretty much the same problem- the red led stayed on and the command line froze.
Mine froze in a slightly different place- before even coming up with "camera component done"

Code: Select all

raspistill Camera App v1.1

Width 2592, Height 1944, quality 85, filename (null)
Time delay 5000, Raw no
Thumbnail enabled Yes, width 64, height 48, quality 35

Preview Yes, Full screen Yes
Preview window 0,0,1024,768
Opacity 255
Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 400, Video Stabilisation No, Exposure Compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
Then tried it on another pi, where it froze after creating the image file and saying

Code: Select all

Starting capture 1
I had not used the camera with this pi before, so it is unlikely to be a pi issue, more likely the board.
I have reconnected all the cables quite a few times, hopefully ruling that out.
At a guess, I would say that we have static-ised our boards and they are broken.
Bit of a shame really.

shakul
Posts: 1
Joined: Tue Aug 13, 2013 9:24 pm

Re: Camera freezes

Tue Aug 13, 2013 9:37 pm

FYI, I just got a new Pi and the camera board this morning and when I connected the camera, I experienced the issue people have described here in detail - running a simple command such as "raspistill -o image.jpg" froze the whole device (with red light on camera).

I tried reconnecting both ends of the ribbon cable and the small "sunny" connector and so far, so good - it appears to be working fine now! :D
Thanks for the tip!

BeJay
Posts: 32
Joined: Mon Aug 06, 2012 1:52 pm
Location: Western Australia

Re: Camera freezes

Wed Aug 14, 2013 5:53 am

My Camera is also locking the pi up when attempting to use the camera. I tried it with and without the external 32GB USB drive (hence the "/mnt/storage") but it still locks up. Camera shows a preivew on HDMI ok, but after around half of it's -t time it locks up. I've tried more GPU ram (256/split) but nothing seems to help it. Here is what happens:

Code: Select all

$ raspivid -o /mnt/storage/video.h264 -t 10000 -v

raspivid Camera App v1.2

Width 1920, Height 1080, filename /mnt/storage/video.h264
bitrate 17000000, framerate 30, time delay 10000
Preview Yes, Full screen Yes
Preview window 0,0,1024,768
Opacity 255
Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 400, Video Stabilisation No, Exposure compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
Camera component done
Encoder component done
Starting component connection stage
Connecting camera preview port to preview input port
Starting video preview
Connecting camera stills port to encoder input port
Opening output file "/mnt/storage/video.h264"
Enabling encoder output port
Starting video capture
Then nothing. I can't get to it from Eth0.

I've tried all the things listed so far... power... rpi-update... unplug -replug... standing on one leg when pressing enter.. ;)

Is there something else to try?

d_p
Posts: 2
Joined: Wed Aug 14, 2013 10:32 am

Re: Camera freezes

Wed Aug 14, 2013 10:37 am

I just got my camera module (Rev v1.3) - installed it as per doc + video, but I get a similar issue to others described (Below) - red LED remains on; no output.
I have disconnected and reconnected the cable - board end and "sunny" end (Using an anti-static wrist strap at all times, so don't give me the ESD line).
Tried with alternative power - checked spec's: should definitely be sufficient.
Tried with a fresh OS install, with apt-get update && upgrade as per threads and doc.

Code: Select all

Width 2592, Height 1944, quality 85, filename test.jpg
Time delay 5000, Raw no
Thumbnail enabled Yes, width 64, height 48, quality 35

Preview Yes, Full screen Yes
Preview window 0,0,1024,768
Opacity 255
Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 400, Video Stabilisation No, Exposure Compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
Camera component done
Encoder component done
Starting component connection stage
Connecting camera preview port to preview input port
Starting video preview
Connecting camera stills port to encoder input port
Enabling encoder output port
Opening output file test.jpg
Starting capture 1

Stays on this until ctrl+c, even with -t arg.
Red LED remains on.
test.jpg is created, but 0B on disk

...RMA time?

BeJay
Posts: 32
Joined: Mon Aug 06, 2012 1:52 pm
Location: Western Australia

Re: Camera freezes

Wed Aug 14, 2013 12:07 pm

I rectified my camera issue by upping the current capacity of the USB ports and overall board current. I had another pi I'd modded for use with a USB external HDD, and the polyfuse was a getting hot at 1A, so i bypassed it using this "hack". It seems the camera likes extra current/higher voltage than the stock poloyfuse can provide. Now my camera is working fine.... hmmm seems it was a power issue after all ;)

Don't try this unless you know how to solder and want full current available on your USB ports as well as voiding your warranty.

Image

Worked for me!

Cheers

Bj

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24630
Joined: Sat Jul 30, 2011 7:41 pm

Re: Camera freezes

Wed Aug 14, 2013 12:50 pm

Hmm. I wonder if you camera is ulling a bit more than expected power. My approx measurements shows about 200mA to run the camera.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

kyle2k
Posts: 84
Joined: Tue Feb 19, 2013 2:47 pm

Re: Camera freezes

Wed Aug 14, 2013 1:43 pm

Hi again, About 3 week's ago I posted that my camera was also freezing.

Yesterday I tried it again in my model A and again ran apt-get update & & upgrade and rpi-update and it has started working again!

Not tried in my model B yet but have ordered a cam fixing plate from eBay so ESD will not be so much of a problem when handling the cam board.

d_p
Posts: 2
Joined: Wed Aug 14, 2013 10:32 am

Re: Camera freezes

Thu Aug 15, 2013 6:51 am

@kyle2k: I'd be interested to know how you get on with re-attaching it to the Model B. I'm curious whether it was/is a software issue, or whether it's a potential Model B power issue. (Mine is one of the original model B's)

All credit to Farnell: they arranged a swap for my camera module in minutes, no hassle.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24630
Joined: Sat Jul 30, 2011 7:41 pm

Re: Camera freezes

Thu Aug 15, 2013 7:44 am

If it's power it's probably not a problem with the Model B itself, but the power supply. Cameras are notoriously power hungry (200mA at least), but of course they are pretty sophisticated bits of silicon. You need to take that in to account when choosing a supply.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

User avatar
RaTTuS
Posts: 10517
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Camera freezes

Thu Aug 15, 2013 7:48 am

BeJay wrote:I rectified my camera issue by upping the current capacity of the USB ports and overall board current. I had another pi I'd modded for use with a USB external HDD, and the polyfuse was a getting hot at 1A, so i bypassed it using this "hack". It seems the camera likes extra current/higher voltage than the stock poloyfuse can provide. Now my camera is working fine.... hmmm seems it was a power issue after all ;)

Don't try this unless you know how to solder and want full current available on your USB ports as well as voiding your warranty.

Image

Worked for me!

Cheers

Bj
Bj
that should not do anything for the camera ...
you may as well power the RPi via the GPIO
or even backpower from the USB

unless you have some very heavy drain stuff on the usb I cannot see that mod doing anything useful on a Rev 2 board

I may be wrong though
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

BeJay
Posts: 32
Joined: Mon Aug 06, 2012 1:52 pm
Location: Western Australia

Re: Camera freezes

Thu Aug 15, 2013 1:10 pm

RaTTuS wrote:
BeJay wrote:I rectified my camera issue by upping the current capacity of the USB ports and overall board current. I had another pi I'd modded for use with a USB external HDD, and the polyfuse was a getting hot at 1A, so i bypassed it using this "hack". It seems the camera likes extra current/higher voltage than the stock poloyfuse can provide. Now my camera is working fine.... hmmm seems it was a power issue after all ;)

Don't try this unless you know how to solder and want full current available on your USB ports as well as voiding your warranty.

Image

Worked for me!

Cheers

Bj
Bj
that should not do anything for the camera ...
you may as well power the RPi via the GPIO
or even backpower from the USB

unless you have some very heavy drain stuff on the usb I cannot see that mod doing anything useful on a Rev 2 board

I may be wrong though
I tried powering my pi from the GPIO 5V on the latest revB and it still cannot run happily without bypassing the polyfuse.

Here it is running from the GPIO 5V pin 2 with the bodge wire like this:

Image

This config works perfectly for my camera.

Image

By tying the DC direct to the USB port it is indeed like backpowering it from the USB, but using the main power connector instead.

retrodans
Posts: 17
Joined: Wed May 15, 2013 8:36 am
Location: twickenham

Re: Camera freezes

Wed Aug 28, 2013 9:35 am

Just wanted to update everyone as I opened this post. I got a new camera board from RS components the other week, and have just connected it. Ran a fresh copy of NOOBS on my SD card, ran update/upgrade/rpi-update and I still get the same issue.

Still not ruling out the camera though as it looks as though the cable has a kink in it. I did reset all 3 connections on the camera board though and the same issue. Running -v freezer on 'closing down' and the red light stays on whilst giving me no preview window.

Note the pi board is a model-B (based on the face it has 2 usb ports).

Have email RS to see if I can get a replacement to rule out the camera board, anyone now of a definitive test I can run to say one way or the other if the camera is bust, as it's seeming strange I get the same issue with 2 seperate boards.

Thanks,
Dan

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24630
Joined: Sat Jul 30, 2011 7:41 pm

Re: Camera freezes

Wed Aug 28, 2013 10:19 am

It's possible its the Pi itself that is failing - perhaps something wrong in the connection from ribbon to gpu. Can you try on another one?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

liorkirsch
Posts: 2
Joined: Sat Aug 17, 2013 11:06 am

Re: Camera freezes

Wed Aug 28, 2013 10:23 am

I am having the same problem.
My camera did not work at all:

Typing (on the first time after a reboot)
raspistill -v -o Desktop/b3.jpg

The command hangs after

Code: Select all

raspistill Camera App v1.2

Width 2592, Height 1944, quality 85, filename Desktop/b3.jpg
Time delay 5000, Raw no
Thumbnail enabled Yes, width 64, height 48, quality 35
Full resolution preview No

Preview Yes, Full screen Yes
Preview window 0,0,1024,768
Opacity 255
Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 400, Video Stabilisation No, Exposure compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
Camera component done
Encoder component done
Starting component connection stage
Connecting camera stills port to encoder input port
Opening output file Desktop/b3.jpg
Enabling encoder output port
Starting capture 1
When I try it for the second time I don't get the lat few lines it just hangs after:

Code: Select all

...
Rotation 0, hflip No, vflip No
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
These are the things I tried:
1. new install.
2. sudo apt-get update && sudo apt-get upgrade
3. sudo rpi-update
4. reconnecting the cable on both ends and reconnecting the sunny connector.
5. disabling and enabling the camera using raspi-config (option 5 is name "Enabled Camera" not camera like some people have).

typing vcgencmd get_camera results with supported=1 detected=1

Is there anything else I can do to make it work ?

retrodans
Posts: 17
Joined: Wed May 15, 2013 8:36 am
Location: twickenham

Re: Camera freezes

Wed Aug 28, 2013 10:27 am

Could do, why not. I will have to order and wait though. Any recommendations on which one to get for this test and where is a good place? Otherwise I will just go for the model B from RS components as a secondary PI.

Thanks,
Dan

User avatar
RaTTuS
Posts: 10517
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Camera freezes

Wed Aug 28, 2013 10:50 am

How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

retrodans
Posts: 17
Joined: Wed May 15, 2013 8:36 am
Location: twickenham

Re: Camera freezes

Wed Aug 28, 2013 11:02 am

Thanks for the recommendation, ordering now, once it arrives, will retest my camera boards, and let you all know the results.

posthuman_1000
Posts: 19
Joined: Wed Aug 28, 2013 8:52 pm

Re: Camera freezes

Wed Aug 28, 2013 9:21 pm

Hi all

I've been having this problem with my pi camera too.

It worked fine for a little while, then just stopped with the exact same symptoms as the original poster. Have tried apt-update etc to no avail, but I haven't tried it on a fresh OS, so I will try that next. I don't think power should be a problem, I'm running the pi and camera from a 2A charger.

It's been suggested above that that it could be ESD on the camera, which in my case is certainly a possibility (although ironically it probably happened when I was fitting a protective case). I'm wondering how likely is that to really be the cause? I have spent a fair amount of time working on electronics in ways that wouldn't be called professional without incident, and that leads me to wonder how high the risk of damage by ESD (generally) really is - would the pi camera be more sensitive than any other equipment? - and would it not cease to function all together if it did get ESD damage?

Interestingly someone else suggested it could be the pi itself - I have accidentally shorted mine quite a few times in the past - but if this was problem in my case surely the camera would have never have worked?

I'm reluctant to fork out for a new camera module if it's not the hardware, but if I have broken it by ESD I don't want to waste money and time trying to fix it.

mfsd
Posts: 6
Joined: Wed Aug 28, 2013 10:31 pm
Location: Sweden

Re: Camera freezes

Wed Aug 28, 2013 10:46 pm

Hello....

I am having exactly the same problem!

First time, freezes after Starting Capture.... and then, freezes at

Code: Select all

ROI x 0.0000 y 0.0000 w 1.0 h 1.0
line
Red light never goes OFF, after the first time I execute either raspistill or raspivid. Only OFF after reboot.

Using the latest version of wheezy after updating with Hexxeh's RPI update tool.
I have tried out two different RPi, which I know are working fine, because I use them in a daily basis.
Also, two different cameras have been tested.

Regarding the handling, I have been very careful with it.... even use ESD carpet and shoes :)

What is exactly the red led? what is is connected to?
Any idea to hardware debug the camera module?
Where can I find schematics of it?
Any other ideas?

User avatar
RaTTuS
Posts: 10517
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Camera freezes

Thu Aug 29, 2013 8:14 am

if your camera
has worked and now does not try reseating all the parts
1 cable at both ends and the sunny connector
also read my posts on this starting from
http://www.raspberrypi.org/phpBB3/viewt ... 25#p386225
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24630
Joined: Sat Jul 30, 2011 7:41 pm

Re: Camera freezes

Thu Aug 29, 2013 8:30 am

Cameras like this are more sensitive to ESD than you might expect - they are very complicated bits of silicon. Take care when handling.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

posthuman_1000
Posts: 19
Joined: Wed Aug 28, 2013 8:52 pm

Re: Camera freezes

Thu Aug 29, 2013 8:34 pm

RaTTuS wrote:if your camera
has worked and now does not try reseating all the parts
1 cable at both ends and the sunny connector
also read my posts on this starting from
http://www.raspberrypi.org/phpBB3/viewt ... 25#p386225
Thanks, yes I read the whole thread. Have tried reseating all the cables repeatedly - no luck

decebal
Posts: 6
Joined: Sat Jan 12, 2013 12:17 pm

Re: Camera freezes

Fri Aug 30, 2013 11:11 pm

I have the same problem.

Raspi Model B, fresh new SD card with the last rasbian.
After install:
- setup network (eth0 - no wireless)
- apt-get update, apt-get upgrade, rpi-update
- ssh enabled
- nothing on gpio, nothing on usb
- from putty I try to run "raspistill -v"

Code: Select all

[email protected] ~ $ raspistill -v

raspistill Camera App v1.2

Width 2592, Height 1944, quality 85, filename (null)
Time delay 5000, Raw no
Thumbnail enabled Yes, width 64, height 48, quality 35
Link to latest frame enabled  no
Full resolution preview No

Preview Yes, Full screen Yes
Preview window 0,0,1024,768
Opacity 255
Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 400, Video Stabilisation No, Exposure compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
Camera component done
Encoder component done
Starting component connection stage
Connecting camera stills port to encoder input port
Closing down
... and forever RED led on camera :)

Any advice is welcome

decebal
Posts: 6
Joined: Sat Jan 12, 2013 12:17 pm

Re: Camera freezes

Fri Aug 30, 2013 11:47 pm

Another information is that I use a 2A power supplier and from this reason I don't think that camera freezes from power reason .

Return to “Camera board”