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

undefined symbol: glXGetCurrentContext #22

Open
AngelGamer29JA opened this issue May 15, 2023 · 5 comments
Open

undefined symbol: glXGetCurrentContext #22

AngelGamer29JA opened this issue May 15, 2023 · 5 comments

Comments

@AngelGamer29JA
Copy link

AngelGamer29JA commented May 15, 2023

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

@DjDeveloperr
Copy link
Member

Should be fixed in 7cf4070

@rylydou
Copy link

rylydou commented Sep 25, 2023

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

image

@chances
Copy link

chances commented Apr 26, 2024

@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
Copy link

chances commented Apr 29, 2024

I've opened #34 to address this issue.

@iluha168
Copy link

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

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

5 participants