GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Regression] v1.1.21 OpenTUI fails to initialize in Termux/PRoot (ARM64): "Permission denied" on /proc/self/fd · Issue #8620 · anomalyco/opencode

[Regression] v1.1.21 OpenTUI fails to initialize in Termux/PRoot (ARM64): "Permission denied" on /proc/self/fd #8620

New issue
Copy link
New issue
Copy link
Closed
Closed
[Regression] v1.1.21 OpenTUI fails to initialize in Termux/PRoot (ARM64): "Permission denied" on /proc/self/fd#8620
Copy link
Assignees
kommander
Labels
bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Description

@ragn-xt12114
ragn-xt12114
opened on Jan 15, 2026
Issue body actions

Description

What happened?
After updating from v1.1.20 to v1.1.21, OpenCode fails to start the TUI interface in a Termux PRoot environment (running Ubuntu via proot-distro on Android ARM64).

The process hangs or exits immediately. Using --print-logs reveals a critical error in the new OpenTUI render library. It appears v1.1.21 attempts to load shared libraries via memfd_create referenced through /proc/self/fd/, which is intercepted and restricted by PRoot, causing a "Permission denied" error.

Key Findings:

  1. Regression: Version 1.1.20 works perfectly in the same environment.
  2. Workaround: Downgrading to 1.1.20 resolves the issue immediately.
  3. Failed Fixes: Cleaning ~/.cache/opencode, ~/.local/share/opencode, and attempting to set L2S_DLOPEN_TMPDIR or TMPDIR to a physical directory did not resolve the issue.

Error Logs:

INFO  2026-01-15T05:55:13 +290ms service=default version=1.1.21 args=["--print-logs"] opencode
ERROR 2026-01-15T05:55:13 +112ms service=default e=Failed to initialize OpenTUI render library: Failed to open library "/proc/self/fd/19": /proc/self/fd/19: cannot open shared object file: Permission denied rejection
ERROR 2026-01-15T05:55:13 +0ms service=default Error: Failed to initialize OpenTUI render library: Failed to open library "/proc/self/fd/19": /proc/self/fd/19: cannot open shared object file: Permission denied

Environment:

  • OS: Android (Termux)
  • Environment: PRoot container (Debian)
  • Architecture: aarch64 (ARM64)
  • Package Manager: pnpm / bun

Plugins

@opencode-ai/plugin, opencode-anthropic-auth (Core plugins)

OpenCode version

1.1.21 (Issue present), 1.1.20 (Last working version)

Steps to reproduce

  1. Set up a Termux environment on Android.
  2. Install a PRoot distro (e.g., proot-distro install debian).
  3. Login to PRoot (proot-distro login ubuntu).
  4. Install the latest OpenCode: pnpm add -g [email protected].
  5. Run opencode.
  6. Observation: The TUI does not render. Running opencode --print-logs shows the /proc/self/fd permission denied error.

Screenshot and/or share link

No response

Operating System

Android (Termux) running debian via proot-distro (aarch64)

Terminal

Termux

Activity

  1. ragn-xt12114
    added
    bugSomething isn't working
    on Jan 15, 2026
  2. github-actions
    assigned
    kommander
    on Jan 15, 2026
  3. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 15, 2026
  4. github-actions commented on Jan 15, 2026

    @github-actions
    github-actionsBot
    on Jan 15, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • [Critical] CLI hangs on second run (Deadlock) on Linux ARM64 (Proot/Container environments) #7843: [Critical] CLI hangs on second run (Deadlock) on Linux ARM64 (Proot/Container environments) - Reports ARM64/Proot environment failures with TUI initialization
    • [Bug] Opencode crashes on second run in Termux/Proot distro #3143: [Bug] Opencode crashes on second run in Termux/Proot distro - Similar Termux/Proot environment crashes after first run
    • OpenCode crashes with "Aborted" on Termux/Debian on second attempt, [object ErrorEvent] #7472: OpenCode crashes with "Aborted" on Termux/Debian on second attempt - Termux/Proot environment crash with error handling issues
    • v1.1.21-baseline crashing with Illegal Instruction (regression from v1.1.20) #8611: v1.1.21-baseline crashing with Illegal Instruction - Another v1.1.21 regression (though different symptom, same version)

    All of these relate to v1.1.21 regressions or Termux/Proot environment issues. Feel free to ignore if your specific case is distinct from these.

  5. mike-shen-github commented on Jan 15, 2026

    @mike-shen-github
    mike-shen-github
    on Jan 15, 2026
    More actions

    This bug wasted me 4hours....

  6. ragn-xt12114 commented on Jan 16, 2026

    @ragn-xt12114
    ragn-xt12114
    on Jan 16, 2026
    Author
    More actions

    This bug wasted me 4hours....

    me too............

  7. ragn-xt12114 commented on Jan 18, 2026

    @ragn-xt12114
    ragn-xt12114
    on Jan 18, 2026
    Author
    More actions

    The bug has been fixed in 1.1.25

  8. github-actions commented on Mar 27, 2026

    @github-actions
    github-actionsBot
    on Mar 27, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  9. github-actions
    closed this as completedon Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kommander
    kommander

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.