Search Issue Tracker

Won't Fix

Votes

0

Found in

6000.2.0b10

6000.3.0a2

6000.4.0a1

Issue ID

UUM-111818

Regression

No

Assertion failed on expression IsWithinMaxAllocationSize error logged when baking APVs in a URP Project

-

Steps to reproduce:

  1. Open the attached Project
  2. Open Scene "Arena_v1_MP_Prototype"
  3. Select "Adaptive Probe Volume" in the Hierarchy
  4. In the Inspector click on "Bake Probe Volumes"

Actual results: While baking, the Editor throws error "Assertion failed on expression: 'IsWithinMaxAllocationSize(openCLState, numItem)'
System.Threading.ThreadHelper:ThreadStart ()"

Expected results: No issues when baking or informative message is present

Reproducible with versions: 6000.2.0b10, 6000.3.0a2

Can’t test with versions: 2022.3.64f1, 6000.0.54f1, 6000.1.12f1 (Downgrading problems)

Tested on (OS): Windows 11

  1. Resolution Note:

    Your bug report has been closed with the resolution "Won't Fix."

    Resolution Notes: The assertion failure you are experiencing occurs because the current Lightmapping Settings generate intermediate albedo and emission buffers that are too large for your GPU's OpenCL driver to handle. This is a hardware and configuration limitation rather than a software defect.

    The setting controlling this behavior is Lightmap Resolution, which affects lightmaps generated by the Baked Global Illumination system. For APV baking, this setting is used to generate an internal lightmap for capturing scene information. A high resolution is often unnecessary for this purpose and can lead to excessive memory consumption.

    Recommended Solution: To resolve this issue, lower the Lightmap Resolution value in the Lighting window (Scene tab > Lightmapping Settings). Reducing this from the default of 40 to a smaller value (such as 8) will decrease the size of the internal baking buffers, allowing the bake to complete successfully within your GPU's memory limits.

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.