Page 1 of 1

Plugins not prepared while trying to load the node red example

Posted: Mon Nov 09, 2020 1:03 pm
by sjihdazi
Picture1.png
Picture1.png (170.47 KiB) Viewed 4413 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.

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

Posted: Mon Nov 09, 2020 8:14 pm
by tobiasherzke
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?

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

Posted: Tue Nov 10, 2020 9:33 am
by sjihdazi
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 4409 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 4409 times
This is the error i get when i use the make test command.

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

Posted: Tue Nov 10, 2020 6:02 pm
by paulmaanen
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.

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

Posted: Wed Nov 11, 2020 8:46 am
by sjihdazi
Screenshot 2020-11-11 093215.png
Screenshot 2020-11-11 093215.png (96.63 KiB) Viewed 4395 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 4395 times
Screenshot 2020-11-11 093454.png
Screenshot 2020-11-11 093454.png (4.74 KiB) Viewed 4395 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.

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

Posted: Wed Nov 11, 2020 1:32 pm
by paulmaanen
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.

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

Posted: Wed Nov 11, 2020 2:26 pm
by paulmaanen
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.

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

Posted: Wed Nov 11, 2020 3:21 pm
by paulmaanen
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.

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

Posted: Wed Nov 11, 2020 3:23 pm
by paulmaanen
PS: make test fails because your openMHA directory is owned by root, but I think this is unrelated to the other problem.

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

Posted: Fri Nov 13, 2020 11:50 am
by sjihdazi
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!