Failed to initialize OpenTUI render library: Failed to open library "B:/~BUN/root/opentui-a0neyneg.dll": #6569

Closed
opened 2026-02-16 18:04:36 -05:00 by yindo · 6 comments
Owner

Originally created by @cy18 on GitHub (Jan 17, 2026).

Originally assigned to: @kommander on GitHub.

Description

I tried opencode --print-logs, the result is :

INFO  2026-01-17T06:12:01 +185ms service=default version=1.1.25 args=["--print-logs"] opencode
INFO  2026-01-17T06:12:01 +2ms service=config path=C:\Users\Clark\.config\opencode\config.json loading
INFO  2026-01-17T06:12:01 +1ms service=config path=C:\Users\Clark\.config\opencode\opencode.json loading
INFO  2026-01-17T06:12:01 +0ms service=config path=C:\Users\Clark\.config\opencode\opencode.jsonc loading
ERROR 2026-01-17T06:12:01 +5ms service=default e=Failed to initialize OpenTUI render library: Failed to open library "B:/~BUN/root/opentui-a0neyneg.dll": error code 126 rejection
ERROR 2026-01-17T06:12:01 +0ms service=default Error: Failed to initialize OpenTUI render library: Failed to open library "B:/~BUN/root/opentui-a0neyneg.dll": error code 126

Plugins

No response

OpenCode version

1.1.25

Steps to reproduce

  1. Open terminal (powershell, cmd, fish/msys2)
  2. opencode --print-logs

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Originally created by @cy18 on GitHub (Jan 17, 2026). Originally assigned to: @kommander on GitHub. ### Description I tried opencode --print-logs, the result is : ``` INFO 2026-01-17T06:12:01 +185ms service=default version=1.1.25 args=["--print-logs"] opencode INFO 2026-01-17T06:12:01 +2ms service=config path=C:\Users\Clark\.config\opencode\config.json loading INFO 2026-01-17T06:12:01 +1ms service=config path=C:\Users\Clark\.config\opencode\opencode.json loading INFO 2026-01-17T06:12:01 +0ms service=config path=C:\Users\Clark\.config\opencode\opencode.jsonc loading ERROR 2026-01-17T06:12:01 +5ms service=default e=Failed to initialize OpenTUI render library: Failed to open library "B:/~BUN/root/opentui-a0neyneg.dll": error code 126 rejection ERROR 2026-01-17T06:12:01 +0ms service=default Error: Failed to initialize OpenTUI render library: Failed to open library "B:/~BUN/root/opentui-a0neyneg.dll": error code 126 ``` ### Plugins _No response_ ### OpenCode version 1.1.25 ### Steps to reproduce 1. Open terminal (powershell, cmd, fish/msys2) 2. opencode --print-logs ### Screenshot and/or share link _No response_ ### Operating System Windows 11 ### Terminal Windows Terminal
yindo added the windowsopentuibug labels 2026-02-16 18:04:36 -05:00
yindo closed this issue 2026-02-16 18:04:36 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 17, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #8211: 1.1.16 - OpenTUI failed to initialize (Windows, similar DLL loading error with error code 225)
  • #3765: Failed to initialize OpenTUI render library: Failed to open library (generic OpenTUI library initialization issue)
  • #4605: OpenTUI appears to not be respecting setting TMPDIR when starting up, leading to failure to initialize OpenTUI library (related to temporary library file access)
  • #8620: [Regression] v1.1.21 OpenTUI fails to initialize in Termux/PRoot (ARM64) (OpenTUI initialization issues in different environments)
  • #5175: can not start opencode on ubuntu /tmp does not allow execution of .so (related to shared object/DLL loading from temp directories)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 17, 2026): This issue might be a duplicate of existing issues. Please check: - #8211: 1.1.16 - OpenTUI failed to initialize (Windows, similar DLL loading error with error code 225) - #3765: Failed to initialize OpenTUI render library: Failed to open library (generic OpenTUI library initialization issue) - #4605: OpenTUI appears to not be respecting setting TMPDIR when starting up, leading to failure to initialize OpenTUI library (related to temporary library file access) - #8620: [Regression] v1.1.21 OpenTUI fails to initialize in Termux/PRoot (ARM64) (OpenTUI initialization issues in different environments) - #5175: can not start opencode on ubuntu /tmp does not allow execution of .so (related to shared object/DLL loading from temp directories) Feel free to ignore if none of these address your specific case.
Author
Owner

@kommander commented on GitHub (Jan 17, 2026):

It might be blocked or in quarantine. Not sure how to handle that on windows. @Hona maybe?

@kommander commented on GitHub (Jan 17, 2026): It might be blocked or in quarantine. Not sure how to handle that on windows. @Hona maybe?
Author
Owner

@cy18 commented on GitHub (Jan 18, 2026):

It's an issue of ImDisk RAMDisk, using https://github.com/tmcdos/ramdisk fixed it.

@cy18 commented on GitHub (Jan 18, 2026): It's an issue of ImDisk RAMDisk, using https://github.com/tmcdos/ramdisk fixed it.
Author
Owner

@Hona commented on GitHub (Jan 18, 2026):

Cool, sounds unrelated to something we should fix. Thanks for updating the issue :)

@Hona commented on GitHub (Jan 18, 2026): Cool, sounds unrelated to something we should fix. Thanks for updating the issue :)
Author
Owner

@LogicDaemon commented on GitHub (Feb 3, 2026):

had the same problem, found a different workaround though.
My %TEMP% was set to the ImDisk RAM drive. If I just set a different TEMP before starting opencode, it works well:
opencode.cmd:

SET "TMP=%LocalAppData%\Temp"
SET "TEMP=%LocalAppData%\Temp"
opencode.exe %*
@LogicDaemon commented on GitHub (Feb 3, 2026): had the same problem, found a different workaround though. My %TEMP% was set to the ImDisk RAM drive. If I just set a different TEMP before starting opencode, it works well: `opencode.cmd`: ```cmd SET "TMP=%LocalAppData%\Temp" SET "TEMP=%LocalAppData%\Temp" opencode.exe %* ```
Author
Owner

@Msmevol commented on GitHub (Feb 12, 2026):

It's an issue of ImDisk RAMDisk, using https://github.com/tmcdos/ramdisk fixed it.

Could you please let me know how you solved it?

@Msmevol commented on GitHub (Feb 12, 2026): > It's an issue of ImDisk RAMDisk, using https://github.com/tmcdos/ramdisk fixed it. Could you please let me know how you solved it?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6569