OpenUtau icon indicating copy to clipboard operation
OpenUtau copied to clipboard

Moresampler not working despite following tutorials and previous advice

Open thr0waway89 opened this issue 8 months ago • 8 comments

Acknowledgement

  • [x] I have read Getting-Started and FAQ

🐛 Describe the bug

Hi, I added Moresampler to OpenUtau because my UTAU's vocals would make static-like noises with specific syllables. But, after following some tutorials and working through some crashes, I managed to add it on.

Here's the kicker though! It would end up showing a "Failed to Render" error instead. Also, I do not know how to fix it or could find anything to fix it. I did look on a similar issue for this and the same error popped up yet again.

I will appreciate the feedback.

Explains how to reproduce the bug

I followed this tutorial, so it would give you some assistance as well! I'm an Intel Mac user, by the way: Click here. I did everything that told me, but it didn't say anything about errors like it failing to render at all.

I did then look at this issue and removed it as a Wavtool by throwing the files into the bin. But now it shows up with another "Failed to Render" error.

OS & Version

Intel macOS 10.15.7 and version 1.547 of OpenUtau

Logs

Failed to render

An error occurred trying to start process '/Users/user/Library/OpenUtau/Resamplers/moresampler.sh' with working directory '/'. No such file or directory

System.AggregateException: One or more errors occurred. (An error occurred trying to start process '/Users/user/Library/OpenUtau/Resamplers/moresampler.sh' with working directory '/'. No such file or directory) (An error occurred trying to start process '/Users/user/Library/OpenUtau/Resamplers/moresampler.sh' with working directory '/'. No such file or directory) ---> System.ComponentModel.Win32Exception (2): An error occurred trying to start process '/Users/user/Library/OpenUtau/Resamplers/moresampler.sh' with working directory '/'. No such file or directory at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at OpenUtau.Core.Util.ProcessRunner.Run(String file, String args, ILogger logger, String workDir, Int32 timeoutMs) in /Users/runner/work/OpenUtau/OpenUtau/OpenUtau.Core/Util/ProcessRunner.cs:line 35 at OpenUtau.Classic.ExeResampler.DoResamplerReturnsFile(ResamplerItem args, ILogger logger) in /Users/runner/work/OpenUtau/OpenUtau/OpenUtau.Core/Classic/ExeResampler.cs:line 98 at OpenUtau.Classic.ClassicRenderer.<>c__DisplayClass8_0.<RenderInternal>b__1(ResamplerItem item) in /Users/runner/work/OpenUtau/OpenUtau/OpenUtau.Core/Classic/ClassicRenderer.cs:line 83 at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) at System.Threading.Tasks.TaskReplicator.Replica.Execute() --- End of inner exception stack trace --- ---> (Inner Exception #1) System.ComponentModel.Win32Exception (2): An error occurred trying to start process '/Users/user/Library/OpenUtau/Resamplers/moresampler.sh' with working directory '/'. No such file or directory at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at OpenUtau.Core.Util.ProcessRunner.Run(String file, String args, ILogger logger, String workDir, Int32 timeoutMs) in /Users/runner/work/OpenUtau/OpenUtau/OpenUtau.Core/Util/ProcessRunner.cs:line 35 at OpenUtau.Classic.ExeResampler.DoResamplerReturnsFile(ResamplerItem args, ILogger logger) in /Users/runner/work/OpenUtau/OpenUtau/OpenUtau.Core/Classic/ExeResampler.cs:line 98 at OpenUtau.Classic.ClassicRenderer.<>c__DisplayClass8_0.<RenderInternal>b__1(ResamplerItem item) in /Users/runner/work/OpenUtau/OpenUtau/OpenUtau.Core/Classic/ClassicRenderer.cs:line 83 at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) at System.Threading.Tasks.TaskReplicator.Replica.Execute()<---

0.1.547.0

thr0waway89 avatar Apr 20 '25 09:04 thr0waway89

Are you able to share your moresampler.sh?

BagelHero avatar Apr 22 '25 09:04 BagelHero

Yeah sure. Here is the code of the .sh file:

#!/bin/sh
RELPATH="/Users/user/Library/OpenUtau/Resamplers/moresampler.exe"

ABSPATH=$(cd "$(dirname "$0")"; pwd -P)
ABSPATH="$ABSPATH/$RELPATH"
if [[ ! -x "$ABSPATH" ]]
then
    chmod +x "$ABSPATH"
fi
exec /usr/local/bin/wine64 "$ABSPATH" "$@"

thr0waway89 avatar Apr 22 '25 12:04 thr0waway89

RELPATH means that the path starts in ("is relative to") your Resamplers folder already, meaning that right now the path it's trying to search for moresampler in is something like: /Users/user/Library/OpenUtau/Resamplers/Users/user/Library/OpenUtau/Resamplers/moresampler.exe First place to start would be reverting that to just moresampler.exe. If this doesn't fix the issue, open terminal and run which wine to make sure your version of wine is both correct and that this is the correct path.

BagelHero avatar Apr 22 '25 22:04 BagelHero

Here's the moresampler.sh file now:

#!/bin/sh
RELPATH="moresampler.exe"

ABSPATH=$(cd "$(dirname "$0")"; pwd -P)
ABSPATH="$ABSPATH/$RELPATH"
if [[ ! -x "$ABSPATH" ]]
then
    chmod +x "$ABSPATH"
fi
exec /usr/local/bin/wine "$ABSPATH" "$@"

I did revert the RELPATH back to just moresampler.exe, but it sadly didn't work. And, I did do the terminal which wine as well, but that didn't work either.

Here's the error when I try to use moresampler now:

Failed to render

An error occurred trying to start process '/Users/user/Library/OpenUtau/Resamplers/moresampler.sh' with working directory '/'. No such file or directory

System.AggregateException: One or more errors occurred. (An error occurred trying to start process '/Users/user/Library/OpenUtau/Resamplers/moresampler.sh' with working directory '/'. No such file or directory)
 ---> System.ComponentModel.Win32Exception (2): An error occurred trying to start process '/Users/user/Library/OpenUtau/Resamplers/moresampler.sh' with working directory '/'. No such file or directory
   at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at OpenUtau.Core.Util.ProcessRunner.Run(String file, String args, ILogger logger, String workDir, Int32 timeoutMs) in /Users/runner/work/OpenUtau/OpenUtau/OpenUtau.Core/Util/ProcessRunner.cs:line 35
   at OpenUtau.Classic.ExeResampler.DoResamplerReturnsFile(ResamplerItem args, ILogger logger) in /Users/runner/work/OpenUtau/OpenUtau/OpenUtau.Core/Classic/ExeResampler.cs:line 98
   at OpenUtau.Classic.ClassicRenderer.<>c__DisplayClass8_0.<RenderInternal>b__1(ResamplerItem item) in /Users/runner/work/OpenUtau/OpenUtau/OpenUtau.Core/Classic/ClassicRenderer.cs:line 72
   at System.Threading.Tasks.Parallel.<>c__DisplayClass33_0`2.<ForEachWorker>b__0(Int32 i)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`1.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`1.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
   at System.Threading.Tasks.TaskReplicator.Replica.Execute()
   --- End of inner exception stack trace ---

0.1.547.0

This happens with every UTAU I use too, not just with one.

Here's the Terminal Log for when I put in the which wine command, hopefully that'll help:

Users-iMac% which wine
/usr/local/bin/wine

thr0waway89 avatar Apr 23 '25 08:04 thr0waway89

Hmm. Are you able to share the contents of your resamplers folder? The wine version should be okay, so now we're looking at resolving that pathing issue....

BagelHero avatar Apr 23 '25 09:04 BagelHero

The only files I have are the moreconfig.txt, moresampler.sh and moresampler.exe.

I'm unable to upload the .exe and .sh files because of GitHub's comment restrictions, but I could show you the code for the .sh file.

Here's the files down here: moreconfig.txt download

moresampler.sh:

#!/bin/sh
RELPATH="moresampler.exe"

ABSPATH=$(cd "$(dirname "$0")"; pwd -P)
ABSPATH="$ABSPATH/$RELPATH"
if [[ ! -x "$ABSPATH" ]]
then
    chmod +x "$ABSPATH"
fi
exec /usr/local/bin/wine "$ABSPATH" "$@"

thr0waway89 avatar Apr 23 '25 11:04 thr0waway89

Sorry for the delay, I meant a screenshot of the folder actually! I wanted to make sure the .exe and .sh were in the same folder (seems right) and that there wasn't any other subfolders in there (it's common to leave the moresampler.exe in a subfolder)

Right now, i would suggest making sure resampler-compatibility is set to "on" in the moreconfig, and then assuring you've cleared the cache under the Tools > Clear Cache (XXMB) menu options

BagelHero avatar Apr 24 '25 17:04 BagelHero

It's okay. I redid the tutorial again by deleting all the moresampler files and I managed to get it working! Thanks for your help though, I appreciate it.

thr0waway89 avatar Apr 26 '25 08:04 thr0waway89

This issue is stale because it has been open for 60 days with no activity. It will be closed if no further activity occurs. Thank you.

github-actions[bot] avatar Jun 26 '25 02:06 github-actions[bot]