MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

Black screen: need help



  • So I’ve turned on the other day my MagicMirror after a 6 months stop.

    I had the bad idea to upgrade MM and some modules.
    Now I’ve ended up with a black screen at loading and I don’t know where to start to fix… 😓

    Can someone please give me some directions on what to fix?

    pi@raspberrypi:~/MagicMirror $ npm start
    
    > magicmirror@2.11.0 start /home/pi/MagicMirror
    > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
    
    [2020-06-04 22:06:46.874] [LOG]    Starting MagicMirror: v2.11.0
    [2020-06-04 22:06:46.920] [LOG]    Loading config ...
    [2020-06-04 22:06:46.935] [LOG]    Loading module helpers ...
    [2020-06-04 22:06:46.951] [LOG]    Initializing new module helper ...
    [2020-06-04 22:06:46.953] [LOG]    Module helper loaded: MMM-WatchDog
    [2020-06-04 22:06:47.117] [LOG]    Initializing new module helper ...
    [2020-06-04 22:06:47.118] [LOG]    Module helper loaded: MMM-Remote-Control
    [2020-06-04 22:06:49.910] [LOG]    Initializing new module helper ...
    [2020-06-04 22:06:49.911] [LOG]    Module helper loaded: MMM-RTSPStream
    [2020-06-04 22:06:49.913] [LOG]    No helper found for module: alert.
    [2020-06-04 22:06:50.003] [LOG]    Initializing new module helper ...
    [2020-06-04 22:06:50.004] [LOG]    Module helper loaded: updatenotification
    [2020-06-04 22:06:50.098] [LOG]    Initializing new module helper ...
    [2020-06-04 22:06:50.105] [LOG]    Module helper loaded: newsfeed
    [2020-06-04 22:06:53.540] [LOG]    Initializing new module helper ...
    [2020-06-04 22:06:53.541] [LOG]    Module helper loaded: MMM-AssistantMk2
    [2020-06-04 22:06:53.543] [LOG]    No helper found for module: clock.
    [2020-06-04 22:06:53.584] [LOG]    Initializing new module helper ...
    [2020-06-04 22:06:53.585] [LOG]    Module helper loaded: MMM-Spotify
    [2020-06-04 22:06:54.484] [LOG]    Initializing new module helper ...
    [2020-06-04 22:06:54.485] [LOG]    Module helper loaded: MMM-DarkSkyForecast
    [2020-06-04 22:06:55.857] [LOG]    Initializing new module helper ...
    [2020-06-04 22:06:55.859] [LOG]    Module helper loaded: MMM-PushBulletNotifications
    [2020-06-04 22:06:55.868] [ERROR]  WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module '@bugsounet/lpcm16'
    Require stack:
    - /home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js
    - /home/pi/MagicMirror/js/app.js
    - /home/pi/MagicMirror/js/electron.js
    - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
    - 
    [2020-06-04 22:06:55.872] [LOG]    Loading module helpers ...
    [2020-06-04 22:06:55.873] [LOG]    Initializing new module helper ...
    [2020-06-04 22:06:55.874] [LOG]    Module helper loaded: MMM-WatchDog
    [2020-06-04 22:06:55.875] [LOG]    Initializing new module helper ...
    [2020-06-04 22:06:55.876] [LOG]    Module helper loaded: MMM-Remote-Control
    [2020-06-04 22:06:55.877] [LOG]    Initializing new module helper ...
    [2020-06-04 22:06:55.878] [LOG]    Module helper loaded: MMM-RTSPStream
    [2020-06-04 22:06:55.879] [LOG]    No helper found for module: alert.
    [2020-06-04 22:06:55.880] [LOG]    Initializing new module helper ...
    [2020-06-04 22:06:55.880] [LOG]    Module helper loaded: updatenotification
    [2020-06-04 22:06:55.881] [LOG]    Initializing new module helper ...
    [2020-06-04 22:06:55.882] [LOG]    Module helper loaded: newsfeed
    [2020-06-04 22:06:55.882] [LOG]    Initializing new module helper ...
    [2020-06-04 22:06:55.883] [LOG]    Module helper loaded: MMM-AssistantMk2
    [2020-06-04 22:06:55.884] [LOG]    No helper found for module: clock.
    [2020-06-04 22:06:55.885] [LOG]    Initializing new module helper ...
    [2020-06-04 22:06:55.885] [LOG]    Module helper loaded: MMM-Spotify
    [2020-06-04 22:06:55.886] [LOG]    Initializing new module helper ...
    [2020-06-04 22:06:55.887] [LOG]    Module helper loaded: MMM-DarkSkyForecast
    [2020-06-04 22:06:55.890] [LOG]    Initializing new module helper ...
    [2020-06-04 22:06:55.892] [LOG]    Module helper loaded: MMM-PushBulletNotifications
    [2020-06-04 22:06:55.899] [ERROR]  App threw an error during load
    [2020-06-04 22:06:55.902] [ERROR]  Error: Cannot find module '@bugsounet/lpcm16'
    Require stack:
    - /home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js
    - /home/pi/MagicMirror/js/app.js
    - /home/pi/MagicMirror/js/electron.js
    - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
    - 
        at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
        at Function.Module._load (internal/modules/cjs/loader.js:531:27)
        at Module.require (internal/modules/cjs/loader.js:685:19)
        at require (internal/modules/cjs/helpers.js:16:16)
        at Object. (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:9:16)
        at Module._compile (internal/modules/cjs/loader.js:786:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
        at Module.load (internal/modules/cjs/loader.js:645:32)
    [2020-06-04 22:06:55.906] [LOG]    Whoops! There was an uncaught exception...
    [2020-06-04 22:06:55.907] [ERROR]  Error: Cannot find module '@bugsounet/lpcm16'
    Require stack:
    - /home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js
    - /home/pi/MagicMirror/js/app.js
    - /home/pi/MagicMirror/js/electron.js
    - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
    - 
        at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
        at Function.Module._load (internal/modules/cjs/loader.js:531:27)
        at Module.require (internal/modules/cjs/loader.js:685:19)
        at require (internal/modules/cjs/helpers.js:16:16)
        at Object. (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:9:16)
        at Module._compile (internal/modules/cjs/loader.js:786:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
        at Module.load (internal/modules/cjs/loader.js:645:32) {
      code: 'MODULE_NOT_FOUND',
      requireStack: [
        '/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js',
        '/home/pi/MagicMirror/js/app.js',
        '/home/pi/MagicMirror/js/electron.js',
        '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
        undefined
      ]
    }
    [2020-06-04 22:06:55.921] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    [2020-06-04 22:06:55.922] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    Fontconfig warning: "/etc/fonts/fonts.conf", line 100: unknown element "blank"
    [2020-06-04 22:06:56.453] [LOG]    Launching application.
    ^C[2020-06-04 22:07:08.674] [LOG]    Shutting down server...
    [2020-06-04 22:07:08.677] [LOG]    Stopping module helper: MMM-WatchDog
    [2020-06-04 22:07:08.679] [LOG]    Whoops! There was an uncaught exception...
    [2020-06-04 22:07:08.681] [ERROR]  TypeError: Cannot convert undefined or null to object
        at Function.keys ()
        at Class.stop (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:70:20)
        at App.stop (/home/pi/MagicMirror/js/app.js:252:16)
        at App. (/home/pi/MagicMirror/js/electron.js:108:7)
        at App.emit (events.js:200:13)
    [2020-06-04 22:07:08.685] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    [2020-06-04 22:07:08.686] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    

  • Module Developer

    Looks like one of your modules is messed up. Perhaps an unrun npm install somewhere? MMM-Remote-Control perhaps?


  • Module Developer

    single result of MMM-Hotword deprecied


  • Project Sponsor Module Developer

    Funny things those modules…people make them, give them away and they have no further plans on doing anything to them.

    Some build them for their own use and share with the community expecting users to use it if they wish, improve it if they wish. No two mirrors are alike and sometimes you run into these issues.

    It may yet work but if someone wants to use it they may have to do some work on it and solve some issues to make them work.

    I’ve found that not everyone is a life long MagicMirror person… they come, they build they leave… it happens.


  • Module Developer

    if i deprecied this module … sorry, unfortunately i have my reason 😢

    Unfortunately, nothing is for granted … even for a developer (.even if we develop with pleasure and for free)
    I hope that on your side it will be better than me



  • pi@raspberrypi:~/MagicMirror $ npm start dev
    
    magicmirror@2.11.0 start /home/pi/MagicMirror
    DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js "dev"
    
    [2020-06-05 08:24:47.909] [LOG] Starting MagicMirror: v2.11.0
    [2020-06-05 08:24:47.922] [LOG] Loading config ...
    [2020-06-05 08:24:47.931] [LOG] Loading module helpers ...
    [2020-06-05 08:24:47.934] [LOG] No helper found for module: alert.
    [2020-06-05 08:24:48.023] [LOG] Initializing new module helper ...
    [2020-06-05 08:24:48.024] [LOG] Module helper loaded: updatenotification
    [2020-06-05 08:24:48.025] [LOG] No helper found for module: clock.
    [2020-06-05 08:24:48.707] [LOG] Initializing new module helper ...
    [2020-06-05 08:24:48.708] [LOG] Module helper loaded: calendar
    [2020-06-05 08:24:48.709] [LOG] No helper found for module: compliments.
    [2020-06-05 08:24:48.710] [LOG] No helper found for module: currentweather.
    [2020-06-05 08:24:48.711] [LOG] No helper found for module: weatherforecast.
    [2020-06-05 08:24:48.718] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module '@bugsounet/lpcm16'
    Require stack:
    
    /home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js
    /home/pi/MagicMirror/js/app.js
    /home/pi/MagicMirror/js/electron.js
    /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
    [2020-06-05 08:24:48.720] [LOG] Loading module helpers ...
    [2020-06-05 08:24:48.721] [LOG] No helper found for module: alert.
    [2020-06-05 08:24:48.722] [LOG] Initializing new module helper ...
    [2020-06-05 08:24:48.722] [LOG] Module helper loaded: updatenotification
    [2020-06-05 08:24:48.723] [LOG] No helper found for module: clock.
    [2020-06-05 08:24:48.724] [LOG] Initializing new module helper ...
    [2020-06-05 08:24:48.725] [LOG] Module helper loaded: calendar
    [2020-06-05 08:24:48.725] [LOG] No helper found for module: compliments.
    [2020-06-05 08:24:48.726] [LOG] No helper found for module: currentweather.
    [2020-06-05 08:24:48.727] [LOG] No helper found for module: weatherforecast.
    [2020-06-05 08:24:48.730] [ERROR] App threw an error during load
    [2020-06-05 08:24:48.732] [ERROR] Error: Cannot find module '@bugsounet/lpcm16'
    Require stack:
    
    /home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js
    /home/pi/MagicMirror/js/app.js
    /home/pi/MagicMirror/js/electron.js
    /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
    at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
    at Function.Module._load (internal/modules/cjs/loader.js:531:27)
    at Module.require (internal/modules/cjs/loader.js:685:19)
    at require (internal/modules/cjs/helpers.js:16:16)
    at Object. (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:9:16)
    at Module._compile (internal/modules/cjs/loader.js:786:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
    at Module.load (internal/modules/cjs/loader.js:645:32)
    [2020-06-05 08:24:48.734] [LOG] Whoops! There was an uncaught exception...
    [2020-06-05 08:24:48.735] [ERROR] Error: Cannot find module '@bugsounet/lpcm16'
    Require stack:
    /home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js
    /home/pi/MagicMirror/js/app.js
    /home/pi/MagicMirror/js/electron.js
    /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
    at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
    at Function.Module._load (internal/modules/cjs/loader.js:531:27)
    at Module.require (internal/modules/cjs/loader.js:685:19)
    at require (internal/modules/cjs/helpers.js:16:16)
    at Object. (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:9:16)
    at Module._compile (internal/modules/cjs/loader.js:786:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
    at Module.load (internal/modules/cjs/loader.js:645:32) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js',
    '/home/pi/MagicMirror/js/app.js',
    '/home/pi/MagicMirror/js/electron.js',
    '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
    undefined
    ]
    }
    [2020-06-05 08:24:48.750] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    [2020-06-05 08:24:48.750] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    [2020-06-05 08:24:48.959] [LOG] Launching application.
    


  • @Bugsounet don’t worry I don’t blame you mate only can you please tell me if there’s a way to revert before I did the module upgrade?

    Perhaps what @BKeyport said?
    If yes how exactly please? 😬


  • Module Developer

    it’s a bit twisted, but there’s a way to figure out which module it is…

    Set up your config.js with every module commented out. Open comment is /* - close comment is */ I would set up one of the default modules (Alert) as the first module, and leave it alone, like this:

    	modules: [
    		{
    			module: "alert",
    		},
    /*
    (insert remainder of modules here)
    */  
    	]
    

    Restart your Mirror. It should have no errors.

    Now, move the /* down to the next module and restart. Once it has error, you’ve found a troublesome module. Take it out.

    Keep going until you get the comments next to each other.


  • Module Developer

    @Cr4z33 , @aamir6629 : I repeat again

    if i deprecied this module … sorry, unfortunately i have my reason 😢

    So : MMM-Hotword project is closed
    You can uninstall it and delete his config



  • @BKeyport cheers I will definitely go that way! 👍🏽

    Once I find out the ‘guilty’ module I will post back here.


Log in to reply