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 (11)

  1. 96a26343cbc6e8911e0cf8d88e706537?d=mm

    create3dgames

    Jul 10, 2019 22:53

    Still an issue in 2019.3

  2. 9bccd5526128dc1d62feba50a10cc0bc?d=mm

    r-kamphuis

    May 16, 2019 06:00

    still here in 2019.2.0b

  3. C758f3a7a5d04711668f307d67cf510f?d=mm

    ArkadiuszR

    May 14, 2019 15:46

    Same here. Unity 2019.1.0f2

  4. 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

  5. 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

  6. Bfe46685a6899d9a9533e5b96ebe754f?d=mm

    aryssa

    Oct 20, 2018 16:06

    fixed for me when i desable "Prioritize view"

    cpu i7 4790
    gpu 770 gtx 4go
    ram 16go

  7. 06b250ef8f55b6309d444cfc27853763?d=mm

    giorat96

    Oct 19, 2018 20:09

    Getting this error as well - 'OpenCL Error. Falling back to CPU lightmapper. Error callback from context: CL_PROFILING_INFO_NOT_AVAILABLE'

    And if I manually switch to use GPU with "./Unity.exe -OpenCL-PlatformAndDeviceIndices 1 0" I get this errors:
    Assertion failed on expression: 'IsCLEventCompleted(data.startEvent, isStartEventAnError)'
    Assertion failed on expression: 'IsCLEventCompleted(events->m_StartMarker, isStartEventAnError)'

    My specs for reference
    CPU - i7-6500U @ 2.5GHz
    GPU - NVidia 940MX
    RAM - 8GB

  8. 49dad8e206f1e08bc9c83ecb5a8e9811?d=mm

    UltronTM

    Oct 04, 2018 21:32

    I have no problem when using default settings in Lighting Window by clicking its Reset. However, setting Direct Samples to 128 from default 32, will cause this problem. Reducing Lightmap Resolution from default 40 to 35 texels per unit fixes it again.

    My specs with Unity 2018.3.0b4 on Windows 10:

    CPU: i5 6600
    GPU: GTX 1080ti
    RAM: 8GB

  9. Ceb6ff096c2d0624cce3d5babd038cf7?d=mm

    maartene

    Oct 03, 2018 18:25

    Getting the same error.
    My specs:
    CPU: i5 6500 @ 3.2Ghz
    GPU: MSI GTX 960 2GB
    RAM: 16GB
    Unity 2018.3.0b4 on Windows 10 (all updates)

  10. 25d5648b31fda7704e5786e848191124?d=mm

    Thall33

    Oct 01, 2018 07:55

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

    When I change to no-directional mode.

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.