Plugins not prepared while trying to load the node red example

Post Reply
sjihdazi
Posts: 4
Joined: Mon Nov 09, 2020 12:49 pm

Plugins not prepared while trying to load the node red example

Post by sjihdazi » Mon Nov 09, 2020 1:03 pm

Picture1.png
Picture1.png (170.47 KiB) Viewed 29117 times
I am trying to get the node red example to work on my raspberry pi, though i keep getting this error.
I looked this error up in the code and think it has something to do with the plugin loader though i cannot seem to get this to work.

tobiasherzke
Posts: 119
Joined: Mon Jun 24, 2019 12:51 pm

Re: Plugins not prepared while trying to load the node red example

Post by tobiasherzke » Mon Nov 09, 2020 8:14 pm

This seems to use a self-compiled version of openMHA, branch development. (1) What is the output of "git status"? (2) Does "make test" succeed? (2a) If not, what is the error message?

sjihdazi
Posts: 4
Joined: Mon Nov 09, 2020 12:49 pm

Re: Plugins not prepared while trying to load the node red example

Post by sjihdazi » Tue Nov 10, 2020 9:33 am

You are correct this is a self compiled version.
Screenshot 2020-11-10 102957.png
Screenshot 2020-11-10 102957.png (62.72 KiB) Viewed 29113 times
This is the output when i use the git status command in the mha directory.
Screenshot 2020-11-10 103030.png
Screenshot 2020-11-10 103030.png (78.09 KiB) Viewed 29113 times
This is the error i get when i use the make test command.

paulmaanen
Posts: 8
Joined: Fri Jul 19, 2019 9:10 am

Re: Plugins not prepared while trying to load the node red example

Post by paulmaanen » Tue Nov 10, 2020 6:02 pm

This is the error i get when i use the make test command.
This means something is probably wrong with the permissions in your working copy of openMHA.
Please provide the output of "ls -l ~/openMHA".

The output of git status show that you modified node-red-gui-demo.cfg. Please provide the contents of this file if possible. I can not reproduce the error with the released version of the file. The error you are getting hints that something is 'off' with your installation. Can you try to install the released openMHA package according to https://github.com/HoerTech-gGmbH/openM ... LLATION.md and try to run your configuration with this version? If the error disappears with the released version, I suggest cleaning your working copy and recompiling.

sjihdazi
Posts: 4
Joined: Mon Nov 09, 2020 12:49 pm

Re: Plugins not prepared while trying to load the node red example

Post by sjihdazi » Wed Nov 11, 2020 8:46 am

Screenshot 2020-11-11 093215.png
Screenshot 2020-11-11 093215.png (96.63 KiB) Viewed 29099 times
This is the output i get when i use the command: ls -l ~/openMHA
Screenshot 2020-11-11 093519.png
Screenshot 2020-11-11 093519.png (5.35 KiB) Viewed 29099 times
Screenshot 2020-11-11 093454.png
Screenshot 2020-11-11 093454.png (4.74 KiB) Viewed 29099 times
These are the changes i made to the node-red-gui-demo.cfg file because i have these values in my setup on jack.
I will await your next awnser before i will try to start over.
Thank you for all the help thusfar by the way.

paulmaanen
Posts: 8
Joined: Fri Jul 19, 2019 9:10 am

Re: Plugins not prepared while trying to load the node red example

Post by paulmaanen » Wed Nov 11, 2020 1:32 pm

Your changes to the .cfg file do not seem critical. I doubt the problems come from there. That your openMHA repository is owned by root however, is suspicious. Does that have a specific reason? There's usually a better way. How do you make sure your mha executable is in the PATH? Do you execute thismha.sh or do you make install?
If there's no reason against it I suggest you change the owner of the openMHA directory to your user (probably pi)

Code: Select all

sudo chown -R pi:pi ~pi/openMHA
then make sure this openMHA installation is the one actually used:

Code: Select all

~/openMHA: . bin/thismha.sh
If some part of the compilation was done as user in a directory owned by root, some files could be missing. Maybe you need to recompile.

paulmaanen
Posts: 8
Joined: Fri Jul 19, 2019 9:10 am

Re: Plugins not prepared while trying to load the node red example

Post by paulmaanen » Wed Nov 11, 2020 2:26 pm

Your changes to the .cfg file do not seem critical.
I have to correct myself. The window length of the FFT must be a multiple by the power of two of the fragsize. Your window length is smaller than the fragsize. I suspect you also did not start a JACK server, right? With no JACK server running and the change to the fragsize I could reproduce the error on my raspberry pi. I have to investigate why you get a seemingly unrelated error message.

paulmaanen
Posts: 8
Joined: Fri Jul 19, 2019 9:10 am

Re: Plugins not prepared while trying to load the node red example

Post by paulmaanen » Wed Nov 11, 2020 3:21 pm

I found the bug in openMHA. An invalid configuration of overlapadd can be silently ignored, aborting the prepare procedure. This causes seemingly unrelated error messages when the framework wants to actually start processing. Thank you for uncovering this bug!
Unfortunately your chosen combination of fragment size, FFT length and window length is still not possible in openMHA. You need to change it to a valid combination.

paulmaanen
Posts: 8
Joined: Fri Jul 19, 2019 9:10 am

Re: Plugins not prepared while trying to load the node red example

Post by paulmaanen » Wed Nov 11, 2020 3:23 pm

PS: make test fails because your openMHA directory is owned by root, but I think this is unrelated to the other problem.

sjihdazi
Posts: 4
Joined: Mon Nov 09, 2020 12:49 pm

Re: Plugins not prepared while trying to load the node red example

Post by sjihdazi » Fri Nov 13, 2020 11:50 am

paulmaanen wrote:
Wed Nov 11, 2020 3:21 pm
Unfortunately your chosen combination of fragment size, FFT length and window length is still not possible in openMHA. You need to change it to a valid combination.
This has solved my my problems with loadign the plugins.
Thanks for all your help!

Post Reply