﻿id	summary	reporter	owner	description	type	status	component	version	resolution	keywords	cc	guest	host
17086	Webcam crash in Ubuntu 16.0.4 and VirtualBox 5.1.28 running Android-x86	aliedis87.rhyta		"I've created a VM with Android 6.0-r3 from www.android-x86.org using VirtualBox 5.1.28 and Ubuntu 16.04 LTS. The VM works great, but every time I try to use a fake webcam it crashes.

Basically if in the host I perform:

# After installing v4l2loopback-dkms
modprobe v4l2loopback
# Init the video stream (/tmp/i.png can be any image and /dev/video0 is the loopback device that can have a different number if you have other connected webcams)
while [ 42 ]; do cat /tmp/i.png ; done | ffmpeg -y -i - -f image2pipe -r 15 -s 1920x1080 -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0

=> Run the VM and manually stop at the GRUB boot loader
=> Assign the webcam to the machine (Devices => Webcams => Dummy Video Device)
=> Continue to boot the machine

(the steps above are important, otherwise Android will not recognize the webcam)

=> Run some camera app, I use Open Camera from https://play.google.com/store/apps/details?id=net.sourceforge.opencamera&hl=en

=> The APP should show the image
=> Just try to leave the APP

=> The VM will crash and if you run the 'dmesg' command, it will appear something like

[202894.416980] HWCMONITOR[14932]: segfault at 7f5554b17800 ip 00007f55dc0beb35 sp 00007f55b017bb80 error 4 in VBoxHostWebcam.so[7f55dc0b8000+3a000]"	defect	new	other	VirtualBox 5.1.28				Linux	other
