TEAMuP-dev / HARP

A sample editing application allowing for hosted, asynchronous, remote processing of audio with machine learning by routing through Gradio endpoints.
BSD 3-Clause "New" or "Revised" License
27 stars 1 forks source link

Can't open gradio client because it looks in the wrong directory (Linux) #183

Open NathanPruyne opened 2 months ago

NathanPruyne commented 2 months ago

On Ubuntu 20.04 (via WSL):

After the model list is populated with 16 models, trying to load a 17th model causes HARP to attempt to get the gradiojuce_client executable from ~/HARP_artefacts/Debug/Resources/gradiojuce_client/gradiojuce_client, not ./HARP_artefacts/Debug/Resources/gradiojuce_client/gradiojuce_client.

Only occurring on Linux, not Windows.

bryan-pardo commented 2 months ago

Nathan just got this same issue on the very first model he tried to load.

NathanPruyne commented 2 months ago

Occurred again without the list being populated with 16 models, unclear what is this causing this as of right now. Should be related to

scriptPath = juce::File::getSpecialLocation(
          juce::File::currentApplicationFile
      ).getParentDirectory().getChildFile("Resources/gradiojuce_client/gradiojuce_client");
      prefix_cmd = "";

(lines 99-102 in WebModel.h)

NathanPruyne commented 3 weeks ago

This disappeared for a while so I wasn't worrying too much about it, but I've had it pop up a couple more times again now. It does indeed have to do with the gradiojuce_client executable not being found properly, as I get JUCE Assertion failure in juce_posix_SharedCode.h:1103, which is this. I haven't found a specific set of circumstances in which this happens with certainty yet.