dwm icon indicating copy to clipboard operation
dwm copied to clipboard

undefined symbol: glXGetCurrentContext

Open AngelGamer29JA opened this issue 1 year ago • 4 comments

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();
});

Captura de pantalla_2023-05-15_14-07-03

AngelGamer29JA avatar May 15 '23 20:05 AngelGamer29JA

Should be fixed in 7cf4070b

DjDeveloperr avatar May 28 '23 05:05 DjDeveloperr

I am also having the same issue. The problem seams to be when a skia canvas is created with the gpu option set.

image

rylydou avatar Sep 25 '23 02:09 rylydou

@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

chances avatar Apr 26 '24 07:04 chances

I've opened https://github.com/deno-windowing/dwm/pull/34 to address this issue.

chances avatar Apr 29 '24 21:04 chances

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

iluha168 avatar Nov 25 '24 09:11 iluha168