Code Monkey home page Code Monkey logo

Comments (6)

waveform80 avatar waveform80 commented on May 28, 2024

Weird! As it happens I got a Model A (and a Pi Noir) at xmas (up until now I've only been able to test on a Model B, 512Mb Rev 2). I'll try and get it all setup tonight and run the picamera test suite on it to see what happens.

That said, if the picamera test programs are operating successfully, I'd assume there's something your code is doing that's causing it to fail (even though it evidently shouldn't, given it's running successfully on the model B). What does your code do that the picamera test programs don't? I'm wondering whether it repeatedly initializes the camera or anything like that?

from picamera.

martinohanlon avatar martinohanlon commented on May 28, 2024

Well two of the test programs ran successfully.

My code spawns a number of threads which monitor a gpio pin for a button input, listens to the uart and reads from a 1 wire sensor. When the main program loop picks up that a button has been pressed it starts the camera using picamera.

The error occurs the first time you call picamera.Camera(), the code seems to wait for a couple of seconds, like its waiting to instantiate something and then returns the error. Im going to stick some debugging code into the program to see if that helps. Im also wondering whether its a revision thing rather than a model thing! I have a model b rev 2, so I'll give it a go on that as well and see if I can reproduce the error

Any thoughts, gratefully received.

from picamera.

martinohanlon avatar martinohanlon commented on May 28, 2024

It has nothing to do with picamera, Ill close the issue, very wierd bug between revisions, and the use of modprobe and 1-wire gpio. see here for info - http://www.raspberrypi.org/phpBB3/viewtopic.php?f=43&t=65088&p=478968#p478968

from picamera.

waveform80 avatar waveform80 commented on May 28, 2024

For anyone else running into this issue, it's tracked as raspberrypi/linux#435 - that ticket contains a possible workaround but it doesn't seem to be universally successful...

from picamera.

apfeiffer1 avatar apfeiffer1 commented on May 28, 2024

Just in case: I had the same problem and found that my memory split was somehow reset to 128MB - changing that (sudo raspi-config -> Advanced Options -> Memory Split) to use only 16GB for the GPU made the error go away. Now on to using it ... :)

from picamera.

Manoj-nathwani avatar Manoj-nathwani commented on May 28, 2024

For anyone who stumbles across this trying to find another solution...

Solution

Only initialize the picamera.PiCamera() object once, then re-use it to take more pictures. So taking it out the while True loop and making it reusable solved the problem in my case 😊

from picamera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.