Open MayaMalkoti opened 2 hours ago
bun --bun run dev $ next dev ▲ Next.js 14.2.15
Experiments (use with caution): · nextScriptWorkers
Bun v1.1.25 (fe62a614) Windows x64 Windows v.win10_fe CPU: sse42 avx avx2 Args: "bun-node-fe62a6140\node.exe" "node_modules\next\dist\server\lib\start-server.js" Features: jsc Bun.stdin dotenv fetch(7) http_server spawn(2) transpiler_cache(23) tsconfig_paths(2) tsconfig(2) Builtins: "bun:jsc" "bun:main" "detect-libc" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:dns/promises" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:perf_hooks" "node:querystring" "node:stream" "node:stream/web" "node:string_decoder" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node:vm" "node:zlib" "node:worker_threads" "ws" "node-fetch" "node:v8" "node:diagnostics_channel" Elapsed: 8877ms | User: 1609ms | Sys: 140ms RSS: 1.07GB | Peak: 1.07GB | Commit: 22.98GB | Faults: 288104
panic(main thread): attempt to unwrap error: OutOfMemory oh no: Bun has crashed. This indicates a bug in Bun, not your code.
No response
Bun v1.1.25 (fe62a61) on windows x86_64 [RunAsNodeCommand]
fe62a61
panic: attempt to unwrap error: OutOfMemory
sourcemap.zig:518
parse
javascript.zig:175
toMapping
javascript.zig:393
resolveMapping
javascript.zig:3106
remapStackFramePositions
BunString.cpp:558
BunString::toWTFString
Function.h:53
WTF::Detail::CallableWrapper<WTF::String (...)(...),WTF::String,JSC::VM &,WTF::Vector<JSC::StackFrame,0,WTF::CrashOnOverflow,16,WTF::FastMalloc> &,unsigned int &,unsigned int &,WTF::String &,JSC::JSObject *>::call
utility:756
std::exchange
RefPtr.h:71
WTF::RefPtr<WTF::StringImpl,WTF::RawPtrTraits<WTF::StringImpl>,WTF::DefaultRefDerefTraits<WTF::StringImpl> >::operator!
JSGlobalObject.h:1104
JSC::JSGlobalObject::vm
JSObjectInlines.h:178
JSC::JSObject::getNonIndexPropertySlot
@MayaMalkoti, the latest version of Bun is v1.1.32, but this crash was reported on Bun v1.1.25.
Are you able to reproduce this crash on the latest version of Bun?
bun upgrade
How can we reproduce the crash?
bun --bun run dev $ next dev ▲ Next.js 14.2.15
Experiments (use with caution): · nextScriptWorkers
✓ Starting... ✓ Ready in 1825ms ○ Compiling /src/middleware ... ✓ Compiled /src/middleware in 5.6s (72 modules) ○ Compiling / ...
Bun v1.1.25 (fe62a614) Windows x64 Windows v.win10_fe CPU: sse42 avx avx2 Args: "bun-node-fe62a6140\node.exe" "node_modules\next\dist\server\lib\start-server.js" Features: jsc Bun.stdin dotenv fetch(7) http_server spawn(2) transpiler_cache(23) tsconfig_paths(2) tsconfig(2) Builtins: "bun:jsc" "bun:main" "detect-libc" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:dns/promises" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:perf_hooks" "node:querystring" "node:stream" "node:stream/web" "node:string_decoder" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node:vm" "node:zlib" "node:worker_threads" "ws" "node-fetch" "node:v8" "node:diagnostics_channel" Elapsed: 8877ms | User: 1609ms | Sys: 140ms RSS: 1.07GB | Peak: 1.07GB | Commit: 22.98GB | Faults: 288104
panic(main thread): attempt to unwrap error: OutOfMemory oh no: Bun has crashed. This indicates a bug in Bun, not your code.
Relevant log output
No response
Stack Trace (bun.report)
Bun v1.1.25 (
fe62a61
) on windows x86_64 [RunAsNodeCommand]panic: attempt to unwrap error: OutOfMemory
sourcemap.zig:518
:parse
javascript.zig:175
:toMapping
javascript.zig:393
:resolveMapping
javascript.zig:3106
:remapStackFramePositions
BunString.cpp:558
:BunString::toWTFString
Function.h:53
:WTF::Detail::CallableWrapper<WTF::String (...)(...),WTF::String,JSC::VM &,WTF::Vector<JSC::StackFrame,0,WTF::CrashOnOverflow,16,WTF::FastMalloc> &,unsigned int &,unsigned int &,WTF::String &,JSC::JSObject *>::call
utility:756
](<https://github.com/oven-sh/bun/blob/fe62a614046948ebba260bed87db96287e67921f/C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.40.33807/include/utility#L756>):std::exchange
RefPtr.h:71
:WTF::RefPtr<WTF::StringImpl,WTF::RawPtrTraits<WTF::StringImpl>,WTF::DefaultRefDerefTraits<WTF::StringImpl> >::operator!
JSGlobalObject.h:1104
:JSC::JSGlobalObject::vm
JSObjectInlines.h:178
:JSC::JSObject::getNonIndexPropertySlot