VirtualBox

Opened 7 years ago

Last modified 4 years ago

#17086 new defect

Webcam crash in Ubuntu 16.0.4 and VirtualBox 5.1.28 running Android-x86

Reported by: aliedis87.rhyta Owned by:
Component: other Version: VirtualBox 5.1.28
Keywords: Cc:
Guest type: Linux Host type: other

Description

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]

Change History (1)

comment:1 by catherder, 4 years ago

This problem still exists on Ubuntu 18.04 / Virtualbox 6.1.6 It is not related to Android but the crash happens when using the v4l2loopback virtual webcam driver: HWCMONITOR[31206]: segfault at 7f0c7d1bd000 ip 00007f0e22fa063e sp 00007f0d540b3a88 error 4 in libc-2.27.so[7f0e22ee5000+1e7000] Happens on both Windows XP and Windows 10 guests (have not tried other systems yet).

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use