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

Segfault in Bun v1.1.29 when using "gl" package #14138

Closed
nachat-ayoub opened this issue Sep 24, 2024 · 1 comment
Closed

Segfault in Bun v1.1.29 when using "gl" package #14138

nachat-ayoub opened this issue Sep 24, 2024 · 1 comment
Assignees
Labels
crash An issue that could cause a crash runtime windows An issue that is known to occur on Windows

Comments

@nachat-ayoub
Copy link

How can we reproduce the crash?

I encountered a segmentation fault while trying to run my TypeScript file (createVideo.ts) that uses the FFCreator with Bun. The error occurred when executing a function related to loading a dynamic link library (DLL).

Environment:

Bun Version: v1.1.29 (latest stable)
Node Version: v22.9.0
Operating System: Windows 11
Architecture: x64
CPU Features: SSE4.2, AVX, AVX2

Relevant log output

elysia-app git:(master) bun run .\src\createVideo.ts
107 |         return opts[p] || p;
108 |       })
109 |     );
110 |     tries.push(n);
111 |     try {
112 |       b = opts.path ? requireFunc.resolve(n) : requireFunc(n);
                                                     ^
TypeError: LoadLibrary failed: A dynamic link library (DLL) in
      at bindings (C:\Users\...\elysia-app\node_modules\bindings\bindings.js:112:48)
      at C:\Users\...\elysia-app\node_modules\gl\src\javascript\native-gl.js:1:7
      at C:\Users\...\elysia-app\node_modules\gl\src\javascript\webgl-rendering-context.js:4:42
      at C:\Users\...\elysia-app\node_modules\gl\src\javascript\node-index.js:3:32
      at C:\Users\...\elysia-app\node_modules\gl\index.js:4:10
      at C:\Users\...\elysia-app\node_modules\inkpaint\lib\canvas-gl.js:120:11
      at C:\Users\...\elysia-app\node_modules\inkpaint\lib\polyfill\Canvas.js:7:5
      at C:\Users\...\elysia-app\node_modules\inkpaint\lib\polyfill\Doc.js:8:15
      at C:\Users\...\elysia-app\node_modules\inkpaint\lib\renderers\SystemRenderer.js:11:12
      at C:\Users\...\elysia-app\node_modules\inkpaint\lib\renderers\canvas\CanvasRenderer.js:7:23
      at C:\Users\...\elysia-app\node_modules\inkpaint\lib\core.js:318:23
      at C:\Users\...\elysia-app\node_modules\inkpaint\lib\index.js:480:5
      at C:\Users\...\elysia-app\node_modules\ffcreator\lib\node\cons.js:16:20
      at C:\Users\...\elysia-app\node_modules\ffcreator\lib\creator.js:23:7
      at C:\Users\...\elysia-app\node_modules\ffcreator\lib\index.js:14:7

Bun v1.1.29 (Windows x64)
============================================================
Bun v1.1.29 (6d43b366) Windows x64
Windows v.win10_fe
CPU: sse42 avx avx2
Args: "C:\Users\Nachat Ayoub\.bun\bin\bun.exe" "run" ".\src\createVideo.ts"
Features: jsc transpiler_cache(2) tsconfig(4) 
Builtins: "bun:main" "node:assert" "node:buffer" "node:constants" "node:crypto" "node:events" "node:fs" "node:os" "node:path" "node:stream" "node:string_decoder" "node:util" "node:util/types" 
Elapsed: 1499ms | User: 62ms | Sys: 62ms
RSS: 0.15GB | Peak: 0.15GB | Commit: 0.17GB | Faults: 36790

panic(main thread): Segmentation fault at address 0x7FF915A71947
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Stack Trace (bun.report)

Bun v1.1.29 (6d43b36) on windows x86_64 [RunCommand]

Segmentation fault at address 0x7FF915A71947

Features: jsc, transpiler_cache, tsconfig

@nachat-ayoub nachat-ayoub added the crash An issue that could cause a crash label Sep 24, 2024
@github-actions github-actions bot added runtime windows An issue that is known to occur on Windows labels Sep 24, 2024
@190n
Copy link
Contributor

190n commented Sep 30, 2024

Duplicate of #4290.

This happens because gl uses some V8 methods Bun doesn't implement yet. Please follow progress in that issue.

@190n 190n closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash An issue that could cause a crash runtime windows An issue that is known to occur on Windows
Projects
None yet
Development

No branches or pull requests

2 participants