Skip to content

bcm2835-v4l2 waiting for frame completion #898

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
melroy89 opened this issue Mar 17, 2015 · 2 comments
Closed

bcm2835-v4l2 waiting for frame completion #898

melroy89 opened this issue Mar 17, 2015 · 2 comments

Comments

@melroy89
Copy link

Hi,

I'm using Raspbian (latest version: 3.18.9+ #768). Together with MotionEye.
What I did:

  • Install the Raspbian image via dd
  • In raspi-config, I enabled 'Enable support for Raspberry Pi camera'.
  • Plug the Raspberry Pi Camera module in the Pi
  • Edit: /etc/modules, append the file with: 'bcm2835-v4l2'
  • I got /dev/video0 correctly
  • I installed MotionEye (git clone [email protected]:ccrisan/motioneye.git)
  • Used the default settings.py. Starting service: ./motioneye.py
  • Add camera (mmal service 16.1)

Now, after +/- 30 seconds the following errors/warnings will appear in /var/log/kern.log:

Mar 17 21:33:30 raspcam kernel: [  263.204615] bcm2835-v4l2: error 0 waiting for frame completion
Mar 17 21:33:56 raspcam kernel: [  288.874612] bcm2835-v4l2: error 0 waiting for frame completion
Mar 17 21:34:21 raspcam kernel: [  313.434586] bcm2835-v4l2: error 0 waiting for frame completion
Mar 17 21:35:07 raspcam kernel: [  360.184571] bcm2835-v4l2: error 0 waiting for frame completion
Mar 17 21:35:59 raspcam kernel: [  412.324656] bcm2835-v4l2: error 0 waiting for frame completion
Mar 17 21:36:36 raspcam kernel: [  448.824562] bcm2835-v4l2: error 0 waiting for frame completion
Mar 17 21:37:12 raspcam kernel: [  484.814579] bcm2835-v4l2: error 0 waiting for frame completion
Mar 17 21:37:48 raspcam kernel: [  520.774628] bcm2835-v4l2: error 0 waiting for frame completion

It is really spammy, and it seems that the camera LED turns off and on again when a new line appears in kern.log.
I didn't have this issue on a previous Raspbian release with older firmware.

Yes, ...:

  • I can create images (screenshots) via v4l2-ctl without problems
  • I can use raspistill/raspivid commands without issues

Firmware version: /opt/vc/bin/vcgencmd version

Mar 15 2015 19:51:38 
Copyright (c) 2012 Broadcom
version fef371701296941551f3b8375d5680a427c04f48 (clean) (release)

Debug output. /var/log/debug:

Mar 17 21:33:33 raspcam motion: [1] Started stream webcam server in port 8081
Mar 17 21:33:55 raspcam motion: [1] Calling vid_close() from motion_cleanup
Mar 17 21:34:03 raspcam motion: [0] httpd thread exit
Mar 17 21:34:03 raspcam motion: [1] Thread 1 started
Mar 17 21:34:03 raspcam motion: [1] mmap information:
Mar 17 21:34:03 raspcam motion: [1] frames=4
Mar 17 21:34:03 raspcam motion: [1] 0 length=115200
Mar 17 21:34:03 raspcam motion: [1] 1 length=115200
Mar 17 21:34:03 raspcam motion: [1] 2 length=115200
Mar 17 21:34:03 raspcam motion: [1] 3 length=115200
Mar 17 21:34:04 raspcam motion: [1] Started stream webcam server in port 8081
Mar 17 21:34:20 raspcam motion: [1] Calling vid_close() from motion_cleanup
Mar 17 21:34:36 raspcam motion: [0] httpd thread exit
Mar 17 21:34:36 raspcam motion: [1] Thread 1 started
Mar 17 21:34:36 raspcam motion: [1] mmap information:
Mar 17 21:34:36 raspcam motion: [1] frames=4
Mar 17 21:34:36 raspcam motion: [1] 0 length=115200
Mar 17 21:34:36 raspcam motion: [1] 1 length=115200
Mar 17 21:34:36 raspcam motion: [1] 2 length=115200
Mar 17 21:34:36 raspcam motion: [1] 3 length=115200
Mar 17 21:34:36 raspcam motion: [1] Started stream webcam server in port 8081
Mar 17 21:35:06 raspcam motion: [1] Calling vid_close() from motion_cleanup
Mar 17 21:35:15 raspcam motion: [0] httpd thread exit
Mar 17 21:35:15 raspcam motion: [1] Thread 1 started
Mar 17 21:35:15 raspcam motion: [1] mmap information:
Mar 17 21:35:15 raspcam motion: [1] frames=4
Mar 17 21:35:15 raspcam motion: [1] 0 length=115200
Mar 17 21:35:15 raspcam motion: [1] 1 length=115200
Mar 17 21:35:15 raspcam motion: [1] 2 length=115200
Mar 17 21:35:15 raspcam motion: [1] 3 length=115200
Mar 17 21:35:16 raspcam motion: [1] Started stream webcam server in port 8081
Mar 17 21:35:58 raspcam motion: [1] Calling vid_close() from motion_cleanup
Mar 17 21:36:02 raspcam motion: [0] httpd thread exit
Mar 17 21:36:02 raspcam motion: [1] Thread 1 started
Mar 17 21:36:02 raspcam motion: [1] mmap information:
Mar 17 21:36:02 raspcam motion: [1] frames=4
Mar 17 21:36:02 raspcam motion: [1] 0 length=115200
Mar 17 21:36:02 raspcam motion: [1] 1 length=115200
Mar 17 21:36:02 raspcam motion: [1] 2 length=115200
Mar 17 21:36:02 raspcam motion: [1] 3 length=115200
Mar 17 21:36:03 raspcam motion: [1] Started stream webcam server in port 8081
Mar 17 21:36:35 raspcam motion: [1] Calling vid_close() from motion_cleanup
Mar 17 21:36:38 raspcam motion: [0] httpd thread exit
Mar 17 21:36:38 raspcam motion: [1] Thread 1 started
Mar 17 21:36:38 raspcam motion: [1] mmap information:
Mar 17 21:36:38 raspcam motion: [1] frames=4
Mar 17 21:36:38 raspcam motion: [1] 0 length=115200
Mar 17 21:36:38 raspcam motion: [1] 1 length=115200
Mar 17 21:36:38 raspcam motion: [1] 2 length=115200
Mar 17 21:36:38 raspcam motion: [1] 3 length=115200
Mar 17 21:36:39 raspcam motion: [1] Started stream webcam server in port 8081
Mar 17 21:37:11 raspcam motion: [1] Calling vid_close() from motion_cleanup
Mar 17 21:37:14 raspcam motion: [0] httpd thread exit
Mar 17 21:37:14 raspcam motion: [1] Thread 1 started
Mar 17 21:37:14 raspcam motion: [1] mmap information:
Mar 17 21:37:14 raspcam motion: [1] frames=4
Mar 17 21:37:14 raspcam motion: [1] 0 length=115200
Mar 17 21:37:14 raspcam motion: [1] 1 length=115200
Mar 17 21:37:14 raspcam motion: [1] 2 length=115200
Mar 17 21:37:14 raspcam motion: [1] 3 length=115200
Mar 17 21:37:15 raspcam motion: [1] Started stream webcam server in port 8081
Mar 17 21:37:47 raspcam motion: [1] Calling vid_close() from motion_cleanup
Mar 17 21:37:50 raspcam motion: [0] httpd thread exit
Mar 17 21:37:50 raspcam motion: [1] Thread 1 started
Mar 17 21:37:50 raspcam motion: [1] mmap information:
Mar 17 21:37:50 raspcam motion: [1] frames=4
Mar 17 21:37:50 raspcam motion: [1] 0 length=115200
Mar 17 21:37:50 raspcam motion: [1] 1 length=115200
Mar 17 21:37:50 raspcam motion: [1] 2 length=115200
Mar 17 21:37:50 raspcam motion: [1] 3 length=115200
Mar 17 21:37:51 raspcam motion: [1] Started stream webcam server in port 8081
Mar 17 21:38:37 raspcam motion: [1] Calling vid_close() from motion_cleanup
Mar 17 21:50:30 raspcam motion: [0] httpd thread exit
Mar 17 21:50:30 raspcam motion: [1] Thread 1 started
Mar 17 21:50:30 raspcam motion: [1] mmap information:
Mar 17 21:50:30 raspcam motion: [1] frames=4
Mar 17 21:50:30 raspcam motion: [1] 0 length=115200
Mar 17 21:50:30 raspcam motion: [1] 1 length=115200
Mar 17 21:50:30 raspcam motion: [1] 2 length=115200
Mar 17 21:50:30 raspcam motion: [1] 3 length=115200
Mar 17 21:50:31 raspcam motion: [1] Started stream webcam server in port 8081
Mar 17 21:51:08 raspcam motion: [1] Calling vid_close() from motion_cleanup
Mar 17 21:51:11 raspcam motion: [0] httpd thread exit
Mar 17 21:51:11 raspcam motion: [1] Thread 1 started
Mar 17 21:51:11 raspcam motion: [1] mmap information:
Mar 17 21:51:11 raspcam motion: [1] frames=4
Mar 17 21:51:11 raspcam motion: [1] 0 length=115200
Mar 17 21:51:11 raspcam motion: [1] 1 length=115200
Mar 17 21:51:11 raspcam motion: [1] 2 length=115200
Mar 17 21:51:11 raspcam motion: [1] 3 length=115200
Mar 17 21:51:12 raspcam motion: [1] Started stream webcam server in port 8081
Mar 17 21:51:44 raspcam motion: [1] Calling vid_close() from motion_cleanup
Mar 17 21:51:47 raspcam motion: [0] httpd thread exit
Mar 17 21:51:47 raspcam motion: [1] Thread 1 started
Mar 17 21:51:47 raspcam motion: [1] mmap information:
Mar 17 21:51:47 raspcam motion: [1] frames=4
Mar 17 21:51:47 raspcam motion: [1] 0 length=115200
Mar 17 21:51:47 raspcam motion: [1] 1 length=115200
Mar 17 21:51:47 raspcam motion: [1] 2 length=115200
Mar 17 21:51:47 raspcam motion: [1] 3 length=115200
Mar 17 21:51:48 raspcam motion: [1] Started stream webcam server in port 8081
Mar 17 21:52:26 raspcam motion: [1] Calling vid_close() from motion_cleanup
Mar 17 21:53:59 raspcam motion: [0] httpd thread exit
Mar 17 21:53:59 raspcam motion: [1] Thread 1 started
Mar 17 21:53:59 raspcam motion: [1] mmap information:
Mar 17 21:53:59 raspcam motion: [1] frames=4
Mar 17 21:53:59 raspcam motion: [1] 0 length=115200
Mar 17 21:53:59 raspcam motion: [1] 1 length=115200
Mar 17 21:53:59 raspcam motion: [1] 2 length=115200
Mar 17 21:53:59 raspcam motion: [1] 3 length=115200
Mar 17 21:53:59 raspcam motion: [1] Started stream webcam server in port 8081
Mar 17 21:54:29 raspcam motion: [1] Calling vid_close() from motion_cleanup
Mar 17 21:54:32 raspcam motion: [0] httpd thread exit
Mar 17 21:54:32 raspcam motion: [1] Thread 1 started
Mar 17 21:54:32 raspcam motion: [1] mmap information:
Mar 17 21:54:32 raspcam motion: [1] frames=4
Mar 17 21:54:32 raspcam motion: [1] 0 length=115200
Mar 17 21:54:32 raspcam motion: [1] 1 length=115200
Mar 17 21:54:32 raspcam motion: [1] 2 length=115200
Mar 17 21:54:32 raspcam motion: [1] 3 length=115200
Mar 17 21:54:33 raspcam motion: [1] Started stream webcam server in port 8081
Mar 17 21:55:05 raspcam motion: [1] Calling vid_close() from motion_cleanup
Mar 17 21:55:08 raspcam motion: [0] httpd thread exit
Mar 17 21:55:08 raspcam motion: [1] Thread 1 started
Mar 17 21:55:08 raspcam motion: [1] mmap information:
Mar 17 21:55:08 raspcam motion: [1] frames=4
Mar 17 21:55:08 raspcam motion: [1] 0 length=115200
Mar 17 21:55:08 raspcam motion: [1] 1 length=115200
Mar 17 21:55:08 raspcam motion: [1] 2 length=115200
Mar 17 21:55:08 raspcam motion: [1] 3 length=115200
Mar 17 21:55:08 raspcam motion: [1] Started stream webcam server in port 8081

Thanks in advance!

Kind regards,
Melroy van den Berg

@6by9
Copy link
Contributor

6by9 commented Mar 18, 2015

I'd still recommend the forums. Posting on here will get me looking at it in spare time. The forums will get many people looking into it.

Please also post the results from v4l2-ctl -V after your system has run, as that will tell us the format that it is asking for.

@Ruffio
Copy link

Ruffio commented Aug 14, 2016

@Danger89 has your issue been resolved? If yes, then please close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants