Re: [Indi-devel] indi_v4l2_ccd and Philips SPC1000NC Webcam
Brought to you by:
slovin
|
From: Ilia P. <in...@il...> - 2014-05-16 20:51:11
|
Ops... there's not my code into sources anymore :-|
you're using YUYV colorspace on VLC, is it the same as spc900?
into v4l2_base line 287:
if (!cropbuf) cropbuf = (unsigned char
*)malloc(2*crop.c.width * crop.c.height);
dest=cropbuf;
the destination buffer is pointing another one, which is being allocated
each frame, must check if it's "destroyed" after this, if not, it
consumes the whole memory in a short time at hi-FPS I think.
I may be wrong, hope this helps,
Ilia.
On 16/05/2014 21:56, Hans wrote:
> Hi Ilia,
>
> Ilia Platone wrote on 20140516:
>> Hi Hans,
>> I feel a little responsible,
> No worries :) Just let's get this fixed and make indi more awesome.
>
>> is this a mono or RGGB bayer camera?
> It's an RGGB bayer camera, but so is the SPC900nc which works fine with indi_v4l2_ccd.
>
>> there's some (de)allocation problem in my code maybe.
> I tried to contain the damage :
>
> :~/ ulimit -d 100000 -m 100000 -v 100000
> :~/ ulimit -a
> core file size (blocks, -c) 0
> data seg size (kbytes, -d) 100000
> scheduling priority (-e) 0
> file size (blocks, -f) unlimited
> pending signals (-i) 127003
> max locked memory (kbytes, -l) 64
> max memory size (kbytes, -m) 100000
> open files (-n) 1024
> pipe size (512 bytes, -p) 8
> POSIX message queues (bytes, -q) 819200
> real-time priority (-r) 0
> stack size (kbytes, -s) 8192
> cpu time (seconds, -t) unlimited
> max user processes (-u) 127003
> virtual memory (kbytes, -v) 100000
> file locks (-x) unlimited
>
> :~/ indiserver -v indi_v4l2_ccd
> 2014-05-16T19:40:19: startup: indiserver -v indi_v4l2_ccd
> 2014-05-16T19:40:19: Driver indi_v4l2_ccd: pid=27044 rfd=3 wfd=6 efd=7
> 2014-05-16T19:40:19: listening to port 7624 on fd 4
> 2014-05-16T19:40:19: Driver indi_v4l2_ccd: snooping on Telescope Simulator.EQUATORIAL_EOD_COORD
>
> Next I could connect to indiserver and when i click 'stream on' in
> kstars my X server got killed. So much for ulimit protection :-P
>
> The camera/pc/kernel/X chain seems fine because this works OK :
> vlc -v --no-audio v4l2:// :v4l2-dev="/dev/video0" :v4l2-width=800 :v4l2-height=600 :v4l2-chroma="YUYV"
>
> Suggestions on how to proceed ?
>
> -- Hans
>
> Ilia Platone wrote on 20140516:
>
>> Hi Hans,
>> I feel a little responsible,
>> is this a mono or RGGB bayer camera?
>> there's some (de)allocation problem in my code maybe.
>>
>> Ilia.
>>
>> Il 16/05/2014 21:15, Hans ha scritto:
>>> Hi Jean-Luc,
>>>
>>> Jean-Luc wrote on 20140515:
>>>> Does this happen when you connect the cam ?
>>> No, it happens when the video feed starts. Both in PHD2 and in kstars.
>>>
>>>> Does the SPC1000 use the uvc video driver ?
>>> Yes: kernel: [] uvcvideo: Found UVC 1.00 device Philips SPC 1000NC Webcam (0471:0332)
>>>
>>>> Anyway this could be due to an infinite loop containing malloc stuff and
>>>> I suspect that it may happen in the enumeration of extended controls in
>>>> indi_v4l2_ccd (line 2164 in v4l2_base.cpp). Could you start the
>>>> server/driver in a terminal and look at what is displayed when
>>>> connecting the cam in kstars? There are messages in the terminal which
>>>> could be helpfull.
>>> I found nothing helpful in it, but here's the whole thing anyway :
>>>
>>> ~/ kstars
>>> Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated.
>>> KGlobal::locale(): Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work
>>> kstars(6491) KStarsDateTime::fromString: "Could not parse Date/Time string: " ""
>>> kstars(6491) KStarsDateTime::fromString: "Valid date formats: "
>>> kstars(6491) KStarsDateTime::fromString: 1950-02-25 ; 1950-02-25T05:30:00
>>> kstars(6491) KStarsDateTime::fromString: 25 Feb 1950 ; 25 Feb 1950 05:30:00
>>> kstars(6491) KStarsDateTime::fromString: Sat Feb 25 1950 ; Sat Feb 25 05:30:00 1950
>>> kstars(6491) CatalogDB::FirstRun: "Rebuilding Additional Sky Catalog Database"
>>> kstars(6491) ConstellationLines::ConstellationLines: "Star HD61,421 not found."
>>> kstars(6491) ConstellationLines::ConstellationLines: "Star HD10,700 not found."
>>> kstars(6491) ConstellationLines::ConstellationLines: "Star HD20,794 not found."
>>> kstars(6491) ConstellationLines::ConstellationLines: "Star HD2,151 not found."
>>> kstars(6491) ConstellationLines::ConstellationLines: "Star HD190,248 not found."
>>> kstars(6491) ConstellationLines::ConstellationLines: "Star HD142,860 not found."
>>> kstars(6491) ConstellationLines::ConstellationLines: "Star HD1,581 not found."
>>> kstars(6491) ConstellationLines::ConstellationLines: "Star HD1,581 not found."
>>> kstars(6491) ConstellationLines::ConstellationLines: "Star HD98,230 not found."
>>> kstars(6491) KStarsData::readURLData: "Object named Quaoar not found"
>>> kstars(6491) KStarsData::readURLData: "Object named Eros not found"
>>> kstars(6491) KStarsData::readURLData: "Object named Hektor not found"
>>> kstars(6491) KStarsData::readURLData: "Object named Chiron not found"
>>> kstars(6491) KStarsData::readURLData: "Object named Hale-Bopp (1995 O1) not found"
>>> kstars(6491) KStarsData::readURLData: "Object named Hyakutake (1996 B2) not found"
>>> kstars(6491) KStarsData::readURLData: "Object named Kohoutek not found"
>>> kstars(6491) KStarsData::readURLData: "Object named XXX not found"
>>> kstars(6491) KSUserDB::RebuildDB: "Rebuilding User Database"
>>> No sample buffer; can't use multisampling (antialiasing)
>>> kstars(6491) KSParser::DummyRow: File named "/home/hans/.kde/share/apps/kstars/supernovae.dat" encountered an error while reading
>>> INDI server 127.0.0.1/7624 disconnected.
>>> kstars(6491)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
>>> ~/
>>>
>>> I was able to kill indiserver after several minutes, I think I'll use bash
>>>
>>> ulimit next time to keep indiserver more manageable.
>>>
>>> What can I try next ?
>>>
>>> -- Hans
>>>
>>>> Le 15/05/2014 19:25, Hans a écrit :
>>>>> Hi indi,
>>>>>
>>>>> After successfully testing a Philips SPC900nc for PHD2 with
>>>>> indi_v4l2_ccd I'm now testing a Philips SPC1000nc Webcam and this makes
>>>>> indi_v4l2_ccd immediately balloon up to eating 13 GiB of resident RAM
>>>>> (and freezing my system) while its CPU use is 0% .
>>>>>
>>>>> Do you have any suggestions how to debug this issue ?
>>>>>
>>>>> -- Hans
>
> -----
> Nessun virus nel messaggio.
> Controllato da AVG - www.avg.com
> Versione: 2014.0.4570 / Database dei virus: 3950/7506 - Data di rilascio: 16/05/2014
>
>
|