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

quickemu: fails w/ "Couldn't find current GLX or EGL context" #231561

Closed
giorgiga opened this issue May 13, 2023 · 4 comments
Closed

quickemu: fails w/ "Couldn't find current GLX or EGL context" #231561

giorgiga opened this issue May 13, 2023 · 4 comments
Labels
0.kind: bug Something is broken

Comments

@giorgiga
Copy link
Contributor

Describe the bug

quickemu 4.7 fails:

$ quickemu --vm alpine-latest.conf
/nix/store/kvwq3y9xfbiiiymirgm34hr35gl5b8ix-quickemu-4.7/bin/.quickemu-wrapped: line 1746: kill: (23959) - No such process
Quickemu 4.7 using /nix/store/h601yz544qv1vw8r621ixlqrf71bnf78-qemu-8.0.0/bin/qemu-system-x86_64 v8.0.0
 - Host:     "openSUSE Tumbleweed" running Linux 6.3 (pop)
 - CPU:      AMD Ryzen 9 5900X 12-Core Processor
 - CPU VM:   1 Socket(s), 8 Core(s), 2 Thread(s), 8G RAM
 - BOOT:     EFI (Linux), OVMF (/nix/store/lrlk1f5c1vd6b3mi21q42pxj9cgf94w5-OVMF-202211-fd/FV/OVMF_CODE.fd), SecureBoot (off).
 - Disk:     alpine-latest/disk.qcow2 (16G)
             Looks unused, booting from alpine-latest/alpine-virt-3.18.0-x86_64.iso
 - Boot ISO: alpine-latest/alpine-virt-3.18.0-x86_64.iso
 - Display:  SDL, virtio-vga-gl, GL (on), VirGL (on)
 - ssh:      On host:  ssh user@localhost -p 22220
 - WebDAV:   On guest: dav://localhost:9843/
 - 9P:       On guest: sudo mount -t 9p -o trans=virtio,version=9p2000.L,msize=104857600 Public-myuser ~/myuser
 - smbd:     On guest: smb://10.0.2.4/qemu
 - Network:  User (virtio-net)
 - Monitor:  On host:  nc -U "alpine-latest/alpine-latest-monitor.socket"
             or     :  socat -,echo=0,icanon=0 unix-connect:alpine-latest/alpine-latest-monitor.socket
 - Serial:   On host:  nc -U "alpine-latest/alpine-latest-serial.socket"
             or     :  socat -,echo=0,icanon=0 unix-connect:alpine-latest/alpine-latest-serial.socket
qemu-system-x86_64: ../src/dispatch_common.c:885: epoxy_get_proc_address: Assertion `0 && "Couldn't find current GLX or EGL context.\n"' failed.
 - Process:  Starting alpine-latest.conf as alpine-latest (28946)
~/tmp [1] c quickemu-4.7

Steps To Reproduce

Happens systematically on my system (opensuse tumbleweed, quickemu installed via home-manager)

Notify maintainers

@FedX-sudo

Metadata

$nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.3.1-1-default, openSUSE Tumbleweed, noversion, nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(giorgio): `"home-manager"`
 - nixpkgs: `/nix/store/cyqa3d8y0q5dn6mmpyvpr10cz946scqf-source`
@giorgiga giorgiga added the 0.kind: bug Something is broken label May 13, 2023
@OPNA2608
Copy link
Contributor

non-NixOS
GL-related error

https://nixos.org/manual/nixpkgs/unstable/#nix-on-gnulinux

If you are using a non-NixOS GNU/Linux/X11 desktop with free software video drivers, consider launching OpenGL-dependent programs from Nixpkgs with Nixpkgs versions of libglvnd and mesa.drivers in LD_LIBRARY_PATH.

Check if https://github.com/guibou/nixGL works around it for you.

@giorgiga
Copy link
Contributor Author

nix run --override-input nixpkgs nixpkgs/nixos-21.11 --impure github:guibou/nixGL -- quickemu --vm alpine-latest.conf works.

Thank you very much for the assistance.

I assume this is the expected behaviour and so I'm closing this issue.

@OPNA2608
Copy link
Contributor

It's sadly a known problem, see #9415 for the relevant issue.

@jmada
Copy link

jmada commented Apr 19, 2024

Adding --display spice worked for me.
quickemu --vm macos-catalina.conf --display spice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

3 participants