<?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[Unable to determine reason for MM/electron decaying/dying/hanging]]></title><description><![CDATA[<p dir="auto">Platform: Raspbery Pi 4<br />
Node Version: v10.17.0<br />
MagicMirror Version:2</p>
<p dir="auto">Description: Magic Mirror or Electron is dying/hanging when rotating through pictures.  I’ve tried to use any of the various image rotation modules and ultimately end up getting the same results.  After several minutes rotating through pictures, the whole operation hangs.  Clock stops ticking, pictures stop rotating, ssh becomes unresponsive, etc.  I believe this may be an Electron issue, but can’t be certain (my diagnostic skills are lacking to an extent).  I have put MM in server only mode and used Safari on my Mac and everything appears to function normally and continuously - this is why I am leaning toward Electron being the problem.  I also attempted to use Chromium in place of electron running on the pi and it hangs just as electron (common algorithms?).  Adding Watchdog helps keep things going to a certain extent - it still crashes, but at least MM restarts.  But even after a while with that happening, the system gets bogged down to the point that its non-responsive and needs a hard reboot.</p>
<p dir="auto">Steps to Reproduce:  Run magic mirror with any of [MMM-BackgroundSlideshow, MMM-ImageSlideshow, MMM-RandomPhoto] modules</p>
<p dir="auto">Expected Results: continuous run rotating through pictures</p>
<p dir="auto">Actual Results: MM dies when both server and client are running on same machine - will restart if running Watchdog, MM continues to run on Safari client and Raspi 4 server.  No obvious indications as to why when running with the debug console open - just disconnects.</p>
<p dir="auto">Configuration:<br />
{<br />
address: “localhost”,<br />
port: 8080,<br />
ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”],<br />
language: “en”,<br />
timeFormat: 24,<br />
units: “metric”,</p>
<pre><code>modules: [
	{
		module: "alert",
	},
	{
		module: "MMM-WatchDog",
	},
	{
		module: "updatenotification",
		position: "top_bar"
	},
	{
		module: "clock",
		position: "top_left"
	},
	{
		module: "calendar",
		header: "Calendar",
		position: "top_left",
		config: {
			calendars: [
				{
					symbol: "calendar-check",
					url: "private",
					maximumNumberOfDays: 7,
				},
				{
					symbol: "car",
					url:"private",
					maximumNumberOfDays: 7,
				},
				{
					symbol: "kiwi-bird",
					url: "private",
					maximumNumberOfDays: 7,
				},
			]
		}
	},


	{
		module: "MMM-RandomPhoto",
		position: "fullscreen_below",
		config: {
			url: ['http://localhost/getPhoto.php'],
			updateInterval:60
		}
	},
	{
		module: "currentweather",
		position: "top_right",
		config: {
			units: "imperial",
			location: "Home",
			locationID: "private",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
			appid: "private"
		}
	},
	{
		module: "weatherforecast",
		position: "top_right",
		header: "Weather Forecast",
		config: {
			location: "Home",
			locationID: "private",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
			appid: "private"
		}
	},
	{
		disabled: false,
		module: "MMM-PilotWX",
		position:"bottom_left",
		config: {
			ICAO: "private",
			colorCode: "Alternative",
			mode: "Static",
			sym: "@",
			tempUnits: "C",
			measure: "SM",
			time: "Local",
			maxWidth:"100%",
			useAltHeader:true,
			header: "Conditions",
		}
	},
	{
		module: "MMM-Sonos",
		position: "bottom_right",
		config: {
			showStoppedRoom: false,
			showRoomName: false,
		}
	},
]
</code></pre>
<p dir="auto">};</p>
<p dir="auto">Additional Notes: I have isolated every module to make sure that adding the image rotation modules is in fact the cause of the issue.  I though for sure it was a resources issue, but then I upgraded from the pi3 to the 4 and that hasn’t helped.  In fact, it almost seems to have gotten worse.  I moved the images to a USB 3 SSD and that didn’t help.  The php script is literally just picking a random photo from my hard drive and serving it as is.  Is there something missing from these modules that they are leaking resources?  I’ve been on the hunt casually for more than a year, but have really hit it hard the last two weeks and I’m just hitting a brick wall.  Not sure where to look anymore.  I love the platform.  I’ve helped edit at least one module, I’m starting to write another, but I’m at a complete loss as to how to track down this problem.  The wife wants a family dashboard with rotating pictures!!  Help!</p>
]]></description><link>https://forum.magicmirror.builders/topic/11665/unable-to-determine-reason-for-mm-electron-decaying-dying-hanging</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 19:21:00 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/11665.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 Nov 2019 00:31:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Thu, 30 Jan 2020 22:29:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/max64" aria-label="Profile: max64">@<bdi>max64</bdi></a> with release 2.10, all you have to do is set serverOnly: local in config.js<br />
And it will do that split mode for you.</p>
<p dir="auto">We are running such an old electron version.</p>
]]></description><link>https://forum.magicmirror.builders/post/68822</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/68822</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 30 Jan 2020 22:29:10 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Thu, 30 Jan 2020 21:30:37 GMT]]></title><description><![CDATA[<p dir="auto">In the end I was never able to get Electron to run properly under MM2 on my Pi3B+ under Buster.  My only “solution” has been to run MM in serveronly mode, and then load Chromium separately from a script.  This seems to be pretty stable.</p>
]]></description><link>https://forum.magicmirror.builders/post/68820</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/68820</guid><dc:creator><![CDATA[max64]]></dc:creator><pubDate>Thu, 30 Jan 2020 21:30:37 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Tue, 14 Jan 2020 02:37:53 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></p>
<p dir="auto">Getting ridiculous.</p>
<p dir="auto">Remove mmm-nest-status.  Was only running: clock, calendar, currentweather, and weatherforecast.  And THAT locked up.</p>
<p dir="auto">Now removed weatherforecast also.</p>
]]></description><link>https://forum.magicmirror.builders/post/67956</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/67956</guid><dc:creator><![CDATA[max64]]></dc:creator><pubDate>Tue, 14 Jan 2020 02:37:53 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Mon, 13 Jan 2020 18:54:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/max64" aria-label="Profile: max64">@<bdi>max64</bdi></a> said in <a href="/post/67933">Unable to determine reason for MM/electron decaying/dying/hanging</a>:</p>
<blockquote>
<p dir="auto">As mmm-nest-status appears pretty light weight and has no “npm install” requirements, this still may be an incompatibility between Buster and Electron</p>
</blockquote>
<p dir="auto">or a bug in the module…</p>
<p dir="auto">will look later</p>
]]></description><link>https://forum.magicmirror.builders/post/67935</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/67935</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 13 Jan 2020 18:54:39 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Mon, 13 Jan 2020 18:35:26 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 />
Well, woke today to another frozen screen.</p>
<p dir="auto">The only modules running were: clock, calendar, currentweather, weatherforecast, and mmm-nest-status.   It was running most of the day yesterday with just the first 4 modules, so I added in mmm-nest-status.</p>
<p dir="auto">I’ll roll it back to just the 1st 4 default modules again, and see if that will run 24 hours.</p>
<p dir="auto">As mmm-nest-status appears pretty light weight and has no “npm install” requirements, this still may be an incompatibility between Buster and Electron…</p>
]]></description><link>https://forum.magicmirror.builders/post/67933</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/67933</guid><dc:creator><![CDATA[max64]]></dc:creator><pubDate>Mon, 13 Jan 2020 18:35:26 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Mon, 13 Jan 2020 16:51:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/max64" aria-label="Profile: max64">@<bdi>max64</bdi></a> said in <a href="/post/67915">Unable to determine reason for MM/electron decaying/dying/hanging</a>:</p>
<blockquote>
<p dir="auto">Also, interesting enough, I do use \n in my remote file, and under Stretch and the previous version of MM it did not format the line return on the screen, and I noticed that right off after this most recent load on the RP3.</p>
</blockquote>
<p dir="auto">ok, you do not appear to be having the problem with compliments that the other user was having…</p>
<p dir="auto">u have troubles with crash/hang…</p>
<p dir="auto">I don’t use that module for background images.</p>
<p dir="auto">I have loaded it for testing… don’t see any problem ‘yet’!</p>
]]></description><link>https://forum.magicmirror.builders/post/67923</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/67923</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 13 Jan 2020 16:51:46 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Mon, 13 Jan 2020 04:28:54 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 />
Yes. File is “remote_compliments.json” and is in the compliments folder.  (As I mentioned in the prev post, it had all been working ok w/ my Pi Zero W under Stretch)</p>
<p dir="auto">Also, interesting enough, I do use \n in my remote file, and under Stretch and the previous version of MM it did not format the line return on the screen, and I noticed that right off after this most recent load on the RP3.</p>
<p dir="auto">Snippet from config.js:</p>
<pre><code>{
  module: "compliments",
  position: "bottom_bar",
  config: {
                updateInterval: 300000, //30000 = 30 seconds
                fadeSpeed: 4000,
                remoteFile: "remote_compliments.json",
                classes: "thin medium bright"
                 }
}
</code></pre>
<p dir="auto">Here’s remote_compliments.json:</p>
<pre><code>{
	"anytime": [
		"\"The grand essentials of happiness are: something to do, something to love, and something to hope for.\"\n- Chalmers -",
		"\"I hear and I forget. I see and I remember. I do and I understand.\"\n- Confucius -",
		"\"However many holy words you read, However many you speak, What good will they do you If you do not act on upon them?\"\n- Buddha -",
		"\"Talk doesn't cook rice.\"\n- Chinese Proverb -",
		"\"Doing nothing is better than being busy doing nothing.\"\n- Lao Tzu -",
		"\"Every sixty seconds you spend angry, upset or mad, is a full minute of happiness you’ll never get back.\"\n- Unknown -",
		"\"Some people feel the rain. Others just get wet.\"\n- Bob Marley -",
		"\"Whether you think you can, or you think you can’t, you’re probably right.\"\n- Henry Ford -",
		"\"Success is getting what you want. Happiness is liking what you get.\"\n- H. Jackson Brown, Jr. -",
		"\"Trust the universe to provide your highest good. It's a little smarter than you are.\"\n- Max Bordelon -",
		"\"There are two rules in life: Rule 1: Don't sweat the small stuff. Rule 2: Everything is small stuff.\"\n- Finn Taylor -",
		"\"The world is a stage, life is a passage. You came, you saw, you departed.\"\n- Democritus -",
		"\"Everyone smiles in the same language.\"\n- George Carlin -",
		"\"Being deeply loved by someone gives you strength, while loving someone deeply gives you courage.\"\n- Lao-Tzu -",
		"\"Humility is the embarrassment you feel when you tell people how wonderful you are.\"\n- Laurence J Peter -",
		"\"You are the average of the five people you spend the most time with.\"\n- Jim Rohn -",
		"\"Yesterday is history, tomorrow is a mystery, and today is a gift... that's why they call it the present.\"\n- Eleanor Roosevelt -",
		"\"Never allow a person to tell you \"no\" who doesn't have the power to say \"yes\".\"\n- Eleanor Roosevelt -",
		"\"Anyone who has ever made anything of importance was disciplined.\"\n- Andrew Hendrixson -",
		"\"Don’t spend time beating on a wall, hoping to transform it into a door\"\n- Coco Chanel -",
		"\"Creativity is intelligence having fun.\"\n - Albert Einstein",
                "\"Optimism is the one quality more associated with success and happiness than any other.\"\n- Brian Tracy -",
                "\"Always keep your eyes open. Keep watching. Because whatever you see can inspire you.\"\n— Grace Coddington -",
                "\"What you get by achieving your goals is not as important as what you become by achieving your goals.\"\n- Henry David Thoreau -",
                "\"If the plan doesn’t work, change the plan, but never the goal.\"\n- Unknown -",
                "\"I destroy my enemies when I make them my friends.\"\n- Abraham Lincoln -",
                "\"Don’t live the same year 75 times and call it a life.\"\n- Robin Sharma -",
                "\"You cannot save people, you can just love them.\"\n- Anaïs Nin -",
                "\"It wasn’t raining when Noah built the ark.\"\n- Howard Ruff -",
                "\"Take your dreams seriously.\"\n- Unknown -",
                "\"There is no way to happiness. Happiness is the way.\"\n- Thich Nhat Hanh -",
                "\"Holding onto anger is like drinking poison and expecting the other person to die.\"\n- Unknown -",
                "\"Champions keep playing until they get it right.\"\n- Billie Jean King -",
                "\"You will succeed because most people are lazy.\"\n- Shahir Zag -",
                "\"Genius is 1% inspiration, 99% perspiration.\"\n- Thomas Edison -",
                "\"A comfort zone is a beautiful place, but nothing ever grows there.\"\n- Unknown -",
                "\"You must be the change you wish to see in the world.\"\n- Mahatma Gandhi -",
                "\"Numbing the pain for a while will only make it worse when you finally feel it.\"\n- Albus Dumbledore -",
                "\"Do it with passion, or not at all.\"\n- Rosa Nouchette Carey -",
                "\"If you want to live a happy life, tie it to a goal, not to people or objects.\"\n- Albert Einstein -",
                "\"The grass is greener where you water it.\"\n- Neil Barringham -",
                "\"Never give up on a dream just because of the time it will take to accomplish it. The time will pass anyway.\"\n- Earl Nightingale -",
                "\"Instead of wondering when your next vacation is, maybe you should set up a life you don’t need to escape from.\"\n- Seth Godin -",
                "\"If it scares you, it might be a good thing to try.\"\n- Seth Godin -",
                "\"Sometimes you win, sometimes you learn.\"\n- John Maxwell -",
                "\"Never apologize for having high standards. People who really want to be in your life will rise up to meet them.\"\n- Ziad K. Abdelnour -",
                "\"I never dream of success. I worked for it.\"\n- Estee Lauder -",
                "\"Avoiding failure is to avoid progress.\"\n- Unknown -",
		"\"The future comes a day at a time.\"\n- Unknown -",
		"\"Worry steals your joy and keeps you very busy doing nothing.\"\n- Unknown -",
		"\"Tomorrow sees undone, what happens not today; Indecision brings delays. Days lost lamenting lost days.\"\n- Ryoga Habiki -",
		"\"You can’t just skip ahead to where you think your life should be.\"\n- Lily Aldryn -",
		"\"If you're really honest with yourself about what you want out of life, life gives it to you.\"\n- Ted Mosby -",
		"\"If you’re not scared, you’re not taking a chance. And if you’re not taking a chance, then what the hell are you doing?\"\n— Ted Mosby -",
		"\"We struggle so hard to hold on to these things that we know are gonna disappear eventually. And that’s really noble.\"\n— Lily Aldrin -",
		"\"So really the biggest mistake would be not to make that mistake, because then you’ll go your whole life not knowing if something was a mistake or not.\"\n— Lily Aldrin -",
		"\"Sometimes things have to fall apart to make way for better things.\"\n— Ted Mosby -",
		"\"I'm the lord and master of this disaster.\"\n- BNL -",
		"\"Every new beginning comes from some other beginning's end\"\n- Closing Time, Semisonic -"
	],
	"morning": [
		"Good morning Tiger",
		"Enjoy your day!"
	],
	"afternoon": [
		"I hope you've been having a nice day!"
	]
}

</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/67915</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/67915</guid><dc:creator><![CDATA[max64]]></dc:creator><pubDate>Mon, 13 Jan 2020 04:28:54 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Mon, 13 Jan 2020 03:47:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/max" aria-label="Profile: max">@<bdi>max</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/hedmik" aria-label="Profile: hedmik">@<bdi>hedmik</bdi></a><br />
have either of you verified your file format, with one of the online json validators?</p>
<p dir="auto">I like this one a  lot<br />
<a href="https://codebeautify.org/jsonvalidator" target="_blank" rel="noopener noreferrer nofollow ugc">https://codebeautify.org/jsonvalidator</a></p>
]]></description><link>https://forum.magicmirror.builders/post/67914</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/67914</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 13 Jan 2020 03:47:08 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Mon, 13 Jan 2020 03:43:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hedmik" aria-label="Profile: hedmik">@<bdi>hedmik</bdi></a> said in <a href="/post/67667">Unable to determine reason for MM/electron decaying/dying/hanging</a>:</p>
<blockquote>
<p dir="auto">custom compliments module</p>
</blockquote>
<p dir="auto">do you mean configuration?  is this remoteFile: in the config?</p>
<p dir="auto">is that file in the compliments modules folder? it must be.</p>
]]></description><link>https://forum.magicmirror.builders/post/67913</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/67913</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 13 Jan 2020 03:43:49 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Mon, 13 Jan 2020 03:44:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/max64" aria-label="Profile: max64">@<bdi>max64</bdi></a> said in <a href="/post/67910">Unable to determine reason for MM/electron decaying/dying/hanging</a>:</p>
<blockquote>
<p dir="auto">by a “custom compliments module”</p>
</blockquote>
<p dir="auto">I said custom compliments configuration, not module</p>
<p dir="auto">so, yes, u are, as u are supplying the compliment strings in a file…</p>
<p dir="auto">can we see that file…  is it the in the compliments module folder? (it must be)<br />
and for linux systems the filename case matters, and must match EXACTLY whatever u specify int her remoteFile:  config option</p>
]]></description><link>https://forum.magicmirror.builders/post/67912</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/67912</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 13 Jan 2020 03:44:07 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Mon, 13 Jan 2020 02:59:27 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 />
What exactly do you mean by a “custom compliments module”?  I am using the default “compliments” module but with “remoteFile” for the quotes.  Is that what you are referring to as “custom”?</p>
<p dir="auto">Since upgrading from a Pi Zero W running Stretch, I have been having the same issues as both of you (RP3B+/Buster/Latest MM/and then did the Electron upgrade to electron@6.0.12 as mentioned in the updated <a href="https://docs.magicmirror.builders/getting-started/installation.html" target="_blank" rel="noopener noreferrer nofollow ugc">installation documentation</a>).</p>
<p dir="auto">When running MMM-BackgroundSlideshow on Zero before I would occasionally get race events, so  I recently moved to RP3 with a fresh install, and I turned on “transitions” between photos as I thought the beefier CPU would handle it.  But it would hang after a while and I’ve been trying to diagnose ever sense.  I’ve set “transitions” back to false and the Pi still hangs.  I’ve increased swap.  I’ve increased GPU mem.  Tracked with nmon, and except for the occasional CPU wait% going up every once in a while, I was never low on memory or disk.</p>
<p dir="auto">I just happened to run across this thread and it seems almost exactly the same issues.</p>
<p dir="auto">I’m <em>slowly</em> adding back in all the modules and will now put back in MMM-BackgroundSlideshow before adding compliments.  I really never thought one of the default modules would be the issue.  I actually thought it was some incompatibility between Buster and Electron.</p>
<p dir="auto">I’ll report my findings.</p>
]]></description><link>https://forum.magicmirror.builders/post/67910</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/67910</guid><dc:creator><![CDATA[max64]]></dc:creator><pubDate>Mon, 13 Jan 2020 02:59:27 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Wed, 08 Jan 2020 19:38:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hedmik" aria-label="Profile: hedmik">@<bdi>hedmik</bdi></a> said in <a href="/post/67667">Unable to determine reason for MM/electron decaying/dying/hanging</a>:</p>
<blockquote>
<p dir="auto">Yes, i have both the standard and also a custom compliments module and by turning that custome module off MM is still running since one hour!!!</p>
</blockquote>
<p dir="auto">fantastic…!!</p>
<p dir="auto">it might be a mispelling or something but it can’t find ANY actual compliment text…</p>
]]></description><link>https://forum.magicmirror.builders/post/67668</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/67668</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 08 Jan 2020 19:38:19 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Wed, 08 Jan 2020 19:35:46 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> Hi again, and i’m very grateful for you helping me out :-)<br />
Yes, i have both the standard and also a custom compliments module and by turning that custome module off MM is still running since one hour!!!<br />
I’m so happy back on track again (cross my fingers) :-)<br />
I will now focus on enhancing MMM-Telldus and MMM-Vastrafik modules.<br />
I’ve also seen nice enhancements made for Weather forcast module (more descriptive text and translated to Swedish). Hope to get those enhancements otherwise i’ll do it mysfelf.<br />
I’m also planning to develop a module for Engage (showing electricity consumption within the household).<br />
Once again, big thanks!</p>
]]></description><link>https://forum.magicmirror.builders/post/67667</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/67667</guid><dc:creator><![CDATA[hedmik]]></dc:creator><pubDate>Wed, 08 Jan 2020 19:35:46 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Tue, 07 Jan 2020 13:46:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hedmik" aria-label="Profile: hedmik">@<bdi>hedmik</bdi></a> said in <a href="/post/67470">Unable to determine reason for MM/electron decaying/dying/hanging</a>:</p>
<blockquote>
<p dir="auto">TypeError: Cannot read property ‘split’ of undefined</p>
</blockquote>
<p dir="auto">do you have a custom compliments configuration?</p>
<p dir="auto">this is part of a fix I put in for compliments with embedded ‘\n’ newline characters</p>
<p dir="auto">but the code said that it came up with no compliment to use from the list of morning/afternoon/evening/anytime  configured compliments</p>
<p dir="auto">if u want to turn that module off, then add<br />
disabled: true,</p>
<p dir="auto">to its config entry (after module: ‘compliments’,)</p>
]]></description><link>https://forum.magicmirror.builders/post/67474</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/67474</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 07 Jan 2020 13:46:16 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Mon, 06 Jan 2020 21:05:48 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 have lot of free memory, no swap at all what i can see :-)<br />
But i found theese errors in the console (maybe hard to tell why…):</p>
<ul>
<li>Refused to apply style from ‘<a href="http://raspberrypi4:8080/css/custom.css" target="_blank" rel="noopener noreferrer nofollow ugc">http://raspberrypi4:8080/css/custom.css</a>’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.</li>
<li>loader.js:203 Error on loading stylesheet: css/custom.css<br />
stylesheet.onerror @ loader.js:203</li>
<li>TypeError: Cannot read property ‘split’ of undefined<br />
at Class.getDom (compliments.js:176)<br />
at main.js:112<br />
at new Promise ()<br />
at updateDom (main.js:111)<br />
at main.js:55<br />
at Array.forEach ()<br />
at createDomObjects (main.js:24)<br />
at Object.modulesStarted (main.js:476)<br />
at startModules (loader.js:59)<br />
at loader.js:40</li>
<li>Failed to load resource: the server responded with a status of 401 (Unauthorized)</li>
<li>Refused to apply style from ‘<a href="http://raspberrypi4:8080/css/custom.css" target="_blank" rel="noopener noreferrer nofollow ugc">http://raspberrypi4:8080/css/custom.css</a>’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.</li>
</ul>
]]></description><link>https://forum.magicmirror.builders/post/67470</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/67470</guid><dc:creator><![CDATA[hedmik]]></dc:creator><pubDate>Mon, 06 Jan 2020 21:05:48 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Mon, 06 Jan 2020 20:48:10 GMT]]></title><description><![CDATA[<p dir="auto">look at</p>
<p dir="auto">free -m</p>
<p dir="auto">u may need to increase swap space u have a bunch of stuff running<br />
<a href="https://wpitchoune.net/tricks/raspberry_pi3_increase_swap_size.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://wpitchoune.net/tricks/raspberry_pi3_increase_swap_size.html</a></p>
<p dir="auto">also, open the developers window, ctrl-shift-i on the keyboard, select the tab labeled ‘console’ and scroll up, looking for any errors (usually red text)… or any other  errors reported</p>
<p dir="auto">the terminal window messages are from the module node_helpers<br />
the dev window are from the modules main file (we call it  the modulename.js as its name matches the module name)</p>
<p dir="auto">no single place collects it all</p>
]]></description><link>https://forum.magicmirror.builders/post/67467</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/67467</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 06 Jan 2020 20:48:10 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Mon, 06 Jan 2020 20:43:58 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> thanks for reaching out!<br />
I’ve made the change you proposed but MM hangs again :-(<br />
What i can see from MagicMirror-error.log is this:</p>
<p dir="auto">[21:32:49.843] [ERROR]  (node:6386) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.</p>
<p dir="auto">Below the MagicMirror-out.log:</p>
<blockquote>
<p dir="auto">magicmirror@2.10.0 start /home/pi/MagicMirror<br />
./run-start.sh</p>
</blockquote>
<p dir="auto">[21:32:45.141] [LOG]    Starting MagicMirror: v2.10.0<br />
[21:32:45.149] [LOG]    Loading config …<br />
[21:32:45.155] [LOG]    Loading module helpers …<br />
[21:32:45.157] [LOG]    No helper found for module: alert.<br />
[21:32:45.196] [LOG]    Initializing new module helper …<br />
[21:32:45.197] [LOG]    Module helper loaded: updatenotification<br />
[21:32:45.198] [LOG]    No helper found for module: clock.<br />
[21:32:45.566] [LOG]    Initializing new module helper …<br />
[21:32:45.567] [LOG]    Module helper loaded: MMM-SystemStats<br />
[21:32:45.626] [LOG]    Initializing new module helper …<br />
[21:32:45.626] [LOG]    Module helper loaded: MMM-Remote-Control<br />
[21:32:46.275] [LOG]    Initializing new module helper …<br />
[21:32:46.277] [LOG]    Module helper loaded: MMM-Vasttrafik-PublicTransport<br />
[21:32:46.278] [LOG]    No helper found for module: currentweather.<br />
[21:32:46.278] [LOG]    No helper found for module: weatherforecast.<br />
[21:32:46.305] [LOG]    Initializing new module helper …<br />
[21:32:46.305] [LOG]    Module helper loaded: MMM-telldusLive<br />
[21:32:46.733] [LOG]    Initializing new module helper …<br />
[21:32:46.734] [LOG]    Module helper loaded: MMM-NowPlayingOnSpotify<br />
[21:32:46.737] [LOG]    Initializing new module helper …<br />
[21:32:46.737] [LOG]    Module helper loaded: MMM-SolarEdge<br />
[21:32:46.738] [LOG]    No helper found for module: compliments.<br />
[21:32:46.738] [LOG]    All module helpers loaded.<br />
[21:32:46.739] [LOG]    Starting server on port 8080 …<br />
[21:32:46.745] [INFO]   [33mYou’re using a full whitelist configuration to allow for all IPs[39m<br />
[21:32:46.753] [LOG]    Server started …<br />
[21:32:46.754] [LOG]    Connecting socket for: updatenotification<br />
[21:32:46.755] [LOG]    Connecting socket for: MMM-SystemStats<br />
[21:32:46.755] [LOG]    Connecting socket for: MMM-Remote-Control<br />
[21:32:46.756] [LOG]    Starting node helper for: MMM-Remote-Control<br />
[21:32:46.763] [LOG]    Connecting socket for: MMM-Vasttrafik-PublicTransport<br />
[21:32:46.776] [LOG]    21:32:46 MMM-Vasttrafik-PublicTransport: Starting helper: MMM-Vasttrafik-PublicTransport<br />
[21:32:46.777] [LOG]    Connecting socket for: MMM-telldusLive<br />
[21:32:46.777] [LOG]    Connecting socket for: MMM-NowPlayingOnSpotify<br />
[21:32:46.778] [LOG]    Connecting socket for: MMM-SolarEdge<br />
[21:32:46.779] [LOG]    Starting node helper: MMM-SolarEdge<br />
[21:32:46.779] [LOG]    Sockets connected &amp; modules started …<br />
[21:32:46.915] [LOG]    Launching application.<br />
[21:32:49.759] [LOG]    21:32:49 MMM-Vasttrafik-PublicTransport: socketNotificationReceived<br />
[21:32:49.761] [LOG]    21:32:49 MMM-Vasttrafik-PublicTransport: CONFIG event received<br />
[21:32:49.780] [LOG]    Telldus config received!<br />
[21:32:49.780] [LOG]    Telldus sent fetch<br />
[21:32:49.834] [LOG]    Notification: GET_SOLAR Payload: [object Object]<br />
[21:32:50.089] [LOG]    Refreshed access token because it has expired. Expired at: 21:32:49 now is: 21:32:50<br />
[21:40:06.915] [LOG]</p>
]]></description><link>https://forum.magicmirror.builders/post/67466</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/67466</guid><dc:creator><![CDATA[hedmik]]></dc:creator><pubDate>Mon, 06 Jan 2020 20:43:58 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Mon, 06 Jan 2020 20:30:07 GMT]]></title><description><![CDATA[<p dir="auto">adding the line below to MagicMirror/js/electron.js has helped for me</p>
<pre><code>function createWindow() {
	app.commandLine.appendSwitch("autoplay-policy", "no-user-gesture-required");
	app.commandLine.appendSwitch('disable-http-cache');  // &lt; ---- add this line
	var electronOptionsDefaults = {
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/67460</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/67460</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 06 Jan 2020 20:30:07 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to determine reason for MM/electron decaying/dying/hanging on Mon, 06 Jan 2020 20:17:57 GMT]]></title><description><![CDATA[<p dir="auto">I have the same problem…MM runs a couple seconds up to minutes and hours…<br />
I’ve also tried to remove more or less everything from config file but with no success.<br />
I’m using one RP4 4GB and two RP4 2GB with the same config.<br />
What i’ve found out is that if i restart mm at the same time they almost die at the same time…could there be some kind of network/integration problem that is not taking care of errors making MM to die/hang?</p>
]]></description><link>https://forum.magicmirror.builders/post/67458</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/67458</guid><dc:creator><![CDATA[hedmik]]></dc:creator><pubDate>Mon, 06 Jan 2020 20:17:57 GMT</pubDate></item></channel></rss>