FS#18555 - [xawtv] streamer segfault

Attached to Project: Arch Linux
Opened by dennyhalim.com (dennyhalim) - Thursday, 04 March 2010, 06:45 GMT
Last edited by Allan McRae (Allan) - Saturday, 28 April 2012, 16:17 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

camera tested with wxcam and working fine


$ streamer -d -f jpeg -o snap.jpeg
checking writer files [multiple image files] ...
video name=ppm ext=ppm: ext mismatch [need jpeg]
video name=pgm ext=pgm: ext mismatch [need jpeg]
video name=jpeg ext=jpeg: OK
files / video: JPEG (JFIF) / audio: none
vid-open: trying: v4l2-old...
vid-open: failed: v4l2-old
vid-open: trying: v4l2...
v4l2: open
v4l2: device info:
uvcvideo 0.1.0 / CNF7017 @ usb-0000:00:12.2-4
vid-open: ok: v4l2
movie_init_writer start
setformat: JPEG (JFIF) (320x240): failed
v4l2: new capture params (320x240, YU12, 115200 byte)
setformat: 12 bit YUV 4:2:0 (planar) (320x240): ok
v4l2: new capture params (320x240, YU12, 115200 byte)
movie_init_writer end (h=0x890390)
movie_writer_start
writer_video_thread start [pid=11971]
convert_thread start [pid=11971]
v4l2: buf 0: video-cap 0xabcdef00+16777216, used 0
v4l2: buf 1: video-cap 0xabcdef01+16777216, used 0
v4l2: buf 2: video-cap 0xabcdef02+16777216, used 0
v4l2: buf 3: video-cap 0xabcdef03+16777216, used 0
v4l2: buf 4: video-cap 0xabcdef04+16777216, used 0
v4l2: buf 5: video-cap 0xabcdef05+16777216, used 0
v4l2: buf 6: video-cap 0xabcdef06+16777216, used 0
v4l2: buf 7: video-cap 0xabcdef07+16777216, used 0
v4l2: buf 8: video-cap 0xabcdef08+16777216, used 0
v4l2: buf 9: video-cap 0xabcdef09+16777216, used 0
v4l2: buf 10: video-cap 0xabcdef0a+16777216, used 0
v4l2: buf 11: video-cap 0xabcdef0b+16777216, used 0
v4l2: buf 12: video-cap 0xabcdef0c+16777216, used 0
v4l2: buf 13: video-cap 0xabcdef0d+16777216, used 0
v4l2: buf 14: video-cap 0xabcdef0e+16777216, used 0
convert-in : 320x240 12 bit YUV 4:2:0 (planar) (size=115200)
convert-out: 320x240 JPEG (JFIF) (size=230400)
v4l2: buf 15: video-cap 0xabcdef0f+16777216, used 0
v4l2: start ts=1267684849563192000
movie_writer_stop/r: -0.00s [0], a/v: -0.00s [0]
fifo conv: EOF 1/1
Segmentation fault



$ dmesg
streamer[11492]: segfault at d ip 00007fc17bf73333 sp 00007fc17867bab8 error 4 in libjpeg.so.8.0.1[7fc17bf52000+38000]
streamer[11536]: segfault at d ip 00007f0832168333 sp 00007f082e870ab8 error 4 in libjpeg.so.8.0.1[7f0832147000+38000]
streamer[11567]: segfault at d ip 00007f75ed8a2333 sp 00007f75e9faaab8 error 4 in libjpeg.so.8.0.1[7f75ed881000+38000]
streamer[11685]: segfault at d ip 00007f01d9801333 sp 00007f01d5f09ab8 error 4 in libjpeg.so.8.0.1[7f01d97e0000+38000]
streamer[11973]: segfault at d ip 00007f7e2acd9333 sp 00007f7e273e1ab8 error 4 in libjpeg.so.8.0.1[7f7e2acb8000+38000]


This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 28 April 2012, 16:17 GMT
Reason for closing:  No response
Additional comments about closing:  Should be fixed...
Comment by Andrea Scarpino (BaSh) - Thursday, 04 March 2010, 14:37 GMT
thomas, you added more patch in past. Can you look into this?
This patch should fix this bug, but can you cleanup xawtv patches first? I do not think we need all them, but I do not use xawtv, so I could be wrong.
Comment by Thomas Bächler (brain0) - Thursday, 11 March 2010, 19:41 GMT
I think I looked into xawtv once or twice. There is basically no upstream development at all, but people still use it, so there's tons of patches.
Comment by dennyhalim.com (dennyhalim) - Friday, 12 March 2010, 06:07 GMT
afaik, there's no other simple cli apps that can do simple stuffs like taking a snapshot from webcam.
that's why it's still used a lot.
Comment by Thomas Bächler (brain0) - Friday, 12 March 2010, 08:54 GMT
As it's a dead package, I think we can apply whatever patch we please. However, someone really should consider forking it.
Comment by dennyhalim.com (dennyhalim) - Friday, 12 March 2010, 10:19 GMT
i'm no programmer.
i dont even know about patch stuffs.

patch anything you please.. as long as it works.
Comment by Thomas Bächler (brain0) - Friday, 12 March 2010, 10:24 GMT
Andrea, I just looked at this patch, I think you can go ahead and apply it.

Jan, what do you think? What should we do with xawtv?
Comment by Thomas Dziedzic (tomd123) - Sunday, 04 July 2010, 02:27 GMT
decision?
Comment by Jan de Groot (JGC) - Monday, 04 July 2011, 14:14 GMT
AFAIK this patch is not needed when using libjpeg-turbo. Libjpeg-turbo ignores the fancy scaling stuff, so it should not segfault anymore.
Comment by Jelle van der Waa (jelly) - Saturday, 14 January 2012, 18:59 GMT
It works here, any update?

Loading...