displayX11 requires Xephyr on X11 but nested display fails with MIT-SHM errors (black screen)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
Research direction
Start at the code that handles the displayX11 and socketX11 overrides and sets up X11 access for cpak run; the issue does not name a file or test. Reproduce with Xephyr using the supplied mpv command, then trace the MIT-SHM errors and the missing /tmp/.X11-unix mount. Done when video renders in the nested display without those errors.
Written by the indexing model from the issue text.
Description
Summary
On a bare X11 session (Ratpoison, DISPLAY=:0.0, no Wayland), enabling displayX11 for a native package requires Xephyr. Even with Xephyr installed the nested display produces MIT-SHM errors and a black screen.
Environment
- Host: Fedora bootc, Ratpoison (X11), ALSA (no Pulse/PipeWire socket)
- cpak: 2.14.18
- Package: github.com/containerpak/mpv
- Xephyr: xorg-x11-server-Xephyr 21.1.25
Steps
- Install package and set override:
- socketX11 / displayX11: true
- deviceAlsa: true
- filesystem: home/.config/mpv + home/Videos
- Install Xephyr
- Run:
cpak run github.com/containerpak/mpv -- /usr/bin/mpv --vo=x11
Result
- Audio works (ALSA)
- Window opens via Xephyr
- Video output fails:
[vo/x11/x11] X11 error: BadAccess
[vo/x11/x11] X11 error: BadShmSeg
[vo/x11] can't keep up! Waiting for XShm completion events...
- Black screen.
--vo=gpuand--vo=xvalso fail to produce an image. - Direct X11 socket is never mounted (
/tmp/.X11-unixdoes not exist inside the container).
- Dominant language
- Go
- Stars
- 218
- Forks
- 5
- Avg merge
- 45m
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Containerpak/cpak
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Containerpak/cpak#93 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Containerpak/cpak#92 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Containerpak/cpak#90 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
Containerpak/cpak#88 ·
-
[Feature] Ability to install applications sytem wide (Like how you can do it with `flatpak --system`Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Containerpak/cpak#81 ·
All issues in Containerpak/cpak
Similar issues
-
Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
projectdiscovery/httpx#2735 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
charmbracelet/huh#849 ·
-
help wanted stage/010-actionable
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
hivecommons/hive#18458 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
suzuki-shunsuke/tfcmt#2636 ·
Maintainers usually reply within 1 day
-
ui: links opened in a new tab omit the public URL path prefix (e.g. rotations on a schedule's assignments page)Possibly taken @dginther claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day