sergree / matchering

🎚️ Open Source Audio Matching and Mastering
https://pypi.org/project/matchering/
GNU General Public License v3.0
1.29k stars 151 forks source link

Apple M1 - Getting an "Unknown Error" #46

Open theaor opened 1 year ago

theaor commented 1 year ago

M1 Mac Mini running OSX 11.5.2, latest version of Matchering, and Docker 4.15.0. Getting an "Unknown Error" after Matchering performs its analysis steps. This was working at one point, but for some reason now I can't get any set of files to complete. Works perfectly on my other Mac, which is a Macbook Pro Retina 2016, running OSX 10.14 (same version of Matchering and Docker). Are there any troubleshooting steps I should attempt? Thank you!

sergree commented 1 year ago

Hey, @theaor. Thank you for reporting this issue. It looks like one of the dependencies is not supported on Apple Silicon, or something like that.. I'm unlikely to be able to figure this out, since I don't own an M1 device.

What can I recommend:

A) Try to find more specific error, please run this command in the Terminal:

Probably more specific reasons for the error will be indicated there

B) Please make sure that more than 4 GB of memory is available to the Docker https://github.com/sergree/matchering/blob/master/DOCKER_MACOS.md

C) Try to increase RAM even more (maybe on M1 numpy/scipy algorithms are not so optimized and more memory is needed, just a guess..)

D) Try to downgrade to matchering-web 0.1.6 Run these Terminal commands in a row:

Try again at http://127.0.0.1:8360

That's all I can think of at the moment.

theaor commented 1 year ago

I decided to completely remove the container, image, etc. Re-installed docker and Matchering and tried again and it worked once, but then stopped after when attempted a second time. I've attached the logs, but still looking through them myself. Going to run through your other recommended steps as well. Thank you!!!

2022-12-30 Docker Logs.txt

sergree commented 1 year ago

Thanks for the logs, yep, the reason for the error is not clear from them.

It is very strange that one session is successful.

I have an opinion that this may be related to the Docker problem itself. Something like this https://github.com/docker/for-mac/issues/6219

To the previous items, I can add this

E) Try to run Matchering without "Docker Volume" Run these Terminal commands in a row:

sergree commented 1 year ago

F) Check: Docker Settings -> Resources -> Advanced -> Disk Image Size It should be more than 10 GB+