-
Notifications
You must be signed in to change notification settings - Fork 942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apple Silicon : macOS 14 - error: ANEProgramProcessRequestDirect() #192
Comments
The "leaked semaphore" seems to be a generic warning when python crashes because of memory issues. The smaller print that you copied above that is the real error, but I'm in the dark as to what it means. |
Hi @criskb, couple of notes:
|
@atiorh Just edited the (webui-macos-env.sh) to contain --no-half under commandline_args im using https://github.com/brkirch/stable-diffusion-webui fork but I was able to make this work on the main project on automatic1111 page too |
Automatic1111 does not use any of the CoreML python packages, so this is really the wrong place to be discussing this, but I have been using these command arguments for a while, with both the brkirch build and the main branch:
I also use only FP16 models. No FP32 models. On my laptop, the generation speed running the current main branch is almost the same as using an efficient Swift app that does use CoreML. Recently, the brkirch build has been running noticeably slower for me than the main branch. It needs a new build, or perhaps all his newest optimizations are already merged into main and his experiments are finished. I am still on macOS 13.5 beta. I have not tried Automatic1111 with the macOS 14 beta yet. I don't know if there are any important changes there in the MPS backend that Automatic1111 does use. |
Im running latest macOS 14 beta
Apple M1 Mini
16GB
Getting this error and crash if I try to generate something
/AppleInternal/Library/BuildRoots/1a7a4148-f669-11ed-9d56-f6357a1003e8/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShadersGraph/mpsgraph/MetalPerformanceShadersGraph/Runtimes/MPSRuntime/Operations/GPUANERegionOps.mm:332: failed assertion `ANE Evaluation Error = Error Domain=com.apple.appleneuralengine Code=3 "processRequest:model:qos:qIndex:modelStringID:options:error:: ANEProgramProcessRequestDirect() Failed with status=0xf : statusType=0x9: Program Inference timeout: timed out" UserInfo={NSLocalizedDescription=processRequest:model:qos:qIndex:modelStringID:options:error:: ANEProgramProcessRequestDirect() Failed with status=0xf : statusType=0x9: Program Inference timeout: timed out}'
[2] 24037 abort ./webui.sh
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
(--no-half) seems to work for now but im getting worse speeds with this enabled
The text was updated successfully, but these errors were encountered: