ReaCoMa / ReaCoMa-2.0

ReaCoMa 2.0
GNU General Public License v3.0
37 stars 2 forks source link

Error when running script #22

Closed blazpavlica closed 4 months ago

blazpavlica commented 1 year ago

I used the scripts a few months ago, today when I run, I get this error:

D:\RIP\medvešček\A1-001-glued piščal pekli-glued_nmf_214538903009241.wav failed to be made by the command line.
stack traceback:
    D:\RIP\ReaCoMa 2.0\lib/utils.lua:122: in function 'utils.assert'
    D:\RIP\ReaCoMa 2.0\lib/layers.lua:13: in function 'layers.exist'
    D:\RIP\ReaCoMa 2.0\lib/layers.lua:43: in function 'layers.process_all_items'
    D:\RIP\ReaCoMa 2.0\lib/algorithms/nmf.lua:38: in function 'algorithms/nmf.perform_update'
    D:\RIP\ReaCoMa 2.0\lib/imgui_helpers.lua:94: in function 'imgui_helpers.process'
    D:\RIP\ReaCoMa 2.0\lib/imgui_wrapper.lua:31: in function 'imgui_wrapper.loop'
    D:\RIP\ReaCoMa 2.0\lib/imgui_wrapper.lua:110: in function <D:\RIP\ReaCoMa 2.0\lib/imgui_wrapper.lua:109>
jamesb93 commented 1 year ago

Which version are you using?

blazpavlica commented 1 year ago

Hi, it was version 2. Now I downloaded the latest release and updated Reaper. Now I get a different error: D:\RIP\ReaCoMa 2.0\lib/utils.lua:16: attempt to index a nil value (field 'debug')

D:\RIP\medvešček\A1-001-glued_nmf_215533437567841.wav failed to be made by the command line.

The most recent CLI call was:

"D:\RIP\ReaCoMa 2.0\bin/fluid-nmf" -source "D:\RIP\medvešček\A1-001-glued.wav" -resynth "D:\RIP\medvešček\A1-001-glued_nmf_215533437567841.wav" -resynthmode 1 -iterations 253 -components 2 -fftsettings 1024 512 1024 -1 -numframes 1181711 -startframe 32422172

Does this help?

jamesb93 commented 1 year ago

A little! What is the "latest"? Which release?

blazpavlica commented 1 year ago

ReaCoMa: 2.9.0, Reaper: 6.81 Let me know if you need any other test.

jamesb93 commented 1 year ago

Then it seems you found a bug :)

I have a few features in the works anyway and I've been hankering to make a release. If I give you a pre-release beta can you take it for a spin for me? Should be in the next day, maybe this evening Berlin time?

blazpavlica commented 1 year ago

Sure, happy to help. :)

jamesb93 commented 1 year ago

https://github.com/ReaCoMa/ReaCoMa-2.0/releases/tag/2.10

Can you try this one for me @blazpavlica?

blazpavlica commented 1 year ago

I ran it and I get this:

configuration.lua:8: cannot open file 'C:\Users\Blazen\AppData\Roaming\REAPER/Scripts/reacoma.ini' (No such file or directory)

Did I forget to install something?

jamesb93 commented 1 year ago

No you found an oversight by me. I've changed to making it possible to use a .ini file to configure reacoma going forward, but it shouldn't bail if it doesn't exist and should gracefully continue. I'll fix this now...

jamesb93 commented 1 year ago

Can you try this new build? Same tag / version but I updated that function.

https://github.com/ReaCoMa/ReaCoMa-2.0/releases/tag/2.10

blazpavlica commented 1 year ago

It's now showing the original error again:

D:\RIP\medvešček\A1-001-glued_nmf_2947728185151.wav failed to be made by the command line.

The most recent CLI call was:

"D:\RIP\ReaCoMa 2.0\bin/fluid-nmf" -source "D:\RIP\medvešček\A1-001-glued.wav" -resynth "D:\RIP\medvešček\A1-001-glued_nmf_2947728185151.wav" -resynthmode 1 -iterations 100 -components 2 -fftsettings 1024 512 1024 -1 -numframes 1181711 -startframe 32422172

stack traceback:
    D:\RIP\ReaCoMa 2.0\lib/utils.lua:96: in function 'utils.assert'
    D:\RIP\ReaCoMa 2.0\lib/layers.lua:10: in function 'layers.output_exists'
    D:\RIP\ReaCoMa 2.0\lib/layers.lua:16: in function 'layers.exist'
    D:\RIP\ReaCoMa 2.0\lib/layers.lua:38: in function 'layers.process_all_items'
    D:\RIP\ReaCoMa 2.0\lib/algorithms/nmf.lua:36: in function 'algorithms/nmf.perform_update'
    D:\RIP\ReaCoMa 2.0\lib/imgui/helpers.lua:96: in function 'imgui/helpers.process'
    D:\RIP\ReaCoMa 2.0\lib/imgui/wrapper.lua:26: in function 'imgui/wrapper.loop'
    D:\RIP\ReaCoMa 2.0\lib/imgui/wrapper.lua:115: in function <D:\RIP\ReaCoMa 2.0\lib/imgui/wrapper.lua:114>
jamesb93 commented 1 year ago

Okay. This is actually a good thing because we are now at a state where the problem is only a few things.

The failure to create the output file can be a number of things. The best way to test is for you to supply me with the file and see if it works here. That will tell us where the problem exists.

blazpavlica commented 1 year ago

Hey, sorry for late response, here is the file: https://we.tl/t-BAOqMEKIzC

To be sure, I checked in another project with two other files and it worked. So it is only this file.

jamesb93 commented 4 months ago

If you're still encountering this issue let me know and we can try to fix. Otherwise going to close this. Sorry we couldn't resolve it but I was unable to diagnose it locally.

blazERpavlica commented 4 months ago

Hi, I have encountered the problem once again a while ago and I was able to solve it by encoding the wav with different bit rate and other settings. I didn't go deep into it to see which settings worked and which don't, I just used whatever worked. Sorry I forgot to report.

jamesb93 commented 4 months ago

Thanks! Maybe the WAV reading in the underlying HISSTools library faced a very ambiguous format. This sometimes happens with WAV that extends the header format arbitrarily.