Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running this throws "heap out of memory" consistently #74

Open
samtgarson opened this issue Oct 25, 2024 · 0 comments
Open

Running this throws "heap out of memory" consistently #74

samtgarson opened this issue Oct 25, 2024 · 0 comments

Comments

@samtgarson
Copy link

Environment

macOS 14.6.1 (23G93) on a Nov 2023 Macbook Pro
[email protected]
repo link

Steps to Reproduce

  1. Run npx @sentry/migr8@latest in either /admin or /web (the two workspaces which have Sentry installed, one Koa and the other Next)

Expected Result

Something good

Actual Result

◇  Applying 18 transformer(s)...
│
◐  Running transformer "Add migration comments"
<--- Last few GCs --->

[61693:0x158008000]   327781 ms: Mark-Compact 4034.3 (4134.4) -> 4023.8 (4140.1) MB, 2673.92 / 0.00 ms  (average mu = 0.431, current mu = 0.010) allocation failure; scavenge might not succeed
[61693:0x158008000]   331435 ms: Mark-Compact 4039.8 (4140.1) -> 4029.0 (4145.4) MB, 3633.92 / 0.00 ms  (average mu = 0.212, current mu = 0.006) allocation failure; scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 0x10054959c node::Abort() [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
 2: 0x10054979c node::ModifyCodeGenerationFromStrings(v8::Local<v8::Context>, v8::Local<v8::Value>, bool) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
 3: 0x1006ce95c v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
 4: 0x1008a3050 v8::internal::Heap::GarbageCollectionReasonToString(v8::internal::GarbageCollectionReason) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
 5: 0x1008a1b2c v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
 6: 0x100898344 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
 7: 0x100898ba4 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
 8: 0x10087dc14 v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
 9: 0x100c656dc v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
10: 0x100fc4c44 Builtins_CEntry_Return1_ArgvOnStack_NoBuiltinExit [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
11: 0x100f6d4f0 Builtins_CloneFastJSArray [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
12: 0x10674e12c
13: 0x106528e20
14: 0x106537908
15: 0x106529528
16: 0x10652937c
17: 0x106537908
18: 0x106529528
19: 0x10652937c
20: 0x1065377f8
21: 0x106529528
22: 0x10652937c
23: 0x106537908
24: 0x106529528
25: 0x10652937c
26: 0x106537908
27: 0x106529528
28: 0x10652937c
29: 0x106537908
30: 0x1065293f8
31: 0x10652937c
32: 0x1065377f8
33: 0x106529528
34: 0x10652937c
35: 0x1065377f8
36: 0x1065293f8
37: 0x1065377f8
38: 0x106529528
39: 0x106759190
40: 0x10682a524
41: 0x106757ac8
42: 0x10675a370
43: 0x106528c08
44: 0x1065377f8
45: 0x1065293f8
46: 0x106537908
47: 0x106529528
48: 0x10652937c
49: 0x1065139c0
50: 0x1064f7354
51: 0x1064f7628
52: 0x100fdcb3c Builtins_ArrayForEach [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
53: 0x1064f7998
54: 0x10651a4f8
55: 0x1067a1484
56: 0x1067a6430
57: 0x1067aa89c
58: 0x100f3c3e4 Builtins_InterpreterEntryTrampoline [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
59: 0x1067b4634
60: 0x1063eaf10
61: 0x100f3a50c Builtins_JSEntryTrampoline [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
62: 0x100f3a1f4 Builtins_JSEntry [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
63: 0x1008104f8 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
64: 0x10080f944 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
65: 0x1006ea214 v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
66: 0x100478ff8 node::InternalMakeCallback(node::Environment*, v8::Local<v8::Object>, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*, node::async_context) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
67: 0x10048f4b8 node::AsyncWrap::MakeCallback(v8::Local<v8::Function>, int, v8::Local<v8::Value>*) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
68: 0x10054f00c node::fs::FSReqCallback::Resolve(v8::Local<v8::Value>) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
69: 0x10054f75c node::fs::AfterNoArgs(uv_fs_s*) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
70: 0x1005444e8 node::MakeLibuvRequestCallback<uv_fs_s, void (*)(uv_fs_s*)>::Wrapper(uv_fs_s*) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
71: 0x100f1639c uv__work_done [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
72: 0x100f19dec uv__async_io [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
73: 0x100f2bec4 uv__io_poll [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
74: 0x100f1a3b0 uv_run [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
75: 0x100479754 node::SpinEventLoopInternal(node::Environment*) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
76: 0x100589c6c node::NodeMainInstance::Run(node::ExitCode*, node::Environment*) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
77: 0x100589a08 node::NodeMainInstance::Run() [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
78: 0x100513718 node::Start(int, char**) [/Users/samuel.g/.asdf/installs/nodejs/20.11.1/bin/node]
79: 0x195f5b154 start [/usr/lib/dyld]
[1]    61542 abort      npx @sentry/migr8@latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant