[GH-ISSUE #138] Failed to initialize OpenTUI render library #33

Closed
opened 2026-03-02 23:44:00 +03:00 by kerem · 2 comments
Owner

Originally created by @luuk00101 on GitHub (Sep 5, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/138

Hey guys,

after running bun install and bun install @opentui/core (after pulling the latest changes) from the root of the git cloned repository and changing directory to packages/core/src/examples and running bun run physx-planck-2d-demo.ts (but everything else threw that error)

I'm getting this error:

1276 | export function resolveRenderLib(): RenderLib {
1277 |   if (!opentuiLib) {
1278 |     try {
1279 |       opentuiLib = new FFIRenderLib(opentuiLibPath)
1280 |     } catch (error) {
1281 |       throw new Error(
                   ^
error: Failed to initialize OpenTUI render library: Symbol "textBufferGetLineInfoDirect" not found in "/Users/lukas/Developer/opentui/node_modules/@opentui/core-darwin-arm64/libopentui.dylib"
      at resolveRenderLib (/Users/lukas/Developer/opentui/packages/core/src/zig.ts:1281:13)
      at createCliRenderer (/Users/lukas/Developer/opentui/packages/core/src/renderer.ts:107:18)
      at createCliRenderer (/Users/lukas/Developer/opentui/packages/core/src/renderer.ts:95:41)
      at /Users/lukas/Developer/opentui/packages/core/src/examples/physx-planck-2d-demo.ts:495:26

Any idea what's going on?

Thank you!

Originally created by @luuk00101 on GitHub (Sep 5, 2025). Original GitHub issue: https://github.com/anomalyco/opentui/issues/138 Hey guys, after running `bun install` and `bun install @opentui/core` (_after_ pulling the latest changes) from the root of the git cloned repository and changing directory to `packages/core/src/examples` and running `bun run physx-planck-2d-demo.ts` (but everything else threw that error) I'm getting this error: ```shell 1276 | export function resolveRenderLib(): RenderLib { 1277 | if (!opentuiLib) { 1278 | try { 1279 | opentuiLib = new FFIRenderLib(opentuiLibPath) 1280 | } catch (error) { 1281 | throw new Error( ^ error: Failed to initialize OpenTUI render library: Symbol "textBufferGetLineInfoDirect" not found in "/Users/lukas/Developer/opentui/node_modules/@opentui/core-darwin-arm64/libopentui.dylib" at resolveRenderLib (/Users/lukas/Developer/opentui/packages/core/src/zig.ts:1281:13) at createCliRenderer (/Users/lukas/Developer/opentui/packages/core/src/renderer.ts:107:18) at createCliRenderer (/Users/lukas/Developer/opentui/packages/core/src/renderer.ts:95:41) at /Users/lukas/Developer/opentui/packages/core/src/examples/physx-planck-2d-demo.ts:495:26 ``` Any idea what's going on? Thank you!
kerem closed this issue 2026-03-02 23:44:00 +03:00
Author
Owner

@kommander commented on GitHub (Sep 5, 2025):

Jup, main changed and the release does not include these changes, so the prebuilt packages won't work. You can checkout the latest release commit which should be "prepare release 0.1.14", for that the prebuilt packages should work.

Or you bun run build from the root, must have zig 0.14.1 available though.

<!-- gh-comment-id:3258066632 --> @kommander commented on GitHub (Sep 5, 2025): Jup, main changed and the release does not include these changes, so the prebuilt packages won't work. You can checkout the latest release commit which should be "prepare release 0.1.14", for that the prebuilt packages should work. Or you `bun run build` from the root, must have zig 0.14.1 available though.
Author
Owner

@luuk00101 commented on GitHub (Sep 5, 2025):

thank you, @kommander! 👍

<!-- gh-comment-id:3258350732 --> @luuk00101 commented on GitHub (Sep 5, 2025): thank you, @kommander! 👍
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#33
No description provided.