maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   FCam Errors (https://talk.maemo.org/showthread.php?t=68938)

walterjwhite 2011-01-25 17:58

FCam Errors
 
Hi all,

I wrote a timelapse application and it works well for the most part.

There were some road bumps along the way - I disabled meta tracker as it was complaining about being unable to connect to the sqlite database.

More recently, I cannot get rid of these errors:


Error: Expected image data not returned from V4L2. Likely caused by excess page faults (thrashing).

Error: VIDIOC_DQBUF: Resource temporarily unavailable

2011-01-25 12:46:27 - Error: Handler got a NULL frame


I am taking pictures every second. My code will be here (I am cleaning up the code base and will publish it this afternoon):

https://github.com/walterjwhite/maemo-timelapse


Do I need to delete the frame after saving it? Or is all of that handled for me? I am guessing that the device runs out of memory which is why it reboots after a period of time has elapsed. According to free, the memory declines as the application continues to run, but according to top, memory usage is just 10 - 11%.

Any ideas?


Thanks,

Walter

walterjwhite 2011-01-25 21:01

Re: FCam Errors
 
I disabled swap and lowered the capture rate 50% and am still seeing these errors. The current rate I am trying is a picture every 2 seconds.

I killed tracker and am not having the random reboots now so at least I know (relatively confidently that one problem is partially solved).

I will try lowering the rate even further, but I want to say I had this issue at 1 frame every 10 seconds. To me, something doesn't seem right, whether it is my code or the API.


Walter


All times are GMT. The time now is 20:22.

vBulletin® Version 3.8.8