Skip to content

opencode启动后报错 #13064

Closed as not planned
Closed as not planned

Description

@zzzzes

Description

opencode(14113,0x1718ff000)malloc:**error for object 0x10438b300:pointer being freed was not allo cated opencode(14113,0x1718ff000)malloc:**set a breakpoint in malloc_error_break to debug [1] 14113 trace trap opencode

Image

Plugins

NO

OpenCode version

1.1.56

Steps to reproduce

Enter the terminal -> opencode -> Wait for about 10 seconds and an error occurs -> The terminal starts to automatically generate the data in the image

Screenshot and/or share link

Image

Operating System

macOS 15.0

Terminal

tabby

Activity

  1. github-actions commented on Feb 11, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • OpenCode version is missing - this is critical for debugging
    • Operating System is required (you mentioned macOS in the screenshot, but please confirm)
    • Terminal is required (e.g., zsh, bash, iTerm2, etc.)
    • Steps to reproduce are missing - how can we consistently trigger this error?
    • System information is needed to help diagnose the malloc error

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


    Potential duplicates:
    This memory error might be related to existing issues. Please check:

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. ponecrazy commented on Feb 11, 2026

    @ponecrazy

    I tested the recent releases and confirmed that v1.1.53 is the last version that works correctly.
    The issue appears to have been introduced starting from v1.1.54.

  3. zzzzes commented on Feb 11, 2026

    @zzzzes
    Author

    I tested the recent releases and confirmed that v1.1.53 is the last version that works correctly. The issue appears to have been introduced starting from v1.1.54.

    thank you your reply! I'll roll back the version to 1.1.53 and see if there's this problem.

  4. zzzzes commented on Feb 11, 2026

    @zzzzes
    Author

    After installing 1.1.53, this problem will also occur when logging in with opencode auth. Image

  5. github-actions commented on Feb 11, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

    Feel free to open a new issue that follows our issue templates.

  6. rishabhpoddar commented on Feb 11, 2026

    @rishabhpoddar

    Seeing this as well.

  7. zzzzes commented on Feb 11, 2026

    @zzzzes
    Author

    Seeing this as well.

    I solved this problem after reverting to another version

  8. Lxj96 commented on Feb 11, 2026

    @Lxj96

    我也看到了这一点。

    我回滚到另一个版本后解决了这个问题。

    哪个版本可以?我回滚到 1.1.53也还是有这个问题

  9. zzzzes commented on Feb 11, 2026

    @zzzzes
    Author

    我也看到了这一点。

    我回滚到另一个版本后解决了这个问题。

    哪个版本可以?我回滚到 1.1.53也还是有这个问题

    我退回到了1.1.36,没有之前的问题,但是我/init后,等了一会,又出现了这个问题

    Image
  10. ponecrazy commented on Feb 11, 2026

    @ponecrazy

    需要确认一下有没有回退成功,我用 brew 管理的版本,一开始回退没成功

  11. zzzzes commented on Feb 11, 2026

    @zzzzes
    Author

    需要确认一下有没有回退成功,我用 brew 管理的版本,一开始回退没成功

    我是先直接卸载,然后使用的npm安装的。

    Image

    但是好像没有回退成功

  12. zzzzes commented on Feb 11, 2026

    @zzzzes
    Author

    需要确认一下有没有回退成功,我用 brew 管理的版本,一开始回退没成功

    想问一下brew怎么安装指定版本呢

  13. ponecrazy commented on Feb 11, 2026

    @ponecrazy

    需要确认一下有没有回退成功,我用 brew 管理的版本,一开始回退没成功

    想问一下brew怎么安装指定版本呢

    类似这样的操作
    brew tap-new my/tap
    brew extract --version=1.20 go my/tap
    brew install my/tap/[email protected]

    我 which 看了下本地引到了~/.opencode/bin/opencode,我把这个删了才正常引到 brew 管理的版本/opt/homebrew/bin/opencode

  14. zzzzes commented on Feb 11, 2026

    @zzzzes
    Author

    需要确认一下有没有回退成功,我用 brew 管理的版本,一开始回退没成功

    想问一下brew怎么安装指定版本呢

    类似这样的操作 brew tap-new my/tap brew extract --version=1.20 go my/tap brew install my/tap/[email protected]

    我 which 看了下本地引到了~/.opencode/bin/opencode,我把这个删了才正常引到 brew 管理的版本/opt/homebrew/bin/opencode

    感谢指导。我试试把这个删除掉能不能解决

  15. zzzzes commented on Feb 11, 2026

    @zzzzes
    Author

    需要确认一下有没有回退成功,我用 brew 管理的版本,一开始回退没成功

    想问一下brew怎么安装指定版本呢

    类似这样的操作 brew tap-new my/tap brew extract --version=1.20 go my/tap brew install my/tap/[email protected]

    我 which 看了下本地引到了~/.opencode/bin/opencode,我把这个删了才正常引到 brew 管理的版本/opt/homebrew/bin/opencode

    测试了一下,跟据您的方法已经退回到了1.1.53版本,好像是没什么问题了。再次感谢您

  16. ziyang-gam commented on Feb 11, 2026

    @ziyang-gam

    1.1.53 没有问题吗?

  17. zzzzes commented on Feb 11, 2026

    @zzzzes
    Author

    1.1.53 没有问题吗?

    目前一切正常

  18. ziyang-gam commented on Feb 11, 2026

    @ziyang-gam

    1.1.53 没有问题吗?

    目前一切正常

    确实目前没问题 谢谢你

  19. Lxj96 commented on Feb 11, 2026

    @Lxj96

    1.1.53 没有问题吗?

    目前一切正常

    使用brew安装的1.1.53没有问题吗?我用npm安装的,没一会又出现了

  20. zzzzes commented on Feb 11, 2026

    @zzzzes
    Author

    1.1.53 没有问题吗?

    目前一切正常

    使用brew安装的1.1.53没有问题吗?我用npm安装的,没一会又出现了

    是的,你最好先把~/.opencode/bin/opencode先删除,再安装。

  21. zzzzes commented on Feb 11, 2026

    @zzzzes
    Author

    1.1.53 没有问题吗?

    目前一切正常

    使用brew安装的1.1.53没有问题吗?我用npm安装的,没一会又出现了

    也可能是你根本没有回退成功

  22. Lxj96 commented on Feb 11, 2026

    @Lxj96

    1.1.53 没有问题吗?

    目前一切正常

    使用brew安装的1.1.53没有问题吗?我用npm安装的,没一会又出现了

    也可能是你根本没有回退成功

    我使用opencode --version看过,确实是1.1.53的,可能是我哪里没卸载干净

  23. zzzzes commented on Feb 11, 2026

    @zzzzes
    Author

    1.1.53 没有问题吗?

    目前一切正常

    使用brew安装的1.1.53没有问题吗?我用npm安装的,没一会又出现了

    也可能是你根本没有回退成功

    我使用opencode --version看过,确实是1.1.53的,可能是我哪里没卸载干净

    按照上面的brew按照要求一步步执行看看

  24. HerculeLiu commented on Feb 12, 2026

    @HerculeLiu

    I tried versions 1.1.53, 1.1.56, and 1.1.59, and they all had the same problem: crashing shortly after opening opencode, without any user interaction.

  25. zzzzes commented on Feb 12, 2026

    @zzzzes
    Author
  26. ponecrazy commented on Feb 13, 2026

    @ponecrazy

    看起来最新版本(1.1.64)已经修复了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneeds:complianceThis means the issue will auto-close after 2 hours.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions