dwm
dwm copied to clipboard
undefined symbol: glXGetCurrentContext
deno: symbol lookup error: /home/angel/.cache/deno/plug/https/github.com/6124705c167a5007bfab218a8e66994369ecb4e10c7f44d4dbf2c97b8d05084b.so: undefined symbol: glXGetCurrentContext
import {
mainloop,
WindowCanvas,
} from "https://deno.land/x/[email protected]/ext/canvas.ts";
const canvas = new WindowCanvas({
title: "Skia Canvas",
width: 800,
height: 600,
resizable: true,
});
canvas.onDraw = (ctx) => {
ctx.fillStyle = "black";
ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height);
ctx.fillStyle = "white";
ctx.font = "30px Arial";
ctx.textBaseline = "top";
ctx.fillText("Hello World", 10, 10);
};
await mainloop(() => {
canvas.draw();
});
Should be fixed in 7cf4070b
I am also having the same issue. The problem seams to be when a skia canvas is created with the gpu option set.
@DjDeveloperr
Should be fixed in 7cf4070
This issue is not fixed when I target 0.3.6
. Has there been any newer fixes made to resolve this issue?
$ uname -a
Linux xavierMACmini-eOS 6.5.0-28-generic 29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC x86_64 x86_64 x86_64 GNU/Linux
I've opened https://github.com/deno-windowing/dwm/pull/34 to address this issue.
I am also having the same issue. I have narrowed it down to this call:
import { createCanvas } from "jsr:@gfx/[email protected]"
createCanvas(100, 100, true)
The error is only thrown when gpu
flag is true
.
deno: symbol lookup error: ~/.cache/deno/plug/https/github.com/6cd7acf911cb7a3c6b878f4cbcd006ea0e219ed16cb07c0bc41d4d795e30f800.so: undefined symbol: glXGetCurrentContext
uname -a
:
Linux <censored> 6.9.12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.9.12-1 (2024-07-27) x86_64 GNU/Linux