<h3 dir="auto">Preflight Checklist</h3>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>7.1.8</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>macOS Mojave</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">A framerate of 20-30 fps when streaming <code class="notranslate">navigator.mediaDevices.getUserMedia</code> with <code class="notranslate">chromeMediaSource</code> = desktop</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">We see a maximum of 5/6 fps instead of the 20-30 fps that we see when streaming from Chrome via <a href="https://www.webrtc-experiment.com/Pluginfree-Screen-Sharing/#4676396026610028" rel="nofollow">https://www.webrtc-experiment.com/Pluginfree-Screen-Sharing/#4676396026610028</a></p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">We use <code class="notranslate">RTCPeerConnection</code> and <code class="notranslate">navigator.mediaDevices.getUserMedia</code> to stream the desktop. If we open <code class="notranslate">chrome://webrtc-internals</code> from within Electron, we see a <code class="notranslate">framesEncoded/s</code> of 5/6 fps.</p>
<p dir="auto">We tried to use this, but it did not improve:<br>
<code class="notranslate">app.commandLine.appendSwitch('webrtc-max-cpu-consumption-percentage=100')</code></p>
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/main/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">15.0.0</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Ubuntu</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">Ubuntu 20.04</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto">13</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">No ERROR</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">When running the electron-react app I get this error message.</p>
<p dir="auto">If I downgrade Electron from version 15 to version 13 the error disappears.<br>
The problem starts to appear from version 14</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional Information</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="97258:1026/120955.772050:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process."><pre class="notranslate"><code class="notranslate">97258:1026/120955.772050:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
</code></pre></div>