<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>v5.0.0-beta.5</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>Windows 10 Pro.</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>:
<ul dir="auto">
<li>4.x (latest)</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">When I perfrom a GET-request using <code class="notranslate">http</code> or <code class="notranslate">https</code> built-in library, I expect the app to keep running after the request completes.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">When performing a GET request to an arbitrary host, the app crashes after <strong>a few seconds after completing the request</strong>. Usually ranges between 5 and 20 seconds.</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto"><a href="https://github.com/haroldiedema/electron-5x-http-crash">https://github.com/haroldiedema/electron-5x-http-crash</a></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/haroldiedema/electron-5x-http-crash
$ npm install
$ node_modules/.bin/electron ."><pre class="notranslate">$ git clone https://github.com/haroldiedema/electron-5x-http-crash
$ npm install
$ node_modules/.bin/electron <span class="pl-c1">.</span></pre></div>
<p dir="auto">Sit back and wait for a few seconds for the app to crash with exit code 127. (or exit code 1 if started from npm or yarn).</p>
<h3 dir="auto">Screenshots</h3>
<p dir="auto">N/A</p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">I think this might have something to do with either:<br>
A) Electron not handling the closing of sockets correctly anymore, or<br>
B) The garbage collector kicking in and cleaning up the socket resource which makes electron crash.</p>
<p dir="auto">Then again, that is purely speculation on my end.</p>
<ul dir="auto">
<li><strong>Electron Version</strong>:
<ul dir="auto">
<li>5.0.0-beta (all)</li>
</ul>
</li>
<li><strong>Operating System</strong>:
<ul dir="auto">
<li>Ubuntu 18.10, Linux 4.18, x64</li>
</ul>
</li>
<li><strong>Last known working Electron version</strong> (if applicable):
<ul dir="auto">
<li>4.0.5</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Google API should work as it they are meant to.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Any Google API calls may crash renderer process (even if they are run on Worker thread).<br>
The request may be done and the answer given, but immediately or after several seconds the renderer process may crash.</p>
<h3 dir="auto">To Reproduce</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/ruslang02/youtube-electron-crash-example
$ npm install electron@beta
$ npm start || electron ."><pre class="notranslate">$ git clone https://github.com/ruslang02/youtube-electron-crash-example
$ npm install electron@beta
$ npm start <span class="pl-k">||</span> electron <span class="pl-c1">.</span></pre></div>
<p dir="auto">Version 5 will randomly crash, version 4: doesn't</p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">May be a Node.JS bug, but not sure</p>