macOS 10.15 Catalina

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Post Reply
plasmapeppers
Posts: 6
Joined: Sat Jun 22, 2019 5:50 pm

macOS 10.15 Catalina

Post by plasmapeppers »

Running LuxCoreRender 2.1 in either viewport or as final with OpenCL will either freeze or crash, respectively. Here is the trace for the thread that crashed:

Thread 51 Crashed:: Dispatch queue: opencl_runtime
0 libsystem_kernel.dylib 0x00007fff674655be __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff67522738 pthread_kill + 203
2 libsystem_c.dylib 0x00007fff673edaf6 __abort + 139
3 libsystem_c.dylib 0x00007fff673eda6b abort + 135
4 libGPUSupportMercury.dylib 0x00007fff50de50a6 gpusGenerateCrashLog.cold.1 + 94
5 libGPUSupportMercury.dylib 0x00007fff50ddc1e7 gpusGenerateCrashLog + 89
6 com.apple.driver.AppleIntelKBLGraphicsGLDriver 0x00007fff2939bd00 gpusKillClientExt + 9
7 libGPUSupportMercury.dylib 0x00007fff50ddcb8f gpusQueueSubmitDataBuffers + 159
8 com.apple.driver.AppleIntelKBLGraphicsGLDriver 0x00007fff28976fb0 IntelCLCommandBuffer::getNew(GLDQueueRec*) + 30
9 com.apple.driver.AppleIntelKBLGraphicsGLDriver 0x00007fff28976eb3 intelSubmitCLCommands(GLDQueueRec*, unsigned int) + 69
10 com.apple.driver.AppleIntelKBLGraphicsGLDriver 0x00007fff28976e00 CHAL_INTEL::ChalContext::ChalFlush() + 82
11 com.apple.driver.AppleIntelKBLGraphicsGLDriver 0x00007fff28976d71 gldFinishQueue + 43
12 com.apple.opencl 0x00007fff39cab622 0x7fff39c95000 + 91682
13 com.apple.opencl 0x00007fff39cc1d7f 0x7fff39c95000 + 183679
14 libdispatch.dylib 0x00007fff672c65fe _dispatch_client_callout + 8
15 libdispatch.dylib 0x00007fff672d29e6 _dispatch_sync_invoke_and_complete_recurse + 65
16 libdispatch.dylib 0x00007fff672d2559 _dispatch_sync_f_slow + 195
17 com.apple.opencl 0x00007fff39c9abf5 clFinish + 80
18 pyluxcore.so 0x000000014ce8fe9a slg::PathOCLOpenCLRenderThread::RenderThreadImpl() + 1370
19 pyluxcore.so 0x000000014cd2497c boost::(anonymous namespace)::thread_proxy(void*) + 156
20 libsystem_pthread.dylib 0x00007fff67522daa _pthread_start + 125
21 libsystem_pthread.dylib 0x00007fff6751f6af thread_start + 15

It appears to be scene-independent. However, LuxMark does still work.

Hardware:
Mac mini 2018 i7-8700B 32GB
Razer Core X with AMD Radeon VII
macOS 10.15 Developer Beta 2
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: macOS 10.15 Catalina

Post by Dade »

plasmapeppers wrote: Sat Jun 22, 2019 5:57 pm 8 com.apple.driver.AppleIntelKBLGraphicsGLDriver 0x00007fff28976fb0 IntelCLCommandBuffer::getNew(GLDQueueRec*) + 30
Does LuxMark show 2xGPUs ? One from AMD and one from Intel ? Intel driver/hardware is not able to run any complex OpenCL kernel, try to use only the AMD GPU.
Support LuxCoreRender project with salts and bounties
plasmapeppers
Posts: 6
Joined: Sat Jun 22, 2019 5:50 pm

Re: macOS 10.15 Catalina

Post by plasmapeppers »

Ah yes the Intel GPU. Forgot about that, might be worthwhile to just not show it as an option, or leave it as a default of unchecked. Fixed the crashes actually, probably Apple transitioning to A-series forgot about the good old Intel Integrated. It wouldn't be the first issue I've come across with it and Catalina. However, viewports still freeze badly. Running Blender from Terminal shows that it stops in LuxRays, I don't know if this is related to the fix in 2.2b2 for the other systems.

[LuxRays][17.210] [Device AMD Radeon VII Compute Engine Intersect] Light offsets (Part I) buffer size: 4bytes
[LuxRays][17.210] [Device AMD Radeon VII Compute Engine Intersect] Env. light distributions buffer size: 1028Kbytes
[LuxRays][17.210] [Device AMD Radeon VII Compute Engine Intersect] LightsDistribution buffer size: 24bytes
[LuxRays][17.211] [Device AMD Radeon VII Compute Engine Intersect] InfiniteLightSourcesDistribution buffer size: 24bytes
[LuxRays][17.229] [Device AMD Radeon VII Compute Engine Intersect] Ray buffer size: 633216Kbytes
[LuxRays][17.229] [Device AMD Radeon VII Compute Engine Intersect] RayHit buffer size: 263840Kbytes
[LuxCore][17.229] [PathOCLBaseRenderThread::0] Size of a GPUTask: 448bytes

After using Force Quit on Blender it adds this, though I don't know if that's a useful exit code?

Terminated: 15

Posted too fast! Got some more info out of the Terminal with some different attempts to start it:
[LuxCore][643.359] [PathOCLBaseRenderThread::0] Size of a GPUTask: 448bytes
Traceback (most recent call last):
File "/Users//Library/Application Support/Blender/2.79/scripts/addons/BlendLuxCore/engine/__init__.py", line 114, in view_update
viewport.view_update(self, context)
File "/Users//Library/Application Support/Blender/2.79/scripts/addons/BlendLuxCore/engine/viewport.py", line 44, in view_update
engine.session = engine.exporter.update(context, engine.session, changes)
File "/Users//Library/Application Support/Blender/2.79/scripts/addons/BlendLuxCore/export/__init__.py", line 259, in update
session = self._update_config(session, self.config_cache.props)
File "/Users//Library/Application Support/Blender/2.79/scripts/addons/BlendLuxCore/export/__init__.py", line 359, in _update_config
session.Start()
RuntimeError: The GPUTask buffer is too big for AMD Radeon VII Compute Engine Intersect device (i.e. CL_DEVICE_MAX_MEM_ALLOC_SIZE=4290772992): try to reduce related parameters

Nothing should be too big for the VII's 16GB of HBM2. Unless it's gigantic. But I assure you that my scene is not too big.
Last edited by plasmapeppers on Mon Jun 24, 2019 4:23 pm, edited 1 time in total.
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: macOS 10.15 Catalina

Post by B.Y.O.B. »

plasmapeppers wrote: Sat Jun 22, 2019 8:42 pm might be worthwhile to just not show it as an option, or leave it as a default of unchecked.
I have this on my todo list: https://github.com/LuxCoreRender/BlendL ... issues/262
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: macOS 10.15 Catalina

Post by Dade »

plasmapeppers wrote: Sat Jun 22, 2019 8:42 pm RuntimeError: The GPUTask buffer is too big for AMD Radeon VII Compute Engine Intersect device (i.e. CL_DEVICE_MAX_MEM_ALLOC_SIZE=4290772992): try to reduce related parameters

Nothing should be too big for the VII's 16GB of HBM2. Unless it's gigantic. But I assure you that my scene is not too big.
Are you using a very high max. path depth ?

The error says it can not allocate more than 4GB of continuous memory (some old AMD GPU had a limit of 256MB, I guess the Radeon VII has a limit of 4GB=2^32). This usually happen if you use some "over the top" rendering setting like the max. path depth.
Support LuxCoreRender project with salts and bounties
plasmapeppers
Posts: 6
Joined: Sat Jun 22, 2019 5:50 pm

Re: macOS 10.15 Catalina

Post by plasmapeppers »

Unfortunately this is with the default settings.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: macOS 10.15 Catalina

Post by Dade »

Can you post a complete rendering log ?
Support LuxCoreRender project with salts and bounties
Post Reply