<?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[Core dump causing black screen]]></title><description><![CDATA[<p dir="auto">Does anyone have an idea how to debug a core dump caused by a module or MM itself?</p>
<p dir="auto">What I am seeing is that occasionally my mirror goes black and I originally thought it was the screensaver kicking in. However, I believe it is due to a core dump occurring.</p>
<p dir="auto">From the pm2 logs I see this:</p>
<pre><code>ATTENTION: default value of option force_s3tc_enable overridden by environment.
[16831:0413/111826.964220:FATAL:memory.cc(22)] Out of memory. size=79556608
ATTENTION: default value of option force_s3tc_enable overridden by environment.
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[11331:0415/142933.736368:FATAL:memory.cc(22)] Out of memory. size=120422400
ATTENTION: default value of option force_s3tc_enable overridden by environment.
ATTENTION: default value of option force_s3tc_enable overridden by environment.
getrandom indicates that the entropy pool has not been initialized. Rather than continue with poor entropy, this process will block until entropy is available.
ATTENTION: default value of option force_s3tc_enable overridden by environment.
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[1700:0415/233524.137869:FATAL:memory.cc(22)] Out of memory. size=96002048
ATTENTION: default value of option force_s3tc_enable overridden by environment.
ATTENTION: default value of option force_s3tc_enable overridden by environment.
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[6522:0416/101829.273887:FATAL:memory.cc(22)] Out of memory. size=155766784
ATTENTION: default value of option force_s3tc_enable overridden by environment.
</code></pre>
<p dir="auto">I am not concerned about the  force_s3tc_enable but notice that there are several out of memory errors. Based on the timestamp of the generated core file I can correlate these out of memory errors to within a minute or 2 of core file.</p>
<p dir="auto">So, in the above I have a core dump from:<br />
4-13-2019 @ 11:18am<br />
5-15/2019 @ 14:28pm<br />
4-15-2019 @ 23:35pm<br />
4-16-2019 @ 10:18am</p>
<p dir="auto">There does not look to be a pattern here so not sure where to go other than disabled modules 1-by-1 and wait.</p>
<p dir="auto">Given I have the core file is there a way to read it and determine at least which module caused the error as that would help me try to narrow it down.</p>
]]></description><link>https://forum.magicmirror.builders/topic/10294/core-dump-causing-black-screen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 17:32:29 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/10294.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 Apr 2019 18:24:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Core dump causing black screen on Wed, 17 Apr 2019 14:33:16 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> I am already getting core dumps generated so I have the file. I had see the nodejs postmortem debugging and I can get a stack trace from the core file but so far I have not been able to identify which module was active at the time from it.</p>
<p dir="auto">Doing more research shows that this may be related to MMM-WallPaper which I am using. I found <a href="https://github.com/kolbyjack/MMM-Wallpaper/issues/3" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/kolbyjack/MMM-Wallpaper/issues/3</a> that seems to match my symptoms exactly. I’m removing that module and will test it a few days and see what happens.</p>
]]></description><link>https://forum.magicmirror.builders/post/56088</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56088</guid><dc:creator><![CDATA[mlcampbe]]></dc:creator><pubDate>Wed, 17 Apr 2019 14:33:16 GMT</pubDate></item><item><title><![CDATA[Reply to Core dump causing black screen on Wed, 17 Apr 2019 14:28:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mlcampbe" aria-label="Profile: mlcampbe">@<bdi>mlcampbe</bdi></a> see this <a href="https://www.javascriptjanuary.com/blog/nodejs-postmortem-debugging-for-fun-and-production" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.javascriptjanuary.com/blog/nodejs-postmortem-debugging-for-fun-and-production</a></p>
<p dir="auto">u need ulimit -c set to some non-0 number (number of core dumps)</p>
<p dir="auto">0 by default</p>
]]></description><link>https://forum.magicmirror.builders/post/56085</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56085</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 17 Apr 2019 14:28:15 GMT</pubDate></item><item><title><![CDATA[Reply to Core dump causing black screen on Wed, 17 Apr 2019 13:34:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mlcampbe" aria-label="Profile: mlcampbe">@<bdi>mlcampbe</bdi></a> getscripts is only called once per module</p>
]]></description><link>https://forum.magicmirror.builders/post/56084</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56084</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 17 Apr 2019 13:34:42 GMT</pubDate></item><item><title><![CDATA[Reply to Core dump causing black screen on Wed, 17 Apr 2019 13:28:59 GMT]]></title><description><![CDATA[<p dir="auto">Yeah that is a good idea and I might go that way as a last resort if I can’t identify which module is the culprit.</p>
<p dir="auto">This morning I discovered the MMM-Logging module which prints date/time info into the logs and I am hoping that might help me match the coredump time to which module was doing something.</p>
<p dir="auto">I also discovered a potential issue with the MMM-DailyBibleVerse module. I see that it has a getScripts function that loads the jquery-3.1.1.min.js file from its module directory. I am not sure if that is getting loaded over and over and thus eventually running out of memory but for now have removed that module for testing.</p>
]]></description><link>https://forum.magicmirror.builders/post/56083</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56083</guid><dc:creator><![CDATA[mlcampbe]]></dc:creator><pubDate>Wed, 17 Apr 2019 13:28:59 GMT</pubDate></item><item><title><![CDATA[Reply to Core dump causing black screen on Wed, 17 Apr 2019 02:05:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mlcampbe" aria-label="Profile: mlcampbe">@<bdi>mlcampbe</bdi></a> - It definitely sounds like there is a memory leak somewhere. Personally, I blame electron. Basically out of spite, not any technical reason.</p>
<p dir="auto">I would recommend that you add a cron job that will reboot your mirror at some absurd hour in the morning. It should reset the memory allocation and prevent OOM errors. It’s not a fix, but it should get you close enough.</p>
]]></description><link>https://forum.magicmirror.builders/post/56049</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56049</guid><dc:creator><![CDATA[bhepler]]></dc:creator><pubDate>Wed, 17 Apr 2019 02:05:22 GMT</pubDate></item><item><title><![CDATA[Reply to Core dump causing black screen on Tue, 16 Apr 2019 18:57:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mlcampbe" aria-label="Profile: mlcampbe">@<bdi>mlcampbe</bdi></a> no idea… I just caused a core dump on mine by comparing a whole structure to a string variable… (not on purpose)  it didn’t tell me which module caused it</p>
]]></description><link>https://forum.magicmirror.builders/post/56036</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56036</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 16 Apr 2019 18:57:50 GMT</pubDate></item><item><title><![CDATA[Reply to Core dump causing black screen on Tue, 16 Apr 2019 18:53:42 GMT]]></title><description><![CDATA[<p dir="auto">Yeah I realize it is out of memory but what module is causing that? I have a core dump and I should be able to use gdb to see the stack trace to try to figure it out.</p>
]]></description><link>https://forum.magicmirror.builders/post/56035</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56035</guid><dc:creator><![CDATA[mlcampbe]]></dc:creator><pubDate>Tue, 16 Apr 2019 18:53:42 GMT</pubDate></item><item><title><![CDATA[Reply to Core dump causing black screen on Tue, 16 Apr 2019 18:50:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mlcampbe" aria-label="Profile: mlcampbe">@<bdi>mlcampbe</bdi></a> said in <a href="/post/56032">Core dump causing black screen</a>:</p>
<blockquote>
<p dir="auto">6522:0416/101829.273887:FATAL:memory.cc(22)] Out of memory. size=155766784</p>
</blockquote>
<p dir="auto">it is out of memory…</p>
]]></description><link>https://forum.magicmirror.builders/post/56033</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56033</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 16 Apr 2019 18:50:03 GMT</pubDate></item></channel></rss>