Fork me on GitHub
#humbleui
<
2024-01-20
>
Bastian07:01:00

Hi, i'm having difficulties getting it to run on WSL 2 with Ubuntu 22.04 LTS

Bastian07:01:47

The repl prints:

X Error: BadMatch (invalid parameter attributes)
X Error: BadValue (integer parameter out of range for operation)
X Error: BadWindow (invalid Window parameter)
X Error: BadWindow (invalid Window parameter)
X Error: BadWindow (invalid Window parameter)
X Error: BadWindow (invalid Window parameter)
X Error: BadWindow (invalid Window parameter)
and this error gets repeated a couple of times:

Bastian07:01:33

(and a black window opens) thought I probably missed some libs and installed all the required ones to build JWM to no avail libxcomposite-dev libxrandr-dev libgl1-mesa-dev libxi-dev libxcursor-dev any ideas? (not a pressing issue, it is working fine in windows and I can try it there)

Bastian15:01:12

gives the same error

Nundrum16:01:14

Looks like WSL is missing some X11 compatibility package. Do other GUI Linux programs run there correctly on your machine?

Nundrum16:01:02

Or maybe it's as simple as setting DISPLAY=:0 in the env?

Bastian16:01:50

yeah, i suspect something like this too. xeyes and a simple java gui program works, maybe i need some opengl lib, i'll google a bit

Bastian17:01:38

seems to be an OpenGL issue with WSL and intel graphics drivers in Windows 10:man-shrugging:. (if somebody has the same issue: graphics config can be checked with glxinfo from package mesa-utils, this gives same error [Bad Value ...], so no humbleUI problem)

Niki17:01:35

I actually had run JWM at least on WSL2 in the past. But it was non-trivial, required some WSL tweaks and some code changes

Niki17:01:02

I don’t remember any details

Niki17:01:24

And it was pretty bad anyways, certainly not good enough to develop Linux version full-time