OpenCL Error

Use this forum for general user support and related questions.
Post Reply
CodeHD
Posts: 314
Joined: Tue Dec 11, 2018 12:38 pm
Location: Germany

OpenCL Error

Post by CodeHD » Fri Jul 31, 2020 4:07 pm

Using yesterday's daily build of BlendLuxCore on Win10.

I just had an error with OpenCL trying to render an animation.

It ran fine for 57 frames, then aborted on frame 58. Only rotating objects in the scene, no light changes etc.

error below, full console output for frame 58 attached.
Won't be relevant for me (I hope) since I'm trying to switch to Optix, but perhaps you still need to fix it for others.

Blend-file is quite large, let me know if you need it for testing.

Code: Select all

Traceback (most recent call last):
  File "C:\Users\johannes\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\BlendLuxCore-daily\engine\base.py", line 86, in render_final
    final.render(self, depsgraph)
  File "C:\Users\johannes\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\BlendLuxCore-daily\engine\final.py", line 48, in render
    _render_layer(engine, depsgraph, statistics, layer)
  File "C:\Users\johannes\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\BlendLuxCore-daily\engine\final.py", line 153, in _render_layer
    engine.framebuffer.draw(engine, engine.session, depsgraph.scene, render_stopped=False)
  File "C:\Users\johannes\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\BlendLuxCore-daily\draw\final.py", line 71, in draw
    self._width, self._height, combined.as_pointer(), False, True)
RuntimeError: OpenCL driver API error (code: -4, file:D:\a\1\Luxcore\src\luxrays\devices\ocldevice.cpp, line: 313): CL_MEM_OBJECT_ALLOCATION_FAILURE

ERROR: OpenCL driver API error (code: -4, file:D:\a\1\Luxcore\src\luxrays\devices\ocldevice.cpp, line: 313): CL_MEM_OBJECT_ALLOCATION_FAILURE

[LuxCore][3272.657] [GeForce RTX 2070 OpenCLIntersect] Memory used for hardware image pipeline: 56700Kbytes
Error: OpenCL driver API error (code: -4, file:D:\a\1\Luxcore\src\luxrays\devices\ocldevice.cpp, line: 313): CL_MEM_OBJECT_ALLOCATION_FAILURE

User avatar
Dade
Developer
Posts: 4484
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: OpenCL Error

Post by Dade » Fri Jul 31, 2020 4:28 pm

It looks like a memory leak, can you check the system reported amount of GPU memory during the renderings.
Support LuxCoreRender project with salts and bounties

CodeHD
Posts: 314
Joined: Tue Dec 11, 2018 12:38 pm
Location: Germany

Re: OpenCL Error

Post by CodeHD » Fri Jul 31, 2020 4:44 pm

Indeed, there is about a 100MB increase per frame, at 1920x1080 resolution.

CodeHD
Posts: 314
Joined: Tue Dec 11, 2018 12:38 pm
Location: Germany

Re: OpenCL Error

Post by CodeHD » Fri Jul 31, 2020 4:58 pm

The problem seems to be gone with Optix enabled.

Post Reply