Search Issue Tracker

By Design

Votes

14

Found in

2018.1

2018.2

2018.3

2018.3.0b3

2019.1

2019.2

2019.3

2020.1

Issue ID

1084824

Regression

No

[GPU PLM]Fallback from CPU Lightmapper in CL_MEM_OBJECT_ALLOCATION_FAILURE when baking ArchVizPRO when view prioritization is on

Progressive Lightmapper

-

Prerequisites:
For reproducing this bug you'll need to download the ArchVizPRO Interior Vol. 6 package from here: https://assetstore.unity.com/packages/3d/environments/urban/archvizpro-interior-vol-6-120489

Steps to repro:
1. Open downloaded project and 'AVP6_Desktop' scene;
2. Open Player Settings window (Edit>Settings>Player);
3. Set Color Space to Linear;
4. Open Lighting window (Window>Rendering>Lighting Settings);
5. In the Lightmapper field of the Lighting window select Progressive GPU (Preview);
6. In the Lighting window click 'Generate Lighting' button;
7. Wait until the lighting is baked.

Expected result:
The lighting is baked successfully on GPU Lightmapper.

Actual result:
The lightmapping backend falls back to CPU LM with the following message:
(Filename: C:\buildslave\unity\build\Editor/Src/GI/Progressive/OpenCL/OpenCLCheck.cpp Line: 122)

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


(Filename: C:\buildslave\unity\build\Editor/Src/GI/Progressive/OpenCL/OpenCLCheck.cpp Line: 122)

See attached screenshot for Editor console and GPU load in Windows Task Manager.

Notes:
- Reproducible in 2019.2.0a1, 2019.1.0a2, 2018.3.0b3;
- Reproducible on Windows 10 with GeForce 1070GTX having 8GB of VRAM;
- Editor has crashed once when baking this project with view prioritization enabled. See the Editor log in the comments. This, however, happened only once and doesn't happen after rebaking.
- Reproducible with Lightmap resolution 4096 and 1024;
- Reproducible with and without view prioritization enabled.

  1. Resolution Note (2020.1.X):

    The memory usage in GPU Lightmapper is being addressed in Unity 2020.1 and 2020.2. The memory optimizations are unfortunately too complicated to backport to 2019.3. We are sorry for the inconvenience. The 2020.1 alpha already has a greatly reduce memory footprint.

Comments (10)

  1. onsku2908

    Aug 30, 2022 17:52

    same on rtx 3070 unity 2020.3.38f1

  2. Uzair-Mahmood

    May 20, 2021 20:18

    Unity 2020.3.6f1 still has the issue.

    GPU GTX 1060 6GB

  3. ColtonRamos

    Apr 30, 2020 21:18

    Same in my project on GTX 960 2GB
    Unity 2019.3.10f1

  4. Thomas-Pasieka

    Dec 12, 2019 16:31

    So this particular bug has been around for over a year and still hasn't been fixed. It has cost me and my client a lot of trouble/time.

  5. Haze-Games

    Sep 26, 2019 16:49

    I'd like to add that:
    - This issue happen to my project without ArchvizPro with any Unity above 2019.1.14f1 - works fine before up to (including) this version
    - In any version above 2019.1.14f1, disabling light probes makes this issue disappear and allows to bake

    It's currently blocking us from upgrading above 2019.1.14f1 - closely monitoring this bug :)

    Thanks in advance for you work!

  6. PixFactory-Quentin

    Jun 24, 2019 11:51

    Same problem on GTX 1070 using Unity 2019.1.7f1

  7. Haze-Games

    Jun 14, 2019 14:37

    Same with RTX 2080

  8. Colonel839

    Jan 22, 2019 20:19

    same on gtx 1070 ti

    unity 2018.3.2f1

  9. kiranmaya

    Dec 17, 2018 13:44

    same with nvidia 980ti with drivers updated to latest .

  10. peruwiadomo

    Dec 11, 2018 15:32

    same on gtx 970
    unity v 2018.3.0f1

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.