Read the statement by Michael Teeuw here.
Unable to determine reason for MM/electron decaying/dying/hanging
-
look at
free -m
u may need to increase swap space u have a bunch of stuff running
https://wpitchoune.net/tricks/raspberry_pi3_increase_swap_size.htmlalso, 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
the terminal window messages are from the module node_helpers
the dev window are from the modules main file (we call it the modulename.js as its name matches the module name)no single place collects it all
-
@sdetweil I have lot of free memory, no swap at all what i can see :-)
But i found theese errors in the console (maybe hard to tell why…):- Refused to apply style from ‘http://raspberrypi4:8080/css/custom.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
- loader.js:203 Error on loading stylesheet: css/custom.css
stylesheet.onerror @ loader.js:203 - TypeError: Cannot read property ‘split’ of undefined
at Class.getDom (compliments.js:176)
at main.js:112
at new Promise ()
at updateDom (main.js:111)
at main.js:55
at Array.forEach ()
at createDomObjects (main.js:24)
at Object.modulesStarted (main.js:476)
at startModules (loader.js:59)
at loader.js:40 - Failed to load resource: the server responded with a status of 401 (Unauthorized)
- Refused to apply style from ‘http://raspberrypi4:8080/css/custom.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
-
@hedmik said in Unable to determine reason for MM/electron decaying/dying/hanging:
TypeError: Cannot read property ‘split’ of undefined
do you have a custom compliments configuration?
this is part of a fix I put in for compliments with embedded ‘\n’ newline characters
but the code said that it came up with no compliment to use from the list of morning/afternoon/evening/anytime configured compliments
if u want to turn that module off, then add
disabled: true,to its config entry (after module: ‘compliments’,)
-
@sdetweil Hi again, and i’m very grateful for you helping me out :-)
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!!!
I’m so happy back on track again (cross my fingers) :-)
I will now focus on enhancing MMM-Telldus and MMM-Vastrafik modules.
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.
I’m also planning to develop a module for Engage (showing electricity consumption within the household).
Once again, big thanks! -
@hedmik said in Unable to determine reason for MM/electron decaying/dying/hanging:
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!!!
fantastic…!!
it might be a mispelling or something but it can’t find ANY actual compliment text…
-
@sdetweil
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”?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 installation documentation).
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.
I just happened to run across this thread and it seems almost exactly the same issues.
I’m slowly 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.
I’ll report my findings.
-
@max64 said in Unable to determine reason for MM/electron decaying/dying/hanging:
by a “custom compliments module”
I said custom compliments configuration, not module
so, yes, u are, as u are supplying the compliment strings in a file…
can we see that file… is it the in the compliments module folder? (it must be)
and for linux systems the filename case matters, and must match EXACTLY whatever u specify int her remoteFile: config option -
@hedmik said in Unable to determine reason for MM/electron decaying/dying/hanging:
custom compliments module
do you mean configuration? is this remoteFile: in the config?
is that file in the compliments modules folder? it must be.
-
@max @hedmik
have either of you verified your file format, with one of the online json validators?I like this one a lot
https://codebeautify.org/jsonvalidator -
@sdetweil
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)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.
Snippet from config.js:
{ module: "compliments", position: "bottom_bar", config: { updateInterval: 300000, //30000 = 30 seconds fadeSpeed: 4000, remoteFile: "remote_compliments.json", classes: "thin medium bright" } }
Here’s remote_compliments.json:
{ "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!" ] }