Skip to content

Segmantation Fault, Bun has crashed in windows 11 while using opencode in terminal #33767

Closed as duplicate

Description

@hetpatel-dev

Description

I was using Open Code and suddenly error showed up (attached screenshot)and below error some random numbers started printing automatically. they were not stopping even if i was pressing ctrl + c instead i had to close the terminal

Plugins

No response

OpenCode version

[email protected]

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

git bash in antigravity and vscode

Activity

  1. github-actions commented on Jun 25, 2026

    @github-actions
    Contributor

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

    Please review those issues and add any additional context there if the problem matches. If your issue is distinct, feel free to note what makes it different.

  2. SinceJan commented on Jun 25, 2026

    @SinceJan

    我也遇到同样的问题,只要调用skill,记忆会崩溃,回退到1.17.9正常了

  3. SQKhanh commented on Jun 25, 2026

    @SQKhanh

    Same :(

    Image
  4. dunea commented on Jun 25, 2026

    @dunea
    Sponsor
    Image
  5. dunea commented on Jun 25, 2026

    @dunea
    Sponsor

    I have the same problem

  6. tearsoflebesgue commented on Jun 25, 2026

    @tearsoflebesgue

    I have the same problem

  7. abuss commented on Jun 25, 2026

    @abuss

    Same problem in MacOS

  8. tearsoflebesgue commented on Jun 25, 2026

    @tearsoflebesgue

    Imagesqlite bug is here

  9. dunea commented on Jun 25, 2026

    @dunea
    Sponsor

    Imagesqlite bug is here

    The database needs to be rebuilt.

    $stamp = Get-Date -Format "yyyyMMdd-HHmmss"
    $data = "$HOME.local\share\opencode"

    New-Item -ItemType Directory -Force -Path "$data\backup-$stamp" | Out-Null
    Copy-Item "$data\opencode.db*" "$data\backup-$stamp" -Force

    Rename-Item "$data\opencode.db" "opencode.db.bak-$stamp" -ErrorAction SilentlyContinue
    Rename-Item "$data\opencode.db-wal" "opencode.db-wal.bak-$stamp" -ErrorAction SilentlyContinue
    Rename-Item "$data\opencode.db-shm" "opencode.db-shm.bak-$stamp" -ErrorAction SilentlyContinue

  10. tearsoflebesgue commented on Jun 25, 2026

    @tearsoflebesgue

    Imagesqlite bug is here

    The database needs to be rebuilt.

    $stamp = Get-Date -Format "yyyyMMdd-HHmmss" $data = "$HOME.local\share\opencode"

    New-Item -ItemType Directory -Force -Path "$data\backup-$stamp" | Out-Null Copy-Item "$data\opencode.db*" "$data\backup-$stamp" -Force

    Rename-Item "$data\opencode.db" "opencode.db.bak-$stamp" -ErrorAction SilentlyContinue Rename-Item "$data\opencode.db-wal" "opencode.db-wal.bak-$stamp" -ErrorAction SilentlyContinue Rename-Item "$data\opencode.db-shm" "opencode.db-shm.bak-$stamp" -ErrorAction SilentlyContinue

    Indeed this solved my issue, thanks a lot, However I lost all of my session history : (

  11. panyann commented on Jun 25, 2026

    @panyann

    Imagesqlite bug is here

    The database needs to be rebuilt.

    $stamp = Get-Date -Format "yyyyMMdd-HHmmss" $data = "$HOME.local\share\opencode"

    New-Item -ItemType Directory -Force -Path "$data\backup-$stamp" | Out-Null Copy-Item "$data\opencode.db*" "$data\backup-$stamp" -Force

    Rename-Item "$data\opencode.db" "opencode.db.bak-$stamp" -ErrorAction SilentlyContinue Rename-Item "$data\opencode.db-wal" "opencode.db-wal.bak-$stamp" -ErrorAction SilentlyContinue Rename-Item "$data\opencode.db-shm" "opencode.db-shm.bak-$stamp" -ErrorAction SilentlyContinue

    Only resetting database doesn't help. Probably needs also downgrade to 1.17.9, but I'm not sure yet.

  12. tearsoflebesgue commented on Jun 25, 2026

    @tearsoflebesgue

    Imagesqlite bug is here

    The database needs to be rebuilt.

    $stamp = Get-Date -Format "yyyyMMdd-HHmmss" $data = "$HOME.local\share\opencode"
    New-Item -ItemType Directory -Force -Path "$data\backup-$stamp" | Out-Null Copy-Item "$data\opencode.db*" "$data\backup-$stamp" -Force
    Rename-Item "$data\opencode.db" "opencode.db.bak-$stamp" -ErrorAction SilentlyContinue Rename-Item "$data\opencode.db-wal" "opencode.db-wal.bak-$stamp" -ErrorAction SilentlyContinue Rename-Item "$data\opencode.db-shm" "opencode.db-shm.bak-$stamp" -ErrorAction SilentlyContinue

    Only resetting database doesn't help. Probably needs also downgrade to 1.17.9, but I'm not sure yet.

    yeah, I had downgraded to 1.17.9 before I created the new database.

  13. panyann commented on Jun 25, 2026

    @panyann

    After using for a while same issue... Recreating db and downgrading doesn't help.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions