VLC segfault when you try to record from webcam

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

VLC segfault when you try to record from webcam

edasky
Hello

I do not know if this belongs here or in bugs


I use a USB Webcam and VLC for recording short videos.
I do not know from where it stopped working.
At 6.0 and CURRENT sometime around the new year, it worked.

to the current i386 and amd64 on March 17 and i386 1 and 2 weeks back
VLC segfalt when you try to record from webcam

video(4) works
vlc > open captute device > webcam ..

$ vlc
VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89)
[7e672e30] core xml reader error: XML reader not found
[8402cf30] core libvlc: Running vlc with the default interface. Use 'cvlc'
to use vlc without interface.
[7e672d30] qt4 interface error: Unable to load extensions module
[8385ee30] v4l2 demux error: cannot get video standard
Segmentation fault (core dumped)


GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-openbsd6.1"...(no debugging
symbols found)

(gdb) run
Starting program: /usr/local/bin/vlc
VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89)
[New process 11832]
[7d91c430] core xml reader error: XML reader not found
[7afcf830] core libvlc: Running vlc with the default interface. Use 'cvlc'
to use vlc without interface.
[879a4f30] qt4 interface error: Unable to load extensions module
[84b3a730] v4l2 demux error: cannot get video standard

Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 409006]
0x0fd02400 in v4lconvert_yuyv_to_yuv420 () from
/usr/local/lib/libv4lconvert.so.0.0

some ideas?
I like to send you further information that would help.


camera:
uvideo0 at uhub4 port 5 configuration 1 interface 0 "QCM HP Webcam-101" rev
2.00/1.04 addr 2
video0 at uvideo0



main system:
dmesg:
OpenBSD 6.1-beta (GENERIC.MP) #222: Fri Mar 10 09:44:59 MST 2017
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Genuine Intel(R) CPU U2500 @ 1.20GHz ("GenuineIntel" 686-class) 1.20
GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,MWAIT
,VMX,EST,TM2,xTPR,PDCM,PERF,SENSOR
real mem  = 2138390528 (2039MB)
avail mem = 2084663296 (1988MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 07/02/08, BIOS32 rev. 0 @ 0xf0000, SMBIOS rev. 2.4
@ 0xf4170 (21 entries)
bios0: vendor Hewlett-Packard version "68YOP Ver. F.0E" date 07/02/2008
bios0: Hewlett-Packard HP Compaq nc2400(#AKB)
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC HPET APIC MCFG TCPA SSDT SSDT SSDT SSDT SSDT
acpi0: wakeup devices C094(S5) C1DE(S0) C0EF(S3) C0F6(S3) C0F7(S3) C0F8(S3)
C0F9(S3) C100(S5) C1EA(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 132MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Genuine Intel(R) CPU U2500 @ 1.20GHz ("GenuineIntel" 686-class) 1.20
GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,MWAIT
,VMX,EST,TM2,xTPR,PDCM,PERF,SENSOR
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
acpiprt0 at acpi0: bus 2 (C094)
Acpiprt1 at acpi0: bus 8 (C100)
acpiprt2 at acpi0: bus 0 (C002)
acpiec0 at acpi0
acpicpu0 at acpi0: !C2(500@1 io@0x1014), C1(1000@1 halt), PSS
acpicpu1 at acpi0: !C2(500@1 io@0x1014), C1(1000@1 halt), PSS
acpipwrres0 at acpi0: C1D6, resource for C1D4
acpipwrres1 at acpi0: C2C9, resource for C2CD
acpipwrres2 at acpi0: C2CA, resource for C2CE
acpipwrres3 at acpi0: C2CB, resource for C2CF
acpipwrres4 at acpi0: C2CC, resource for C2D0
acpitz0 at acpi0: critical temperature is 105 degC
acpitz1 at acpi0: critical temperature is 105 degC
acpitz2 at acpi0: critical temperature is 105 degC
acpitz3 at acpi0: critical temperature is 105 degC
acpitz4 at acpi0: critical temperature is 110 degC
"PNP0303" at acpi0 not configured
"SYN0123" at acpi0 not configured
"HPQ0004" at acpi0 not configured
"HPQ0006" at acpi0 not configured
acpibat0 at acpi0: C1B6 model "Primary" serial 59080 2016/12/30 type LIon
oem "Hewlett-Packard"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: C1F1
acpibtn1 at acpi0: C1EE
"PNP0C14" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
acpivideo0 at acpi0: C081
bios0: ROM list: 0xc0000/0x10000!
cpu0: Enhanced SpeedStep 1197 MHz: speeds: 1200, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
inteldrm0 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xe0000000, size 0x10000000
inteldrm0: apic 1 int 16
inteldrm0: 1280x800, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: msi
azalia0: codecs: Analog Devices AD1981HD, Conexant/0x2bfa, using Analog
Devices AD1981HD
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01: apic 1 int 22
pci1 at ppb0 bus 8
8:0:0: mem address conflict 0xf0000000/0x1000
wpi0 at pci1 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02: msi,
MoW2, address 00:13:02:de:04:97
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 1 int 21
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 1 int 22
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 1 int 22
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 1 int 22
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 1 int 21
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe1
pci2 at ppb1 bus 2
bge0 at pci2 dev 0 function 0 "Broadcom BCM5788" rev 0x03, BCM5705 A3
(0x3003): apic 1 int 17, address 00:16:36:86:f7:b7
brgphy0 at bge0 phy 1: BCM5705 10/100/1000baseT PHY, rev. 2
cbb0 at pci2 dev 9 function 0 "TI PCIXX12 CardBus" rev 0x00: apic 1 int 18
"TI PCIXX12 Smart Card" rev 0x00 at pci2 dev 9 function 4 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x10, lattimer 0x20
pcmcia0 at cardslot0
ichpcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x01: PM
disabled
pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configu
red to compatibility
wd0 at pciide0 channel 0 drive 0: <ADATA SP310>
wd0: 16-sector PIO, LBA48, 61057MB, 125045424 sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <MATSHITA, DVD-RAM UJ-842S, 1.10> ATAPI
5/cdrom removable
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
cd0(pciide0:0:1): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
vmm at mainbus0 not configured
ugen0 at uhub2 port 1 "AuthenTec Fingerprint Sensor" rev 1.10/6.23 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on wd0a (c56e121cbc9afa57.a) swap on wd0b dump on wd0b

Reply | Threaded
Open this post in threaded view
|

Re: VLC segfault when you try to record from webcam

Stuart Henderson
On 2017/03/18 13:17, EdaSky wrote:
> Hello
>
> I do not know if this belongs here or in bugs

Here.

> I use a USB Webcam and VLC for recording short videos.
> I do not know from where it stopped working.
> At 6.0 and CURRENT sometime around the new year, it worked.
>
> to the current i386 and amd64 on March 17 and i386 1 and 2 weeks back
> VLC segfalt when you try to record from webcam
>
> video(4) works vlc > open captute device > webcam ..

A problem was already reported for mpv which I think is likely
to have the same cause (https://marc.info/?t=148874508700003&r=1&w=2)
but nobody seems to have any ideas yet.

It pre-dates the libv4l update.