[PLUGIN] Now Playing

The now playing plugin looks awsome however it makes mys system super slow.

Anyway to fix this?

More info is available in my original post.

Does it happen only when playing with the Spotify plugin? Does it happen with other music services? Hook up a keyboard to your device and press Shift+Esc to bring up the Task Manager. Does it show the Now Playing page hogging the CPU / memory?

I’ve been building a new system (new to Volumio) and had the exact same problem. After installing now playing it would fail start and then the web user interface of Volumio and HDMI out stopped working, event after a reboot. I managed to get it working again by removing now-playing manually, as follows: 1. Login to your Volumio using SSH (putty) which will be still working. Change directory to /data/plugins/user_interface (cd /data/plugins/user_interface) and remove the now playing subfolder (rm -R now_playing). Once you do this, either reboot or run volumio vrestart and you’ll be back in business, Looks like now playing is broken in certain circumstances. If you reinstall it, volumio will be broken again.

1 Like

The same for me.
Install volumio last version, install touch plug-in, install now playing and crash :frowning_face:
I try 3 time, always the same result…

Issue can be tracked here:

I tried beta 0.7.4 but I get the exact same behavior. The Volumio Web UI reports that Now Playing failed to start and once now playing is enabled, something triggers it and Volumio repeatedly crash. Neither the Volumio Web UI nor HDMI respond. I think the trigger might be either a touch input on the HDMI screen or a restart of the Volumio service, but I’m not sure. Looking at the output of live logging, I see the following two issues:

Dec 01 12:01:11 localhost volumio[5057]: info: Loading plugin “now_playing”…
Dec 01 12:01:11 localhost volumio[5057]: error: !!! WARNING !!!
Dec 01 12:01:11 localhost volumio[5057]: error: The plugin user_interface/now_playing failed to load, setting it to stopped. Error: Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /data/plugins/user_interface/now_playing/node_modules/point-in-polygon-hao/dist/pointInPolygon.mjs
Dec 01 12:01:11 localhost volumio[5057]: error: Stack trace: Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /data/plugins/user_interface/now_playing/node_modules/point-in-polygon-hao/dist/pointInPolygon.mjs
Dec 01 12:01:11 localhost volumio[5057]: at Module.load (internal/modules/cjs/loader.js:926:11)
Dec 01 12:01:11 localhost volumio[5057]: at Function.Module._load (internal/modules/cjs/loader.js:769:14)
Dec 01 12:01:11 localhost volumio[5057]: at Module.require (internal/modules/cjs/loader.js:952:19)
Dec 01 12:01:11 localhost volumio[5057]: at require (internal/modules/cjs/helpers.js:88:18)
Dec 01 12:01:11 localhost volumio[5057]: at Object. (/data/plugins/user_interface/now_playing/node_modules/@turf/boolean-point-in-polygon/dist/cjs/index.cjs:2:26)
Dec 01 12:01:11 localhost volumio[5057]: at Module._compile (internal/modules/cjs/loader.js:1063:30)
Dec 01 12:01:11 localhost volumio[5057]: at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)
Dec 01 12:01:11 localhost volumio[5057]: at Module.load (internal/modules/cjs/loader.js:928:32)
Dec 01 12:01:11 localhost volumio[5057]: at Function.Module._load (internal/modules/cjs/loader.js:769:14)
Dec 01 12:01:11 localhost volumio[5057]: at Module.require (internal/modules/cjs/loader.js:952:19)
Dec 01 12:01:11 localhost volumio[5057]: at require (internal/modules/cjs/helpers.js:88:18)
Dec 01 12:01:11 localhost volumio[5057]: at Object. (/data/plugins/user_interface/now_playing/node_modules/geo-tz/dist/find-1970.js:1:61)
Dec 01 12:01:11 localhost volumio[5057]: at Module._compile (internal/modules/cjs/loader.js:1063:30)
Dec 01 12:01:11 localhost volumio[5057]: at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)
Dec 01 12:01:11 localhost volumio[5057]: at Module.load (internal/modules/cjs/loader.js:928:32)
Dec 01 12:01:11 localhost volumio[5057]: at Function.Module._load (internal/modules/cjs/loader.js:769:14)
Dec 01 12:01:11 localhost volumio[5057]: error: !!! WARNING !!!

And then the volumio service does this:

Dec 01 12:01:12 localhost volumio[5057]: Updating browse sources language
Dec 01 12:01:12 localhost volumio[5057]: info: CoreCommandRouter::executeOnPlugin: my_music , getDisabledSources
Dec 01 12:01:12 localhost volumio[5057]: /volumio/app/index.js:1529
Dec 01 12:01:12 localhost volumio[5057]: if (typeof thisInterface.broadcastMessage === ‘function’) { return thisInterface.broadcastMessage(emit, payload); }
Dec 01 12:01:12 localhost volumio[5057]: ^
Dec 01 12:01:12 localhost volumio[5057]: TypeError: Cannot read property ‘broadcastMessage’ of null
Dec 01 12:01:12 localhost volumio[5057]: at /volumio/app/index.js:1529:32
Dec 01 12:01:12 localhost volumio[5057]: at fastMap (/volumio/node_modules/fast.js/array/map.js:21:17)
Dec 01 12:01:12 localhost volumio[5057]: at Function.fastMap [as map] (/volumio/node_modules/fast.js/map.js:18:12)
Dec 01 12:01:12 localhost volumio[5057]: at CoreCommandRouter.broadcastMessage (/volumio/app/index.js:1527:13)
Dec 01 12:01:12 localhost volumio[5057]: at CoreMusicLibrary.pushBrowseSources (/volumio/app/musiclibrary.js:584:29)
Dec 01 12:01:12 localhost volumio[5057]: at CoreMusicLibrary.updateBrowseSourcesLang (/volumio/app/musiclibrary.js:520:15)
Dec 01 12:01:12 localhost volumio[5057]: at new CoreCommandRouter (/volumio/app/index.js:51:21)
Dec 01 12:01:12 localhost volumio[5057]: at Object. (/volumio/index.js:54:21)
Dec 01 12:01:12 localhost volumio[5057]: at Module._compile (internal/modules/cjs/loader.js:1063:30)
Dec 01 12:01:12 localhost volumio[5057]: at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)
Dec 01 12:01:12 localhost volumio[5057]: at Module.load (internal/modules/cjs/loader.js:928:32)
Dec 01 12:01:12 localhost volumio[5057]: at Function.Module._load (internal/modules/cjs/loader.js:769:14)
Dec 01 12:01:12 localhost volumio[5057]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
Dec 01 12:01:12 localhost volumio[5057]: at internal/main/run_main_module.js:17:47
Dec 01 12:01:12 localhost systemd[1]: volumio.service: Main process exited, code=exited, status=1/FAILURE
Dec 01 12:01:12 localhost systemd[1]: volumio.service: Failed with result ‘exit-code’.

This then happens over and over with the errors spooling by in live log.

@patrickkfkan Any help with diagnosis would be much appreciated. Thanks, Graham

Thanks Patrick looks like you identified the issue, just before I posted. I’ll try the workaround,

@balbuze, for the time being, please disable the Now Playing plugin in the plugin store. The error caused by require(ESM module) at plugin instantiation stage is caught, but Volumio will still fail to boot because of this – there is no checking whether sInterface is undefined. Plugins that fail to instantiate are still added to corePlugins in pluginManger (source), so undefined instances will be returned in getPlugin().

Users with no access via ssh to remove the plugin manually will be unable to use Volumio.

hello!
Removed from store.

1 Like

Hi Patick!
I´m on volumio 3.782 and I don´t have this problem. Now Playing works just fine here.
/C

The Plugin Now Playing , NPM error , cannot install the plugin .
then a black screen
and i am desperate , how can i fix this .

It only started happening these two days with a fresh installation of the plugin. If you uninstall then reinstall the plugin, you will be affected too.

Ok!
I understand.
/C

The plugin should have already been removed from the plugin store pending resolution. How did you install it?

I installed 2 weeks ago just from the plugin store .
And it works fine no problems .
I removed the last fm plugin.
Then the system needed a restart .
And i get a non working system .
With a black screen .
I can acces the system tru a terminal with ssh .
Are you working at update the plugin .

You shouldn’t be affected if the plugin was installed two weeks ago…

You can do this in ssh to remove the plugin manually:

rm -rf /data/plugins/user_interface/now_playing

Followed by rebooting Volumio.

I have updated the plugin. Currently in beta channel. @balbuze, could you please push v0.7.5 as stable? Thanks.

1 Like

I just remove the complete installation .
And made a fresh install of Volumio .

Partick thanks
have installed version 0.75 all up and running .
:+1:

1 Like