Hi!
Please help!
BlendLuxCore suddenly stopped working.
I keep getting the following error message:
OpenCL driver API error (code: -30, file:/Users/runner/work/LuxCore/LuxCore/src/luxrays/utils/ocl.cpp, line: 372): CL_INVALID_VALUE
I am using Blender 4.5.3 on a Macbook Pro M3 (worked without any issues a few weeks ago).
I tried BlendLuxCore 2.10.1 and 2.10.2, still getting the same error.
The only thing that might have changed is my MacOS version.
I have updated from MacOS Tahoe 26.0 to 26.1 recently.
Any ideas?
Thank you very much in advance!
OpenCL driver API error code: -30
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Re: OpenCL driver API error code: -30
Solved (at least temporarily).
Go to Edit - Preferences - Add-ons - BlendLuxCore - Preferences - choose CPU as Film Device.
I still hope LuxCoreRender will support Metal someday.
Go to Edit - Preferences - Add-ons - BlendLuxCore - Preferences - choose CPU as Film Device.
I still hope LuxCoreRender will support Metal someday.
-
epilectrolytics
- Donor

- Posts: 818
- Joined: Thu Oct 04, 2018 6:06 am
Re: OpenCL driver API error code: -30
When updating MacOS you might have to delete (user)/luxcorerender.org/ocl_kernel_cache folder before starting LuxCore.
A Metal version would be great indeed.
A Metal version would be great indeed.
Re: OpenCL driver API error code: -30
Thank you!
Deleting the cache folder solved the problem as well
Deleting the cache folder solved the problem as well
Re: OpenCL driver API error code: -30
Yes, that error is just MacOS and OpenCL being picky. When you update MacOS, the old ocl_kernel_cache can become invalid and give you that "CL_INVALID_VALUE" (-30) error. When you delete the cache folder, it resets it so that LuxCore can compile new kernels without any problems. That's pretty much the only way to fix it until they get proper Metal support. If you get the error in the middle of a project, switching to CPU rendering is also a safe option.