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

(EE) Failed to create gbm #256

Open
ajw685 opened this issue Jun 29, 2024 · 3 comments
Open

(EE) Failed to create gbm #256

ajw685 opened this issue Jun 29, 2024 · 3 comments

Comments

@ajw685
Copy link

ajw685 commented Jun 29, 2024

OS: Debian 12 (Bookworm) / Ubuntu 22.04 (Jammy)
System: HP T520 Thin Client; AMD GX-212JC (dual core)
GPU: Radeon R2E
Remote Viewing Browser: Chrome (Windows)

I'm trying to start kasmvnc with -hw3d flag and every time I get the following:

guy@computer:/tmp$ vncserver -hw3d
Could not start Xvnc.

 2024-06-29 00:38:15,735 [DEBUG] Config: set QueryConnect(Bool) to 0(0)
 2024-06-29 00:38:15,736 [DEBUG] Config: set VideoOutTime(Int) to 3
 2024-06-29 00:38:15,736 [DEBUG] Config: set key(String) to /etc/ssl/private/ssl-cert-snakeoil.key
 2024-06-29 00:38:15,736 [DEBUG] Config: set interface(String) to 0.0.0.0
 2024-06-29 00:38:15,736 [DEBUG] Config: set AllowOverride(String) to AcceptPointerEvents,SendCutText,AcceptCutText,SendPrimary
 2024-06-29 00:38:15,736 [DEBUG] Config: set CompareFB(Int) to 2
 2024-06-29 00:38:15,736 [DEBUG] Config: set DLP_KeyRateLimit(Int) to 0
 2024-06-29 00:38:15,736 [DEBUG] Config: set cert(String) to /etc/ssl/certs/ssl-cert-snakeoil.pem
 2024-06-29 00:38:15,736 [DEBUG] Config: set BlacklistTimeout(Int) to 10
 2024-06-29 00:38:15,736 [DEBUG] Config: set JpegVideoQuality(Int) to -1
 2024-06-29 00:38:15,736 [DEBUG] Config: set PrintVideoArea(Bool) to 0(0)
 2024-06-29 00:38:15,736 [DEBUG] Config: set MaxConnectionTime(Int) to 0
 2024-06-29 00:38:15,736 [DEBUG] Config: set UseIPv6(Bool) to 1(1)
 2024-06-29 00:38:15,736 [DEBUG] Config: set KasmPasswordFile(String) to /home/guy/.kasmpasswd
 2024-06-29 00:38:15,736 [DEBUG] Config: set BlacklistThreshold(Int) to 5
 2024-06-29 00:38:15,737 [DEBUG] Config: set DLP_RegionAllowRelease(Bool) to 0(0)
 2024-06-29 00:38:15,737 [DEBUG] Config: set FrameRate(Int) to 60
 2024-06-29 00:38:15,737 [DEBUG] Config: set ImprovedHextile(Bool) to 1(1)
 2024-06-29 00:38:15,737 [DEBUG] Config: set DLP_ClipAcceptMax(Int) to 0
 2024-06-29 00:38:15,737 [DEBUG] Config: set MaxDisconnectionTime(Int) to 0
 2024-06-29 00:38:15,737 [DEBUG] Config: set AcceptCutText(Bool) to 1(1)
 2024-06-29 00:38:15,737 [DEBUG] Config: set SendPrimary(Bool) to 0(0)
 2024-06-29 00:38:15,737 [DEBUG] Config: set httpd(String) to /usr/share/kasmvnc/www
 2024-06-29 00:38:15,737 [DEBUG] Config: set DynamicQualityMin(Int) to 7
 2024-06-29 00:38:15,737 [DEBUG] Config: set IdleTimeout(Int) to 0
 2024-06-29 00:38:15,737 [DEBUG] Config: set UseIPv4(Bool) to 1(1)
 2024-06-29 00:38:15,737 [DEBUG] Config: set VideoScaling(Int) to 2
 2024-06-29 00:38:15,737 [DEBUG] Config: set AvoidShiftNumLock(Bool) to 0(0)
 2024-06-29 00:38:15,737 [DEBUG] Config: set DLP_Log(String) to off
 2024-06-29 00:38:15,737 [DEBUG] Config: set DLP_ClipSendMax(Int) to 0
 2024-06-29 00:38:15,737 [DEBUG] Config: set websocketPort(Int) to 8444
 2024-06-29 00:38:15,737 [DEBUG] Config: set DisconnectClients(Bool) to 0(0)
 2024-06-29 00:38:15,737 [DEBUG] Config: set MaxVideoResolution(String) to 1920x1080
 2024-06-29 00:38:15,737 [DEBUG] Config: set DynamicQualityMax(Int) to 8
 2024-06-29 00:38:15,737 [DEBUG] Config: set WebpVideoQuality(Int) to -1
 2024-06-29 00:38:15,737 [DEBUG] Config: set udpFullFrameFrequency(Int) to 0
 2024-06-29 00:38:15,738 [DEBUG] Config: set AcceptSetDesktopSize(Bool) to 1(1)
 2024-06-29 00:38:15,738 [DEBUG] Config: set SendCutText(Bool) to 1(1)
 2024-06-29 00:38:15,738 [DEBUG] Config: set QueryConnectTimeout(Int) to 10
 2024-06-29 00:38:15,738 [DEBUG] Config: set RectThreads(Int) to 0
 2024-06-29 00:38:15,738 [DEBUG] Config: set DLP_ClipTypes(String) to chromium/x-web-custom-data,text/html,image/png
 2024-06-29 00:38:15,738 [DEBUG] Config: set DLP_ClipDelay(Int) to 0
 2024-06-29 00:38:15,738 [DEBUG] Config: set RawKeyboard(Bool) to 0(0)
 2024-06-29 00:38:15,738 [DEBUG] Config: set AcceptPointerEvents(Bool) to 1(1)
 2024-06-29 00:38:15,738 [DEBUG] Config: set VideoTime(Int) to 5
 2024-06-29 00:38:15,738 [DEBUG] Config: set sslOnly(Bool) to 1(1)
 2024-06-29 00:38:15,738 [DEBUG] Config: set DLP_RegionAllowClick(Bool) to 0(0)
 2024-06-29 00:38:15,738 [DEBUG] Config: set IgnoreClientSettingsKasm(Bool) to 0(0)
 2024-06-29 00:38:15,738 [DEBUG] Config: set VideoArea(Int) to 45
 2024-06-29 00:38:15,738 [DEBUG] Config: set desktop(String) to computer:1 (guy)
 2024-06-29 00:38:15,738 [DEBUG] Config: set MaxIdleTime(Int) to 0
 2024-06-29 00:38:15,738 [DEBUG] Config: set TreatLossless(Int) to 10
 2024-06-29 00:38:15,738 [DEBUG] Config: set ClientWaitTimeMillis(Int) to 30000
 2024-06-29 00:38:15,738 [DEBUG] Config: set PasswordFile(String) to /home/guy/.vnc/passwd
 2024-06-29 00:38:15,738 [DEBUG] Config: set rfbport(Int) to 5901
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

Xvnc KasmVNC 1.3.1.230e50f7b89663316c70de7b0e3db6f6b9340489 - built Mar 15 2024 09:25:50
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12008000, The X.Org Foundation

(EE)
Fatal server error:
(EE) Failed to create gbm
(EE)
```
`
Does the same thing on Ubuntu (gnome) and Debian (xfce). Yes, using the different packages for each OS.
I logged in using keyboard/mouse/montior and ran diagnostics, mesa-utils/glxgears which outputs right at 60 fps and stable, and lshw shows radeon driver is in use

kasmvnc will run without GPU /without -hw3d flag

I'm not sure where to start looking to solve this problem.
I had kasmvnc installed on this machine last year (~august '23) with Debian 12 and was able to use hw3d successfully, but can't remember the shenanigans I needed to do to make it work, if any.

@ajw685
Copy link
Author

ajw685 commented Jun 30, 2024

if you run kasmvnc with root: sudo vncserver -hw3d

the server will start and you can connect to it through a browser, but

you get a black screen with this dialog box; once you click close it disappears and is just a black screen
image

installing dbus x11 package allows for hardware acceleration access to kasmvnc, just the problem is you have to run it sudo/root
image

@clbr
Copy link
Collaborator

clbr commented Jul 1, 2024

This sounds like you lack permissions to the device node (/dev/dri/renderD128). Your user should be added to the group that owns that file, or you could change its permissions to allow rw for your user.

@ajw685
Copy link
Author

ajw685 commented Jul 1, 2024

Thank you! I'll investigate and report back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants