Open crazytweeks opened 2 months ago
Do you have any code samples we could take a look at? It looks like we attempted to allocate a lot of memory
this may have just been fixed by https://github.com/oven-sh/bun/pull/14371
This happened to me again. Now I know how it happened.
I was running nextjs using bun. And hono using bun on windows 11.
I usually leave it running on vscode terminal. I also have hibernate enabled. So when I close lid, laptop goes to hibernate, (not sleep mode)
When i open, every app will be in as is state, except bun processes sometimes.
This issue is not appearing everytime. But whenever I open laptop and resume my work, I see if bun is already running, it will significantly double the ram usage upon resume.
Maybe it is not supposed to be used with windows hibernate feature. But yeah, this causes crash sometimes. But i was using same with pnpm and yarn. Never had such issues.
How can we reproduce the crash?
No response
Relevant log output
Stack Trace (bun.report)
Bun v1.1.25 (
fe62a61
) on windows x86_64 [RunCommand]Segmentation fault at address 0x1C0E4010000
memset.asm:43
:memset_repstos
segment.c:886
:mi_segment_alloc
segment.c:1421
:mi_segment_huge_page_alloc
page.c:279
:mi_page_fresh_alloc
page.c:918
:_mi_malloc_generic
alloc-aligned.c:110
:mi_heap_malloc_zero_aligned_at_generic
alloc-aligned.c:158
:mi_heap_malloc_zero_aligned_at
Allocator.zig:240
:allocBytesWithAlignment
encoding.zig:1217
:toString
JSBuffer.cpp:1537
:WebCore::jsBufferToString