<p dir="auto">I am now using Electron 0.33.6 for some hours in VS Code and run into an issue that I cannot really reproduce or explain but it happens always after some time of usage (30 minutes). It might be just memory related when memory consumption reaches a certain limit.</p>
<p dir="auto">What I know is that a process (forked with child_process) is crashing with a SIGABRT signal, which seems to indicate an issue deep down in node or at least in a C++ layer above with memory allocation. We do have a crash dump when this happens: <a href="https://gist.github.com/bpasero/bbe9001163baca220057">https://gist.github.com/bpasero/bbe9001163baca220057</a></p>
<p dir="auto">I will try to reproduce this on Windows tomorrow.</p>
<p dir="auto">I wonder if this is related or duplicate to: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="108113576" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/2889" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/2889/hovercard" href="https://github.com/electron/electron/issues/2889">#2889</a></p>
<p dir="auto">When downloading large files inside child process, it crashes with the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Electron Helper(65819,0x7fff72367300) malloc: *** error for object 0x7f8063e86ab0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug"><pre class="notranslate"><code class="notranslate">Electron Helper(65819,0x7fff72367300) malloc: *** error for object 0x7f8063e86ab0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
</code></pre></div>
<p dir="auto">Here is the <a href="https://gist.github.com/pulkit110/3c3d8d1d7a168f50dddf">crash dump</a><br>
Sample code to reproduce the issue can be <a href="https://gist.github.com/pulkit110/a16513dba6140b16c366">found here</a>.</p>
<p dir="auto">It works fine when downloading from the main process (i.e. from <code class="notranslate">index.js</code>). Downloading from child process used to work fine too until electron v0.30.6</p>