Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] vscode launched inside container unusable with blank screen #1653

Open
scarf005 opened this issue Jan 8, 2025 · 6 comments
Open
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed wait-on-user waiting for a reply

Comments

@scarf005
Copy link

scarf005 commented Jan 8, 2025

Describe the bug

image

running vscode inside devcontainer like in https://github.com/89luca89/distrobox/blob/main/docs/posts/integrate_vscode_distrobox.md always result in blank frozen display.

To Reproduce

follow the step:

$ distrobox create --image archlinux:latest --name arch-distrobox-repro --verbose
$ distrobox enter --name arch-distrobox-repro
# sudo pacman -S code
# code

(also https://wiki.archcraft.io/blog/02-post-pacman/ needs to be applied)

Expected behavior

vscode is usable as in docs

Logs
Run the commands with --verbose and post the log here as a file upload
Attach also the output of podman logs or docker logs, possibly with --latest flag

Desktop (please complete the following information):

  • Are you using podman, docker or lilipod? podman
  • Which version or podman, docker or lilipod? 5.3.1
  • Which version of distrobox? 1.8.0
  • Which host distribution? fedora 41 kinoite
  • How did you install distrobox? came default installed in kinoite

Additional context

Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.12.7-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600G with Radeon Graphics
Memory: 30.7 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2
Manufacturer: HP
Product Name: Victus by HP 15L Gaming Desktop TG02-0xxx
@scarf005 scarf005 added the bug Something isn't working label Jan 8, 2025
@scarf005 scarf005 changed the title [Error] vscode launched inside container freezes forever [Error] vscode launched inside container unusable with blank screen Jan 8, 2025
@moonlitpath
Copy link

Have you tried using --nvidia when creating a container?

@scarf005
Copy link
Author

scarf005 commented Jan 14, 2025

image

Have you tried using --nvidia when creating a container?

Tried with --nvidia but it still shows empty screen.

@89luca89
Copy link
Owner

I also cannot reproduce this, can you try with some other container distribution in order to check if it's a package or distrobox problem?

@89luca89 89luca89 added help wanted Extra attention is needed good first issue Good for newcomers wait-on-user waiting for a reply labels Jan 19, 2025
@scarf005
Copy link
Author

last time i tried it didn't all work on ubuntu, fedora and arch distrobox. maybe it's an nvidia issue? (tho adding --nvidia didn't work)

@sr-tream
Copy link

Try to mount --volume /usr/lib/gbm:/usr/lib/gbm:ro with --nvidia flag - works for me. Without gbm vscode cannot activate hardware accelerate

@scarf005
Copy link
Author

Try to mount --volume /usr/lib/gbm:/usr/lib/gbm:ro with --nvidia flag - works for me. Without gbm vscode cannot activate hardware accelerate

thanks for the suggestion, but still doesn't work for me.

command tried:

distrobox create --image archlinux:latest --name arch --nvidia --volume /usr/lib/gbm:/usr/lib/gbm:ro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed wait-on-user waiting for a reply
Projects
None yet
Development

No branches or pull requests

4 participants