mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 08:15:59 +03:00
[GH-ISSUE #2772] [APP BUG]: AppImage fails to launch when v4l2loopback Is loaded without input stream #900
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#900
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @KamiNuke on GitHub (Apr 12, 2025).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/2772
Checklist
Describe the Bug
The application fails to start when the v4l2loopback kernel module is loaded and no video stream is being fed to the dummy device.
This problem does not occur when compiling the app from source, the app works as expected.
When tracing the appimage with strace, it becomes apparent that the application is repeatedly opening /dev/video0 (v4l2loopback)
openat(AT_FDCWD, "/dev/video0", O_RDONLY) = 20ioctl(20, VIDIOC_QUERYCAP, {driver="v4l2 loopback", card="Dummy video device (0x0000)", bus_info="platform:v4l2loopback-000", version=KERNEL_VERSION(6, 14, 2), capabilities=V4L2_CAP_VIDEO_CAPTURE|V4L2_CAP_VIDEO_OUTPUT|V4L2_CAP_EXT_PIX_FORMAT|V4L2_CAP_READWRITE|V4L2_CAP_STREAMING|V4L2_CAP_DEVICE_CAPS, device_caps=V4L2_CAP_VIDEO_CAPTURE|V4L2_CAP_VIDEO_OUTPUT|V4L2_CAP_EXT_PIX_FORMAT|V4L2_CAP_READWRITE|V4L2_CAP_STREAMING}) = 0ioctl(20, VIDIOC_ENUM_FMT, {index=0, type=V4L2_BUF_TYPE_VIDEO_CAPTURE, flags=0, description="32-bit BGRA/X 8-8-8-8", pixelformat=v4l2_fourcc('B', 'G', 'R', '4') /* V4L2_PIX_FMT_BGR32 */}) = 0ioctl(20, VIDIOC_ENUM_FRAMESIZES, {index=0, pixel_format=v4l2_fourcc('B', 'G', 'R', '4') /* V4L2_PIX_FMT_BGR32 */, type=V4L2_FRMSIZE_TYPE_CONTINUOUS}) = 0Reproduction Steps
sudo modprobe v4l2loopbackExpected Behavior
The application should either skip the dummy device or fail with a error.
Specify OS Version
Arch Linux x86_64, kernel 6.14.2
@Turbozis commented on GitHub (Jul 7, 2025):
Can confirm, experiencing the same behavior
@KamiNuke commented on GitHub (Nov 5, 2025):
Works with a new Qt app.