{"action":"created","issue":{"url":"https://api.github.com/repos/sywac/sywac/issues/21","repository_url":"https://api.github.com/repos/sywac/sywac","labels_url":"https://api.github.com/repos/sywac/sywac/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/sywac/sywac/issues/21/comments","events_url":"https://api.github.com/repos/sywac/sywac/issues/21/events","html_url":"https://github.com/sywac/sywac/issues/21","id":331421938,"node_id":"MDU6SXNzdWUzMzE0MjE5Mzg=","number":21,"title":"buildInvalidMessage hangs, then crashes due to out of memory.","user":{"login":"binarymist","id":2862029,"node_id":"MDQ6VXNlcjI4NjIwMjk=","avatar_url":"https://avatars3.githubusercontent.com/u/2862029?v=4","gravatar_id":"","url":"https://api.github.com/users/binarymist","html_url":"https://github.com/binarymist","followers_url":"https://api.github.com/users/binarymist/followers","following_url":"https://api.github.com/users/binarymist/following{/other_user}","gists_url":"https://api.github.com/users/binarymist/gists{/gist_id}","starred_url":"https://api.github.com/users/binarymist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarymist/subscriptions","organizations_url":"https://api.github.com/users/binarymist/orgs","repos_url":"https://api.github.com/users/binarymist/repos","events_url":"https://api.github.com/users/binarymist/events{/privacy}","received_events_url":"https://api.github.com/users/binarymist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-12T03:12:45Z","updated_at":"2018-06-14T10:41:47Z","closed_at":null,"author_association":"NONE","body":"When [`buildInvalidMessage`](http://sywac.io/docs/sync-config.html#option) returns, execution hangs for about 20 seconds. Then:\r\n\r\n```\r\n<--- Last few GCs --->\r\n\r\n[12069:0x2756b60]   159299 ms: Mark-sweep 4562.8 (4611.2) -> 4562.8 (4611.7) MB, 277.2 / 0.0 ms  (+ 1803.3 ms in 7421 steps since start of marking, biggest step 19.2 ms, walltime since start of marking 3997 ms) allocation failure GC in old space requested[12069:0x2756b60]   162828 ms: Mark-sweep 5341.1 (5402.7) -> 2472.0 (2496.4) MB, 510.6 / 0.0 ms  (+ 1002.9 ms in 4154 steps since start of marking, biggest step 18.6 ms, walltime since start of marking 2408 ms) allocation failure GC in old space requested\r\n\r\n<--- JS stacktrace --->\r\n\r\n==== JS stack trace =========================================\r\n\r\nSecurity context: 0x1197d9525ee1 <JSObject>\r\n    0: builtin exit frame: getOwnPropertyNames(this=0x1197d95046c9 <JSFunction Object (sfi = 0xd561d209d81)>,0xba0f328bb41 <JSArray[75209228]>)\r\n\r\n    2: arrayIndexes [/* anonymous */:2] [bytecode=0x1687d8032f91 offset=248](this=0x3a5bef303a21 <JSGlobal Object>,object=0xd561d202351 <the_hole>)\r\n    3: next(this=0x33aff79a00f9 <JSGenerator>)\r\n    5: packRanges [/* anonymous */:4] [bytecode=0x1687d803...\r\n\r\nFATAL ERROR: invalid table size Allocation failed - JavaScript heap out of memory\r\n 1: node::Abort() [node]\r\n 2: 0x121a2cc [node]\r\n 3: v8::Utils::ReportOOMFailure(char const*, bool) [node]\r\n 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node]\r\n 5: v8::internal::OrderedHashTable<v8::internal::OrderedHashSet, 1>::Allocate(v8::internal::Isolate*, int, v8::internal::PretenureFlag) [node]\r\n 6: v8::internal::OrderedHashTable<v8::internal::OrderedHashSet, 1>::Rehash(v8::internal::Handle<v8::internal::OrderedHashSet>, int) [node]\r\n 7: v8::internal::OrderedHashTable<v8::internal::OrderedHashSet, 1>::EnsureGrowable(v8::internal::Handle<v8::internal::OrderedHashSet>) [node]\r\n 8: v8::internal::OrderedHashSet::Add(v8::internal::Handle<v8::internal::OrderedHashSet>, v8::internal::Handle<v8::internal::Object>) [node]\r\n 9: v8::internal::KeyAccumulator::AddKey(v8::internal::Handle<v8::internal::Object>, v8::internal::AddKeyConversion) [node]\r\n10: 0xe155e1 [node]\r\n11: v8::internal::KeyAccumulator::CollectOwnElementIndices(v8::internal::Handle<v8::internal::JSReceiver>, v8::internal::Handle<v8::internal::JSObject>) [node]\r\n12: v8::internal::KeyAccumulator::CollectOwnKeys(v8::internal::Handle<v8::internal::JSReceiver>, v8::internal::Handle<v8::internal::JSObject>) [node]\r\n13: v8::internal::KeyAccumulator::CollectKeys(v8::internal::Handle<v8::internal::JSReceiver>, v8::internal::Handle<v8::internal::JSReceiver>) [node]\r\n14: v8::internal::KeyAccumulator::GetKeys(v8::internal::Handle<v8::internal::JSReceiver>, v8::internal::KeyCollectionMode, v8::internal::PropertyFilter, v8::internal::GetKeysConversion, bool) [node]\r\n15: v8::internal::Builtin_ObjectGetOwnPropertyNames(int, v8::internal::Object**, v8::internal::Isolate*) [node]\r\n16: 0x17f74448441d\r\n```\r\n\r\nAlso `setValue` is executed for multiple types."},"comment":{"url":"https://api.github.com/repos/sywac/sywac/issues/comments/397251407","html_url":"https://github.com/sywac/sywac/issues/21#issuecomment-397251407","issue_url":"https://api.github.com/repos/sywac/sywac/issues/21","id":397251407,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzI1MTQwNw==","user":{"login":"nexdrew","id":1929625,"node_id":"MDQ6VXNlcjE5Mjk2MjU=","avatar_url":"https://avatars1.githubusercontent.com/u/1929625?v=4","gravatar_id":"","url":"https://api.github.com/users/nexdrew","html_url":"https://github.com/nexdrew","followers_url":"https://api.github.com/users/nexdrew/followers","following_url":"https://api.github.com/users/nexdrew/following{/other_user}","gists_url":"https://api.github.com/users/nexdrew/gists{/gist_id}","starred_url":"https://api.github.com/users/nexdrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nexdrew/subscriptions","organizations_url":"https://api.github.com/users/nexdrew/orgs","repos_url":"https://api.github.com/users/nexdrew/repos","events_url":"https://api.github.com/users/nexdrew/events{/privacy}","received_events_url":"https://api.github.com/users/nexdrew/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T10:41:47Z","updated_at":"2018-06-14T10:41:47Z","author_association":"MEMBER","body":"Hi, sorry for the radio silence.\r\n\r\nOne thing I see is that you're calling `parrseAndExit()` within the`setup` of your default command. You shouldn't do this. In general, `parse` or `parseAndExit` should only be called once for any given CLI execution.\r\n\r\nIf I get some time I'll try to look a bit further into your code."}}
{"actor":{"display_login":"nexdrew"}}