Search Issue Tracker

Fixed in 2019.1

Fixed in 2018.3

Votes

4

Found in

2018.3.0b3

Issue ID

1083099

Regression

No

[GPU PLM] Fallback from GPU to CPU lightmapper in CL_PROFILING_INFO_NOT_AVAILABLE when baking with GPU Lightmapper

Global Illumination

-

Prerequisites:
You'll need the Labs Shadowmask project: https://ono.unity3d.com/test-data/gi-tests/LabsShadowmask

Steps to repro:
1. Open attached project and 'TheLabs_Shadowmask' scene;
2. In the Lighting window select 'Progressive GPU' lightmapper;
3. In the Lighting window click on 'Generate Ligthing' button.

Expected result:
Baking on GPU is executed without falling back to CPU Lightmapper or asserts.

Actual result:
Lightmapper backend falls back to CPU Lightmapper. The fallback is accompanied with the following errors:

'OpenCL Error. Falling back to CPU lightmapper. Error callback from context: CL_PROFILING_INFO_NOT_AVAILABLE'

and

`Assertion failed on expression: 'IsCLEventCompleted(events->m_StartMarker, isStartEventAnError)'`.
See attached video and actual.png screenshot.

Notes:
- Reproducible in 2019.1.0a1, 2018.3.0b3, 2018.3.0b2, 2018.3.0b1. ;
- Not reproducible in 2018.3.0a11;
- Reproducible when baking GeForce GTX 1070 and GeForce 640M; not reproducible on GeForce GTX 1080.
- Reproducible on Windows 10;
- Assert in IsCLEventCompleted might not be directly related to the fallback to CPU LM bug;
- The issue also happens in the new project with cubes and planes;
- The bug might not happen every time; if it doesn't try reloading Editor, cleaning GI cache/baked data and rebaking. Additionally, bake several time with changing light settings (Mixed>Baked) and move the viewport while baking.

  1. Response avatar

    Resolution Note (fix version 2019.1):

    Verified in 2019.1.0a6 (370df4c90d4b) and in 2018.3.0b7 (af029f4527e0) with using GeForce GTX1070 and GeForce 640m GPUs.

Comments (16)

  1. C71f463c43919910dcdc331ee42c8925?d=mm

    marcfawsitt

    May 16, 2020 08:03

    @ARYSSA thank you...holy crap i couldn't figure out why it kept going back to cpu and un clicking Prioritize view worked 100% for me. awesome

  2. Fc6796be83022f042a0ecc2e59f003ff?d=mm

    neighborlee

    May 09, 2020 12:40

    Still here in 2019.3.13f1, Windows 10 GTX 950 2gb 8gb ram i5-3570

  3. 7a17445c0756e8e75131791aa4a1da90?d=mm

    Lauris48

    Mar 03, 2020 10:18

    Same here in Unity 2019.3.3f1

  4. E2f0c3402cc9f54847bb25448d4762d7?d=mm

    i9mobile

    Feb 18, 2020 17:48

    Same problem here:

    OpenCL Error. Falling back to CPU lightmapper. Error callback from context: CL_MEM_OBJECT_ALLOCATION_FAILURE error executing CL_COMMAND_NDRANGE_KERNEL on GeForce RTX 2080 Ti (Device 0).

    OpenCL Error. Falling back to CPU lightmapper. Error callback from context: CL_MEM_OBJECT_ALLOCATION_FAILURE

    Calling Deallocate on pointer, that can not be deallocated by allocator ALLOC_TEMP_THREAD

  5. 9092fd98a5d7408c23460e8b28dbe08f?d=mm

    BrennanH

    Dec 28, 2019 22:08

    I just ran into

    OpenCL Error. Falling back to CPU lightmapper. Error callback from context: CL_MEM_OBJECT_ALLOCATION_FAILURE

    OpenCL Error. Falling back to CPU lightmapper. Error callback from context: CL_MEM_OBJECT_ALLOCATION_FAILURE error executing CL_COMMAND_NDRANGE_KERNEL on GeForce GTX 1070 (Device 0).

    Windows 10, GeForce GTX 1070

  6. 96a26343cbc6e8911e0cf8d88e706537?d=mm

    create3dgames

    Jul 10, 2019 22:53

    Still an issue in 2019.3

  7. 9bccd5526128dc1d62feba50a10cc0bc?d=mm

    r-kamphuis

    May 16, 2019 06:00

    still here in 2019.2.0b

  8. C758f3a7a5d04711668f307d67cf510f?d=mm

    ArkadiuszR

    May 14, 2019 15:46

    Same here. Unity 2019.1.0f2

  9. 7616e87984fd3c4ce7efc3e0ea25595c?d=mm

    Weidz_

    Jan 15, 2019 19:52

    Same error;

    OpenCL Error. Falling back to CPU lightmapper. Error callback from context: CL_INVALID_PROGRAM

    CPU - i7 8700K Intel
    GPU - RTX 2080Ti
    Driver NVIDIA 417.71
    RAM - 2 x 32GB

  10. 7616e87984fd3c4ce7efc3e0ea25595c?d=mm

    Weidz_

    Jan 15, 2019 19:51

    Same error;

    OpenCL Error. Falling back to CPU lightmapper. Error callback from context: CL_INVALID_PROGRAM

    CPU - i7 8700K Intel
    GPU - RTX 2080Ti
    Driver NVIDIA 417.71
    RAM - 2 x 32GB

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.