opencode icon indicating copy to clipboard operation
opencode copied to clipboard

embedded bun crashed

Open jiangfire opened this issue 2 months ago • 2 comments

Description

I can't run open code in windows, because bun has crashed. But if i run bun in my computer, it can run. the message

Bun v1.3.5 (1e86cebd) Windows x64 (baseline)
Windows v.win10_19h1
Args: "E:\tools\bin\opencode.exe" "--user-agent=opencode/1.1.20" "--use-system-ca " "--" "--version"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch jsc no_avx2 no_avx standalone_executable
Builtins: "bun:ffi" "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:console" "node:crypto" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:process" "node:querystring" "node:readline" "node:stream" "node:string_decoder" "node:timers" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "undici" "node:v8" "node:dgram"
Elapsed: 1049ms | User: 2312ms | Sys: 640ms
RSS: 0.40GB | Peak: 0.40GB | Commit: 0.54GB | Faults: 160797 | Machine: 17.08GB

CPU lacks AVX support. Please consider upgrading to a newer CPU.
panic(main thread): Segmentation fault at address 0x471A13FDAAA
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:

 https://bun.report/1.3.5/ea11e86cebEugogigDCcLHShield64.dll4oyhCCcLHShield64.dlly2xhCCcLHShield64.dllugoOCcLHShield64.dllmhjTCcLHShield64.dllwgVCcLHShield64.dlls45tCCcLHShield64.dllizxfCcLHShield64.dll66mfCcLHShield64.dlloyyyB+52nuBu32mgB61/8f__0shkwCA2inCt1yg4+C

cpu info

	Number of cores		4 (max 4)
	Number of threads	8 (max 8)
	Manufacturer		GenuineIntel
	Name			Intel Core i7 8550U
	Codename		Kaby Lake-R
	Specification		Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
	Package (platform ID)	Socket 1356 FCBGA (0x7)
	CPUID			6.E.A
	Extended CPUID		6.8E
	Core Stepping		Y0
	Technology		14 nm
	TDP Limit		15.0 Watts
	Tjmax			100.0 癈
	Core Speed		2893.6 MHz
	Multiplier x Bus Speed	29.0 x 99.8 MHz
	Base frequency (cores)	99.8 MHz
	Stock frequency		2000 MHz
	Max frequency		4000 MHz
	Instructions sets	MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, EM64T, VT-x, AES, AVX, AVX2, FMA3
	Microcode Revision	0xC6
	L1 Data cache		4 x 32 KB (8-way, 64-byte line)
	L1 Instruction cache	4 x 32 KB (8-way, 64-byte line)
	L2 cache		4 x 256 KB (4-way, 64-byte line)
	L3 cache		8 MB (16-way, 64-byte line)
	Max CPUID level		00000016h
	Max CPUID ext. level	80000008h


	Turbo Mode		supported, enabled
	Max non-turbo ratio	20x
	Max turbo ratio		40x
	Max efficiency ratio	4x
	Min operating ratio	4x
	O/C bins		none
	Power Max (PL1)		15.00 W
	PL1 Time Window		28.00 s
	Short Power Max (PL2)	25.00 W
	Current Max (IccMax)	64.00 A
	Ratio 1 core		40x
	Ratio 2 cores		40x
	Ratio 3 cores		37x
	Ratio 4 cores		37x
	IA Voltage Mode		PCU adaptive
	IA Voltage Offset	0 mV
	GT Voltage Mode		PCU adaptive
	GT Voltage Offset	0 mV
	LLC/Ring Voltage Mode	PCU adaptive
	LLC/Ring Voltage Offset	0 mV
	Agent Voltage Mode	PCU adaptive
	Agent Voltage Offset	0 mV
	TDP Level		15.0 W @ 18x
	TDP Level		10.0 W @ 8x
	TDP Level		25.0 W @ 20x

	Temperature 0		81 degC (177 degF) (Package)
	Temperature 1		78 degC (172 degF) (Cores (Max))
	Temperature 2		76 degC (168 degF) (Core #0)
	Temperature 3		75 degC (167 degF) (Core #1)
	Temperature 4		78 degC (172 degF) (Core #2)
	Temperature 5		75 degC (167 degF) (Core #3)
	Voltage 0		0.95 Volts (VID)
	Voltage 1		+0.00 Volts (IA Offset)
	Voltage 2		+0.00 Volts (GT Offset)
	Voltage 3		+0.00 Volts (Ring Offset)
	Voltage 4		+0.00 Volts (System Agent Offset)
	Power 00		22.99 W (Package)
	Power 01		20.47 W (IA Cores)
	Power 02		0.05 W (GT)
	Power 03		1.21 W (DRAM)
	Power 04		15.00 W (Power Max (PL1))
	Power 05		25.00 W (Short Power Max (PL2))
	Clock Speed 0		3292.74 MHz (Cores (Max))
	Clock Speed 1		2893.62 MHz (Core #0)
	Clock Speed 2		3292.74 MHz (Core #1)
	Clock Speed 3		2893.62 MHz (Core #2)
	Clock Speed 4		3292.74 MHz (Core #3)
	Clock Speed 5		99.78 MHz (CPU BCLK)
	Clock Speed 6		n.a. (SOC BCLK)
	Clock Speed 7		2793.84 MHz (LLC/Ring)
	Clock Speed 8		1197.36 MHz (Memory)
	Core 0 max ratio	40.0
	Core 1 max ratio	40.0
	Core 2 max ratio	40.0
	Core 3 max ratio	40.0

I don't know why, My CPU support AVX, But bun tell me, it lacks avx support.

Plugins

no

OpenCode version

v1.1.20

Steps to reproduce

  1. execute opencode.exe

Screenshot and/or share link

No response

Operating System

Windows v.win10_19h1

Terminal

Windows Terminal

jiangfire avatar Jan 15 '26 01:01 jiangfire

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

  • #7318: TypeScript LSP crashes with Bun segmentation fault on Windows 11 (similar Bun segmentation fault on Windows with AVX/CPU issues)
  • #3267: auto update causes: Bun segmentation fault (Windows) (similar Bun segmentation fault on Windows, crash on startup)
  • #6694: Bun crashes when OC subagent tries to invoke subagent (Bun crashes on Windows with segmentation fault)
  • #5901: Bun crash in the middle of a response (Bun crashes on Windows)

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

github-actions[bot] avatar Jan 15 '26 01:01 github-actions[bot]

baseline version and not baseline version are not work

jiangfire avatar Jan 15 '26 01:01 jiangfire

Please send crash report to bun team, looks like bun issue!

rekram1-node avatar Jan 15 '26 02:01 rekram1-node