<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Electron Crashing after update to 2.21.0 with PM2]]></title><description><![CDATA[<p dir="auto">After updating my MagicMirror to version 2.21.0 it seems that Electron is crashing when using PM2 with the following error at crash (from pm2 logs):</p>
<pre><code>0|mm  | /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGTERM
</code></pre>
<p dir="auto">After the restart there seems to be a large number of errors thrown, though with a repeating pattern of the following:</p>
<pre><code>0|mm       | [30696:1006/101030.900201:ERROR:angle_platform_impl.cc(43)] renderergl_utils.cpp:2519 (CheckError): GL call functions-&gt;texStorage2D(ToGLenum(type), static_cast&lt;GLsizei&gt;(levels), texStorageFormat.internalFormat, size.width, size.height) generated error 0x00000505 in ../../third_party/angle/src/libANGLE/renderer/gl/TextureGL.cpp, setStorage:1052.
0|mm       | [30696:1006/101030.901706:ERROR:shared_context_state.cc(811)] SharedContextState context lost via Skia OOM.
0|mm       | [30696:1006/101030.903252:ERROR:gpu_service_impl.cc(990)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
0|mm       | [19587:1006/101030.932806:ERROR:command_buffer_proxy_impl.cc(329)] GPU state invalid after WaitForGetOffsetInRange.
0|mm       | [19587:1006/101030.940181:ERROR:gpu_process_host.cc(974)] GPU process exited unexpectedly: exit_code=8704
0|mm       | MESA-LOADER: failed to retrieve device information
0|mm       | MESA-LOADER: failed to retrieve device information
0|mm       | MESA-LOADER: failed to retrieve device information
</code></pre>
<p dir="auto">Now, if I run MagicMirror by using <code>npm start</code> while in the <code>~/MagicMirror</code> directory, it seems to stay up. Hoping someone has some insight on this. I can easily manually start the system, but would rather not have to every time.</p>
]]></description><link>https://forum.magicmirror.builders/topic/17264/electron-crashing-after-update-to-2-21-0-with-pm2</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 14:17:44 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/17264.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Oct 2022 18:50:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Electron Crashing after update to 2.21.0 with PM2 on Mon, 10 Oct 2022 11:47:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pattanner92" aria-label="Profile: pattanner92">@<bdi>pattanner92</bdi></a> the buffer thing is a warning, but not our code. nothing we can do</p>
<p dir="auto">the gpu errors are concerning, because u have gpu use turned off.</p>
<p dir="auto">do u know what driver is being used in /boot/config.txt, like this</p>
<pre><code>dtoverlay=vc4-fkms-v3d
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/105080</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/105080</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 10 Oct 2022 11:47:48 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Crashing after update to 2.21.0 with PM2 on Sun, 09 Oct 2022 15:44:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
EDIT: I was digging while cleaning up pm2 so it didn’t display my old script. I noticed that the <code>mm.sh</code> script in <code>~/MagicMirror/installers</code> was indeed missing <code>export ELECTRON_DISABLE_GPU=1</code>. Adding that back to the script seems to keep it stable. Still wondering if this is an Electron version issue.</p>
<p dir="auto">No dice. Here are the errors I am seeing in the logs - I pulled only the errors to see if I caught them all. Here is what I am seeing at the exit event:</p>
<pre><code>0|mm  | [25978:1009/112505.776458:ERROR:zygote_communication_linux.cc(275)] Failed to send GetTerminationStatus message to zygote
0|mm  | [25978:1009/112505.812741:ERROR:zygote_communication_linux.cc(275)] Failed to send GetTerminationStatus message to zygote
0|mm  | [25978:1009/112505.848727:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
0|mm  | [25978:1009/112505.880738:ERROR:gpu_process_host.cc(968)] GPU process launch failed: error_code=1002
0|mm  | [25978:1009/112505.897587:ERROR:gpu_process_host.cc(968)] GPU process launch failed: error_code=1002
0|mm  | [25978:1009/112505.917812:ERROR:gpu_process_host.cc(968)] GPU process launch failed: error_code=1002
0|mm  | [25978:1009/112505.942511:ERROR:gpu_process_host.cc(968)] GPU process launch failed: error_code=1002
0|mm  | [25978:1009/112505.959337:ERROR:gpu_process_host.cc(968)] GPU process launch failed: error_code=1002
</code></pre>
<p dir="auto">And later in the restart process I saw these errors:</p>
<pre><code>0|mm  | [09.10.2022 11:25.36.393] [ERROR] 
0|mm  | (node:26362) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
0|mm  | (Use `electron --trace-deprecation ...` to show where the warning was created)
</code></pre>
<p dir="auto">I did go in and check for the line <code>export ELECTRON_DISABLE_GPU=1</code> in the startup script <code>mm.sh</code> and it is there. I did have two startup scripts (one that was created before your script was a a thing) and made sure it was there in both as I wasn’t sure which pm2 was using. The original is out in the home folder - I made a backup and then ran your pm2 setup script. While it seemed to reconfigure pm2 to use the script in <code>~/MagicMirror/installers</code> it still crashes. Figured I would try that in case something was walking over itself.</p>
<p dir="auto">Could this be an Electron version issue?</p>
]]></description><link>https://forum.magicmirror.builders/post/105076</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/105076</guid><dc:creator><![CDATA[pattanner92]]></dc:creator><pubDate>Sun, 09 Oct 2022 15:44:30 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Crashing after update to 2.21.0 with PM2 on Sat, 08 Oct 2022 03:28:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pattanner92" aria-label="Profile: pattanner92">@<bdi>pattanner92</bdi></a> can u try running my upgrade script with force instead of apply</p>
<p dir="auto">see<br />
<a href="https://github.com/sdetweil/MagicMirror_scripts" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sdetweil/MagicMirror_scripts</a></p>
]]></description><link>https://forum.magicmirror.builders/post/105044</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/105044</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 08 Oct 2022 03:28:56 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Crashing after update to 2.21.0 with PM2 on Fri, 07 Oct 2022 19:57:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
node v16.16.0<br />
npm v8.11.0</p>
<p dir="auto">I am running on a Raspberry Pi B3+</p>
]]></description><link>https://forum.magicmirror.builders/post/105032</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/105032</guid><dc:creator><![CDATA[pattanner92]]></dc:creator><pubDate>Fri, 07 Oct 2022 19:57:36 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Crashing after update to 2.21.0 with PM2 on Fri, 07 Oct 2022 19:04:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pattanner92" aria-label="Profile: pattanner92">@<bdi>pattanner92</bdi></a> sorry  two more</p>
<p dir="auto">node -v<br />
npm-v</p>
<p dir="auto">u are running on 32 bit buster, which is ok<br />
on some armv7l device, pi3, 4, or pi0w2</p>
]]></description><link>https://forum.magicmirror.builders/post/105031</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/105031</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 07 Oct 2022 19:04:28 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Crashing after update to 2.21.0 with PM2 on Fri, 07 Oct 2022 18:52:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
Still seems to crash. This is how I have configured my pm2 start script:</p>
<pre><code>cd ~/MagicMirror
export ELECTRON_DISABLE_GPU=1
DISPLAY=:0 npm start
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/105030</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/105030</guid><dc:creator><![CDATA[pattanner92]]></dc:creator><pubDate>Fri, 07 Oct 2022 18:52:17 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Crashing after update to 2.21.0 with PM2 on Fri, 07 Oct 2022 18:45:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
Output of first command is:</p>
<pre><code>Linux raspberrypi 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
</code></pre>
<p dir="auto">Output of second command is:</p>
<pre><code>No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:        10
Codename:       buster
</code></pre>
<p dir="auto">I did so a manual upgrade. Though I typically do that without running into too many issues.</p>
]]></description><link>https://forum.magicmirror.builders/post/105029</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/105029</guid><dc:creator><![CDATA[pattanner92]]></dc:creator><pubDate>Fri, 07 Oct 2022 18:45:18 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Crashing after update to 2.21.0 with PM2 on Fri, 07 Oct 2022 15:58:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pattanner92" aria-label="Profile: pattanner92">@<bdi>pattanner92</bdi></a>   also add</p>
<p dir="auto">export ELECTRON_DISABLE_GPU=1</p>
<p dir="auto">to the installers/mm.sh before the<br />
npm start line</p>
<p dir="auto">or wherever the mm comes from (in the pm2 logs output)<br />
my setup script use the <a href="http://mm.sh" target="_blank" rel="noopener noreferrer nofollow ugc">mm.sh</a>  in the installers folder</p>
]]></description><link>https://forum.magicmirror.builders/post/105001</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/105001</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 07 Oct 2022 15:58:50 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Crashing after update to 2.21.0 with PM2 on Thu, 06 Oct 2022 18:51:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pattanner92" aria-label="Profile: pattanner92">@<bdi>pattanner92</bdi></a> how did you upgrade?   manual or use my automated scripts?</p>
<p dir="auto">which os is this?</p>
<p dir="auto">show outout of</p>
<pre><code>uname -a
lsb_release -a
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/104999</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/104999</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 06 Oct 2022 18:51:49 GMT</pubDate></item></channel></rss>